Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 105.9 kB / 17.06 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 196.1 kB / 18 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2591, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01967/0.2788, allocations: 18.18 MB / 418.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.2922, allocations: 6.044 MB / 424.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003494/0.2958, allocations: 147.6 kB / 424.6 MB, free: 372 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01108/0.307, allocations: 6.266 MB / 430.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00766/0.3146, allocations: 2.844 MB / 433.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004919/0.3196, allocations: 2.273 MB / 436 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01356/0.3332, allocations: 9.507 MB / 445.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01204/0.3452, allocations: 8.411 MB / 453.9 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006242/0.3515, allocations: 3.182 MB / 457.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006875/0.3584, allocations: 4.164 MB / 461.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002449/0.3609, allocations: 0.7148 MB / 462 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004806/0.3658, allocations: 1.904 MB / 463.9 MB, free: 8.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005053/0.3708, allocations: 3.784 MB / 467.6 MB, free: 5.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007354/0.3782, allocations: 4.427 MB / 472.1 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0179/0.3961, allocations: 13.92 MB / 486 MB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.3962, allocations: 0 / 486 MB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3962, allocations: 0 / 486 MB, free: 2.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005871/0.3968, allocations: 0 / 486 MB, free: 2.707 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03345/0.4303, allocations: 9.652 MB / 495.6 MB, free: 8.949 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.4303, allocations: 8.031 kB / 495.7 MB, free: 8.941 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003733/0.4341, allocations: 1.135 MB / 496.8 MB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3393/0.7734, allocations: 23.27 MB / 0.5079 GB, free: 500 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02008/0.7935, allocations: 8 MB / 0.5157 GB, free: 8.418 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004733/0.794, allocations: 431.7 kB / 0.5161 GB, free: 7.996 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002854/0.7969, allocations: 0.5895 MB / 0.5167 GB, free: 7.406 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03769/0.8346, allocations: 16.86 MB / 0.5331 GB, free: 5.594 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003659/0.835, allocations: 87.41 kB / 0.5332 GB, free: 5.508 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001858/0.8369, allocations: 263.8 kB / 0.5335 GB, free: 5.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005061/0.842, allocations: 2.666 MB / 0.5361 GB, free: 2.582 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.433/1.275, allocations: 14.39 MB / 0.5501 GB, free: 120.4 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06766/1.343, allocations: 63.79 MB / 0.6124 GB, free: 58.58 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.363, allocations: 8.634 MB / 0.6209 GB, free: 49.86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004758/1.368, allocations: 4.917 MB / 0.6257 GB, free: 44.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02321/1.391, allocations: 18.13 MB / 0.6434 GB, free: 26.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/1.391, allocations: 64.5 kB / 0.6434 GB, free: 26.73 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 7.053e-06/1.391, allocations: 2 kB / 0.6434 GB, free: 26.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2595/1.651, allocations: 73.15 MB / 0.7149 GB, free: 1.91 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000246/1.651, allocations: 380.6 kB / 0.7152 GB, free: 1.457 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/1.664, allocations: 6.439 MB / 0.7215 GB, free: 11.12 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009934/1.665, allocations: 81.61 kB / 0.7216 GB, free: 11.04 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004776/1.67, allocations: 5.02 MB / 0.7265 GB, free: 6.059 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002422/1.672, allocations: 1.43 MB / 0.7279 GB, free: 4.617 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005321/1.677, allocations: 1.845 MB / 0.7297 GB, free: 2.758 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001285/1.678, allocations: 305.1 kB / 0.73 GB, free: 2.457 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2202/1.898, allocations: 5.663 MB / 0.7355 GB, free: 174.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008978/1.907, allocations: 10.61 MB / 0.7459 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01662/1.924, allocations: 17.37 MB / 0.7628 GB, free: 153.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/1.924, allocations: 49.56 kB / 0.7629 GB, free: 153.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03782/1.962, allocations: 21.99 MB / 0.7844 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/1.962, allocations: 83.94 kB / 0.7844 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/1.962, allocations: 168 kB / 0.7846 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01981/1.982, allocations: 6.856 MB / 0.7913 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007478/1.989, allocations: 2.074 MB / 0.7933 GB, free: 130.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04118/2.03, allocations: 36.41 MB / 0.8289 GB, free: 94.19 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008787/2.039, allocations: 0.7116 MB / 0.8296 GB, free: 93.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001801/2.041, allocations: 0.5153 MB / 0.8301 GB, free: 92.99 MB / 0.5138 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.006354/2.047, allocations: 3.421 MB / 0.8334 GB, free: 89.66 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/2.049, allocations: 0.6142 MB / 0.834 GB, free: 89.39 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02983/2.079, allocations: 16.11 MB / 0.8498 GB, free: 73.22 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-05/2.079, allocations: 51.98 kB / 0.8498 GB, free: 73.17 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.053e-05/2.079, allocations: 19.72 kB / 0.8498 GB, free: 73.16 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.932e-05/2.079, allocations: 15.94 kB / 0.8498 GB, free: 73.14 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0526/2.132, allocations: 31.3 MB / 0.8804 GB, free: 41.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.91e-05/2.132, allocations: 7.938 kB / 0.8804 GB, free: 41.55 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003143/2.135, allocations: 0.6045 MB / 0.881 GB, free: 40.94 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01832/2.154, allocations: 6.437 MB / 0.8873 GB, free: 34.49 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009292/2.155, allocations: 60 kB / 0.8873 GB, free: 34.43 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03979/2.194, allocations: 34.65 MB / 0.9212 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/2.194, allocations: 4 kB / 0.9212 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2626/2.457, allocations: 23.57 MB / 0.9442 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001735/2.459, allocations: 0.6558 MB / 0.9448 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001926/2.461, allocations: 69.02 kB / 0.9449 GB, free: 170 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004761/2.465, allocations: 423.9 kB / 0.9453 GB, free: 170 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001152/2.467, allocations: 253.4 kB / 0.9456 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003608/2.467, allocations: 98.25 kB / 0.9456 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00529/2.472, allocations: 4.109 MB / 0.9497 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/2.472, allocations: 0 / 0.9497 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00821/2.481, allocations: 2.197 MB / 0.9518 GB, free: 168.3 MB / 0.5294 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.03575/2.516, allocations: 24.36 MB / 0.9756 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01851/2.535, allocations: 14.3 MB / 0.9896 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/2.535, allocations: 0 / 0.9896 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009263/2.544, allocations: 6.587 MB / 0.996 GB, free: 132 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007758/2.552, allocations: 0.9417 MB / 0.9969 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1474/2.699, allocations: 102.9 MB / 1.097 GB, free: 20.24 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007605/2.707, allocations: 5.273 MB / 1.103 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007112/2.714, allocations: 3.029 MB / 1.106 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0065/2.721, allocations: 3.389 MB / 1.109 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/2.721, allocations: 3.938 kB / 1.109 GB, free: 8.504 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4191/3.14, allocations: 166.6 MB / 1.272 GB, free: 63.84 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.38/29.52, allocations: 19.92 kB / 1.272 GB, free: 63.82 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches