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.001663/0.001663, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.00171/0.00171, allocations: 200.1 kB / 18 MB, free: 5.168 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.545/1.545, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2894, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02066/0.3101, allocations: 18.17 MB / 418.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.3229, allocations: 6.056 MB / 424.5 MB, free: 496 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003579/0.3266, allocations: 139.6 kB / 424.6 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.3383, allocations: 6.266 MB / 430.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007943/0.3464, allocations: 2.848 MB / 433.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005048/0.3514, allocations: 2.277 MB / 436 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0147/0.3662, allocations: 9.497 MB / 445.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.3772, allocations: 8.407 MB / 453.9 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006071/0.3833, allocations: 3.182 MB / 457.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006859/0.3902, allocations: 4.164 MB / 461.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002079/0.3923, allocations: 0.7148 MB / 462 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004484/0.3968, allocations: 1.908 MB / 463.9 MB, free: 8.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005373/0.4022, allocations: 3.784 MB / 467.6 MB, free: 5.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008302/0.4106, allocations: 4.427 MB / 472.1 MB, free: 0.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02325/0.4338, allocations: 13.92 MB / 486 MB, free: 2.699 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.4339, allocations: 0 / 486 MB, free: 2.699 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4339, allocations: 0 / 486 MB, free: 2.699 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007376/0.4347, allocations: 0 / 486 MB, free: 2.699 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.03158/0.4663, allocations: 9.656 MB / 495.6 MB, free: 8.938 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4663, allocations: 8.031 kB / 495.7 MB, free: 8.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002526/0.4689, allocations: 1.135 MB / 496.8 MB, free: 7.785 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3507/0.8195, allocations: 23.28 MB / 0.5079 GB, free: 484 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02166/0.8412, allocations: 7.996 MB / 0.5157 GB, free: 8.402 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005535/0.8418, allocations: 431.7 kB / 0.5161 GB, free: 7.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002791/0.8447, allocations: 0.5856 MB / 0.5167 GB, free: 7.395 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04278/0.8875, allocations: 16.86 MB / 0.5331 GB, free: 5.586 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003291/0.8879, allocations: 91.34 kB / 0.5332 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001867/0.8897, allocations: 263.8 kB / 0.5335 GB, free: 5.238 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005286/0.895, allocations: 2.666 MB / 0.5361 GB, free: 2.57 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4518/1.347, allocations: 14.4 MB / 0.5501 GB, free: 120.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07002/1.417, allocations: 63.79 MB / 0.6124 GB, free: 58.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02074/1.438, allocations: 8.631 MB / 0.6209 GB, free: 49.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004977/1.443, allocations: 4.919 MB / 0.6257 GB, free: 44.96 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02685/1.47, allocations: 18.14 MB / 0.6434 GB, free: 26.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/1.47, allocations: 68.48 kB / 0.6434 GB, free: 26.74 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 7.505e-06/1.47, allocations: 0 / 0.6434 GB, free: 26.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.269/1.739, allocations: 73.14 MB / 0.7149 GB, free: 1.922 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002626/1.739, allocations: 384.6 kB / 0.7152 GB, free: 1.465 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01133/1.75, allocations: 6.432 MB / 0.7215 GB, free: 11.14 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009968/1.751, allocations: 81.7 kB / 0.7216 GB, free: 11.05 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004555/1.756, allocations: 5.019 MB / 0.7265 GB, free: 6.074 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002588/1.759, allocations: 1.438 MB / 0.7279 GB, free: 4.625 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0036/1.762, allocations: 1.841 MB / 0.7297 GB, free: 2.77 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001533/1.762, allocations: 305.1 kB / 0.73 GB, free: 2.469 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2603/2.023, allocations: 5.659 MB / 0.7355 GB, free: 174.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009048/2.032, allocations: 10.62 MB / 0.7459 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01652/2.048, allocations: 17.37 MB / 0.7628 GB, free: 153.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/2.049, allocations: 50.75 kB / 0.7629 GB, free: 153.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03771/2.086, allocations: 21.99 MB / 0.7844 GB, free: 140 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.996e-05/2.086, allocations: 87.92 kB / 0.7845 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001651/2.087, allocations: 168 kB / 0.7846 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01925/2.106, allocations: 6.851 MB / 0.7913 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006801/2.113, allocations: 2.074 MB / 0.7933 GB, free: 130.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04036/2.153, allocations: 36.41 MB / 0.8289 GB, free: 94.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008945/2.162, allocations: 0.7141 MB / 0.8296 GB, free: 93.54 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001614/2.164, allocations: 0.5078 MB / 0.8301 GB, free: 93.04 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.005652/2.169, allocations: 3.427 MB / 0.8334 GB, free: 89.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001652/2.171, allocations: 0.6131 MB / 0.834 GB, free: 89.43 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02876/2.2, allocations: 16.11 MB / 0.8498 GB, free: 73.26 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.732e-05/2.2, allocations: 55.98 kB / 0.8498 GB, free: 73.21 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-05/2.2, allocations: 16 kB / 0.8498 GB, free: 73.19 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.396e-05/2.2, allocations: 15.94 kB / 0.8498 GB, free: 73.18 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04618/2.246, allocations: 31.3 MB / 0.8804 GB, free: 41.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.93e-05/2.246, allocations: 3.938 kB / 0.8804 GB, free: 41.59 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/2.249, allocations: 0.6084 MB / 0.881 GB, free: 40.98 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01791/2.267, allocations: 6.435 MB / 0.8873 GB, free: 34.53 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007424/2.268, allocations: 63.98 kB / 0.8873 GB, free: 34.47 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04097/2.309, allocations: 34.65 MB / 0.9212 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/2.309, allocations: 4 kB / 0.9212 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3032/2.612, allocations: 23.58 MB / 0.9442 GB, free: 170.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/2.614, allocations: 0.6506 MB / 0.9448 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/2.616, allocations: 65.8 kB / 0.9449 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004915/2.621, allocations: 428.7 kB / 0.9453 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001327/2.622, allocations: 248.1 kB / 0.9455 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003725/2.623, allocations: 96.89 kB / 0.9456 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006487/2.629, allocations: 4.112 MB / 0.9497 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/2.629, allocations: 0 / 0.9497 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009325/2.638, allocations: 2.191 MB / 0.9518 GB, free: 168.5 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.03781/2.676, allocations: 24.36 MB / 0.9756 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01998/2.696, allocations: 14.3 MB / 0.9895 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/2.696, allocations: 6.375 kB / 0.9896 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009287/2.706, allocations: 6.582 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.006516/2.712, allocations: 0.9429 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.1611/2.873, allocations: 102.9 MB / 1.097 GB, free: 20.28 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005786/2.879, allocations: 5.271 MB / 1.103 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006408/2.886, allocations: 3.029 MB / 1.106 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005784/2.891, allocations: 3.393 MB / 1.109 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of SimCode: time 6.11e-07/2.891, allocations: 7.938 kB / 1.109 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4576/3.349, allocations: 166.6 MB / 1.272 GB, free: 63.85 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.66/31.01, allocations: 15.92 kB / 1.272 GB, free: 63.84 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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