Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 43.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2809, allocations: 53.36 MB / 431.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01696/0.2979, allocations: 13.55 MB / 444.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.3095, allocations: 4.92 MB / 449.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002935/0.3124, allocations: 111.4 kB / 449.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008966/0.3214, allocations: 4.245 MB / 454 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00694/0.3283, allocations: 2.171 MB / 456.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003141/0.3314, allocations: 1.111 MB / 457.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009543/0.341, allocations: 6.068 MB / 463.3 MB, free: 6.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006411/0.3474, allocations: 4.061 MB / 467.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004459/0.3519, allocations: 2.185 MB / 469.5 MB, free: 292 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005849/0.3577, allocations: 3.085 MB / 472.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001878/0.3596, allocations: 500 kB / 473.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004624/0.3642, allocations: 1.678 MB / 474.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004072/0.3683, allocations: 2.661 MB / 477.5 MB, free: 8.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005594/0.3739, allocations: 2.941 MB / 480.4 MB, free: 5.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.3873, allocations: 9.66 MB / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3873, allocations: 0 / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3873, allocations: 0 / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003272/0.3876, allocations: 0 / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01725/0.4048, allocations: 6.284 MB / 496.3 MB, free: 5.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4049, allocations: 8.031 kB / 496.4 MB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002527/0.4074, allocations: 0.9325 MB / 497.3 MB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03687/0.4443, allocations: 6.051 MB / 0.4915 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/0.4556, allocations: 4.175 MB / 0.4956 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003843/0.456, allocations: 316 kB / 0.4959 GB, free: 9.781 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.4579, allocations: 439.7 kB / 0.4963 GB, free: 9.352 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02632/0.4842, allocations: 12.32 MB / 0.5084 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001894/0.4844, allocations: 51.64 kB / 0.5084 GB, free: 12.24 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006736/0.4851, allocations: 187.9 kB / 0.5086 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003257/0.4883, allocations: 2.035 MB / 0.5106 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02266/0.511, allocations: 10.38 MB / 0.5207 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2877/0.7987, allocations: 43.83 MB / 0.5635 GB, free: 68.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01069/0.8094, allocations: 4.21 MB / 0.5676 GB, free: 67.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/0.8114, allocations: 1.846 MB / 0.5694 GB, free: 66.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/0.8215, allocations: 6.063 MB / 0.5754 GB, free: 63.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.8215, allocations: 59.39 kB / 0.5754 GB, free: 63.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.498e-06/0.8215, allocations: 0 / 0.5754 GB, free: 63.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05477/0.8763, allocations: 19.17 MB / 0.5941 GB, free: 47.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.8763, allocations: 209.9 kB / 0.5943 GB, free: 47.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/0.8809, allocations: 4.493 MB / 0.5987 GB, free: 42.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003365/0.8812, allocations: 57.7 kB / 0.5988 GB, free: 42.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.8829, allocations: 3.692 MB / 0.6024 GB, free: 39.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006833/0.8835, allocations: 0.8702 MB / 0.6032 GB, free: 38.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.8848, allocations: 1.282 MB / 0.6045 GB, free: 37.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.778e-05/0.8848, allocations: 305.1 kB / 0.6048 GB, free: 37.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002457/0.8873, allocations: 2.23 MB / 0.607 GB, free: 34.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003644/0.8909, allocations: 5.979 MB / 0.6128 GB, free: 26.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007045/0.898, allocations: 8.928 MB / 0.6215 GB, free: 16.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.528e-05/0.898, allocations: 36 kB / 0.6215 GB, free: 16.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01306/0.9111, allocations: 9.057 MB / 0.6304 GB, free: 7.082 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.9112, allocations: 62.81 kB / 0.6305 GB, free: 7.023 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/0.9113, allocations: 132.9 kB / 0.6306 GB, free: 6.895 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003093/0.9144, allocations: 1.202 MB / 0.6318 GB, free: 5.688 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00384/0.9182, allocations: 1.412 MB / 0.6331 GB, free: 4.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.9285, allocations: 7.908 MB / 0.6409 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004433/0.933, allocations: 339.5 kB / 0.6412 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008401/0.9338, allocations: 387.8 kB / 0.6415 GB, free: 11.55 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004109/0.9379, allocations: 2.486 MB / 0.644 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008481/0.9388, allocations: 425.2 kB / 0.6444 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008017/0.9468, allocations: 3.869 MB / 0.6482 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.282e-05/0.9468, allocations: 31.91 kB / 0.6482 GB, free: 4.723 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.9468, allocations: 8 kB / 0.6482 GB, free: 4.715 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-05/0.9469, allocations: 11.91 kB / 0.6482 GB, free: 4.703 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0197/0.9666, allocations: 9.905 MB / 0.6579 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/0.9666, allocations: 4 kB / 0.6579 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.9681, allocations: 336.1 kB / 0.6582 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003319/0.9714, allocations: 0.9779 MB / 0.6592 GB, free: 9.387 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002191/0.9716, allocations: 40 kB / 0.6592 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.9817, allocations: 6.596 MB / 0.6656 GB, free: 2.641 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.106e-06/0.9817, allocations: 8 kB / 0.6656 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/0.9931, allocations: 6.62 MB / 0.6721 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.9944, allocations: 401.1 kB / 0.6725 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005666/0.995, allocations: 36 kB / 0.6725 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.9966, allocations: 119.8 kB / 0.6726 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003623/0.997, allocations: 148.9 kB / 0.6728 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.9971, allocations: 61.95 kB / 0.6728 GB, free: 11.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004649/1.002, allocations: 2.828 MB / 0.6756 GB, free: 8.352 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.002, allocations: 0 / 0.6756 GB, free: 8.352 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005529/1.007, allocations: 1.152 MB / 0.6767 GB, free: 7.199 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01248/1.02, allocations: 7.343 MB / 0.6839 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01004/1.03, allocations: 5.323 MB / 0.6891 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.03, allocations: 192 / 0.6891 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003011/1.033, allocations: 1.711 MB / 0.6908 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003822/1.037, allocations: 0.5695 MB / 0.6913 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3176/1.354, allocations: 51.57 MB / 0.7417 GB, free: 196.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00441/1.359, allocations: 3.867 MB / 0.7455 GB, free: 196.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003937/1.363, allocations: 1.94 MB / 0.7474 GB, free: 196 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002207/1.365, allocations: 2.288 MB / 0.7496 GB, free: 195.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.365, allocations: 0 / 0.7496 GB, free: 195.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1291/1.494, allocations: 89.49 MB / 0.837 GB, free: 115.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.24/29.73, allocations: 4 kB / 0.837 GB, free: 115.4 MB / 0.545 GB " [Timeout remaining time 630] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 32.987794595072046]