Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.001299/0.001299, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001464/0.001464, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2598, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02139/0.2811, allocations: 15.61 MB / 446.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.2948, allocations: 5.839 MB / 452.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003606/0.2984, allocations: 171.1 kB / 452.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.3107, allocations: 6.071 MB / 458.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007416/0.3181, allocations: 2.907 MB / 461.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00498/0.3231, allocations: 2.253 MB / 463.9 MB, free: 5.688 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01446/0.3375, allocations: 9.705 MB / 473.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009109/0.3467, allocations: 6.236 MB / 479.9 MB, free: 5.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005631/0.3523, allocations: 3.249 MB / 483.1 MB, free: 2.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007708/0.36, allocations: 4.472 MB / 487.6 MB, free: 13.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00246/0.3625, allocations: 0.7148 MB / 488.3 MB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004752/0.3672, allocations: 1.814 MB / 490.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005926/0.3731, allocations: 3.912 MB / 494 MB, free: 7.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007789/0.3809, allocations: 3.401 MB / 497.4 MB, free: 4.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02046/0.4014, allocations: 13.94 MB / 0.4994 GB, free: 6.023 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4014, allocations: 0 / 0.4994 GB, free: 6.023 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4014, allocations: 3.938 kB / 0.4994 GB, free: 6.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004492/0.4018, allocations: 0 / 0.4994 GB, free: 6.02 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02943/0.4313, allocations: 9.587 MB / 0.5088 GB, free: 12.35 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.4313, allocations: 8.031 kB / 0.5088 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003463/0.4348, allocations: 1.139 MB / 0.5099 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2895/0.7242, allocations: 23.28 MB / 0.5326 GB, free: 3.883 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4618/1.186, allocations: 7.459 MB / 0.5399 GB, free: 94.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003652/1.186, allocations: 438.4 kB / 0.5403 GB, free: 94.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002325/1.189, allocations: 0.583 MB / 0.5409 GB, free: 94.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02795/1.217, allocations: 17.09 MB / 0.5576 GB, free: 83.41 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000246/1.217, allocations: 81.64 kB / 0.5576 GB, free: 83.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009418/1.218, allocations: 264.9 kB / 0.5579 GB, free: 83.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003532/1.221, allocations: 2.657 MB / 0.5605 GB, free: 80.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02397/1.245, allocations: 14.36 MB / 0.5745 GB, free: 66.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06917/1.315, allocations: 60.19 MB / 0.6333 GB, free: 5.309 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02066/1.335, allocations: 7.899 MB / 0.641 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006466/1.342, allocations: 4.585 MB / 0.6455 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0334/1.375, allocations: 16.52 MB / 0.6616 GB, free: 8.418 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.948e-05/1.375, allocations: 68.55 kB / 0.6617 GB, free: 8.344 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.863e-06/1.375, allocations: 0 / 0.6617 GB, free: 8.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2608/1.636, allocations: 73.16 MB / 0.7331 GB, free: 15.56 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002459/1.636, allocations: 376.6 kB / 0.7335 GB, free: 15.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/1.646, allocations: 6.717 MB / 0.7401 GB, free: 8.395 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009911/1.647, allocations: 81.7 kB / 0.7401 GB, free: 8.309 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004303/1.652, allocations: 5.012 MB / 0.745 GB, free: 3.254 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002713/1.654, allocations: 1.434 MB / 0.7464 GB, free: 1.809 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2362/1.891, allocations: 1.838 MB / 0.7482 GB, free: 192 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.3e-05/1.891, allocations: 302.5 kB / 0.7485 GB, free: 191.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01061/1.901, allocations: 5.671 MB / 0.754 GB, free: 190.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01122/1.913, allocations: 10.81 MB / 0.7646 GB, free: 181.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01807/1.931, allocations: 17.35 MB / 0.7815 GB, free: 169.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002357/1.931, allocations: 46.59 kB / 0.7816 GB, free: 169.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04471/1.976, allocations: 21.94 MB / 0.803 GB, free: 152.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003007/1.976, allocations: 80.22 kB / 0.8031 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003088/1.976, allocations: 176 kB / 0.8033 GB, free: 152.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01941/1.996, allocations: 6.844 MB / 0.8099 GB, free: 145.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007318/2.003, allocations: 2.074 MB / 0.812 GB, free: 143.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04203/2.045, allocations: 35.73 MB / 0.8469 GB, free: 107.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009233/2.054, allocations: 0.7209 MB / 0.8476 GB, free: 107.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00204/2.056, allocations: 0.5117 MB / 0.8481 GB, free: 106.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.006604/2.063, allocations: 3.41 MB / 0.8514 GB, free: 103.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002111/2.065, allocations: 0.6196 MB / 0.852 GB, free: 103.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02934/2.094, allocations: 16.03 MB / 0.8677 GB, free: 86.98 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.236e-05/2.094, allocations: 51.98 kB / 0.8677 GB, free: 86.93 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.707e-05/2.094, allocations: 20 kB / 0.8677 GB, free: 86.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-05/2.094, allocations: 19.78 kB / 0.8677 GB, free: 86.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05432/2.149, allocations: 29.93 MB / 0.897 GB, free: 56.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.814e-05/2.149, allocations: 0 / 0.897 GB, free: 56.71 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003044/2.152, allocations: 0.6006 MB / 0.8976 GB, free: 56.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01792/2.17, allocations: 6.438 MB / 0.9038 GB, free: 49.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001065/2.171, allocations: 60 kB / 0.9039 GB, free: 49.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03881/2.21, allocations: 33.97 MB / 0.9371 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/2.21, allocations: 4 kB / 0.9371 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2825/2.492, allocations: 23.5 MB / 0.96 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/2.494, allocations: 0.5794 MB / 0.9606 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002427/2.497, allocations: 66.41 kB / 0.9607 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005203/2.502, allocations: 432 kB / 0.9611 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001585/2.504, allocations: 264.1 kB / 0.9613 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007627/2.504, allocations: 94.33 kB / 0.9614 GB, free: 171.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00729/2.512, allocations: 4.106 MB / 0.9654 GB, free: 170.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/2.512, allocations: 0 / 0.9654 GB, free: 170.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009959/2.522, allocations: 2.185 MB / 0.9675 GB, free: 170.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03728/2.559, allocations: 24.29 MB / 0.9913 GB, free: 160 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01846/2.577, allocations: 13.66 MB / 1.005 GB, free: 148.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/2.577, allocations: 3.938 kB / 1.005 GB, free: 148.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008166/2.585, allocations: 6.033 MB / 1.01 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006569/2.592, allocations: 0.9331 MB / 1.011 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.146/2.738, allocations: 102.9 MB / 1.112 GB, free: 30.87 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007287/2.745, allocations: 4.786 MB / 1.117 GB, free: 26.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00637/2.752, allocations: 3.032 MB / 1.12 GB, free: 23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004909/2.757, allocations: 3.391 MB / 1.123 GB, free: 19.61 MB / 0.545 GB Notification: Performance of SimCode: time 1.513e-06/2.757, allocations: 0 / 1.123 GB, free: 19.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4711/3.228, allocations: 169.6 MB / 1.288 GB, free: 79.22 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.47/25.69, allocations: 7.922 kB / 1.288 GB, free: 79.21 MB / 0.5607 GB " [Timeout remaining time 634] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 29.502290472999448]