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.001594/0.001594, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001769/0.001769, allocations: 216 kB / 23.73 MB, free: 4.156 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.517/1.517, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.002443/0.002443, allocations: 51.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2668, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01923/0.286, allocations: 15.59 MB / 446.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0132/0.2992, allocations: 5.854 MB / 452.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003397/0.3026, allocations: 171.1 kB / 452.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01215/0.3148, allocations: 6.064 MB / 458.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007991/0.3227, allocations: 2.914 MB / 461.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005171/0.3279, allocations: 2.249 MB / 463.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01376/0.3417, allocations: 9.712 MB / 473.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008474/0.3502, allocations: 6.189 MB / 479.8 MB, free: 5.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00587/0.356, allocations: 3.257 MB / 483.1 MB, free: 2.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007151/0.3632, allocations: 4.163 MB / 487.2 MB, free: 14.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002115/0.3653, allocations: 0.7187 MB / 488 MB, free: 13.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004776/0.3701, allocations: 1.799 MB / 489.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005125/0.3752, allocations: 3.896 MB / 493.7 MB, free: 7.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005638/0.3808, allocations: 3.412 MB / 497.1 MB, free: 4.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.017/0.3978, allocations: 13.94 MB / 0.499 GB, free: 6.402 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3978, allocations: 4 kB / 0.499 GB, free: 6.398 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3978, allocations: 0 / 0.499 GB, free: 6.398 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003864/0.3982, allocations: 4 kB / 0.499 GB, free: 6.395 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.02916/0.4274, allocations: 9.577 MB / 0.5084 GB, free: 12.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.4274, allocations: 12.03 kB / 0.5084 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002643/0.4301, allocations: 1.131 MB / 0.5095 GB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3284/0.7585, allocations: 23.28 MB / 0.5322 GB, free: 4.273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4341/1.193, allocations: 7.469 MB / 0.5395 GB, free: 95.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003219/1.193, allocations: 439.5 kB / 0.54 GB, free: 95.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/1.195, allocations: 0.5789 MB / 0.5405 GB, free: 95.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02669/1.221, allocations: 17.08 MB / 0.5572 GB, free: 83.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002256/1.222, allocations: 84.61 kB / 0.5573 GB, free: 83.86 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007252/1.222, allocations: 266.9 kB / 0.5575 GB, free: 83.65 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003471/1.226, allocations: 2.66 MB / 0.5601 GB, free: 81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02451/1.25, allocations: 14.36 MB / 0.5742 GB, free: 66.65 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06619/1.317, allocations: 60.19 MB / 0.6329 GB, free: 5.832 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02241/1.339, allocations: 7.901 MB / 0.6407 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006822/1.346, allocations: 4.581 MB / 0.6451 GB, free: 9.352 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03419/1.38, allocations: 16.52 MB / 0.6613 GB, free: 8.941 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.799e-05/1.38, allocations: 64.56 kB / 0.6613 GB, free: 8.871 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.224e-06/1.38, allocations: 4 kB / 0.6613 GB, free: 8.867 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2946/1.675, allocations: 73.15 MB / 0.7328 GB, free: 20 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002998/1.675, allocations: 384.6 kB / 0.7331 GB, free: 15.56 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01582/1.691, allocations: 6.713 MB / 0.7397 GB, free: 8.848 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001405/1.692, allocations: 81.7 kB / 0.7398 GB, free: 8.762 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00596/1.698, allocations: 5.02 MB / 0.7447 GB, free: 3.699 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002548/1.701, allocations: 1.434 MB / 0.7461 GB, free: 2.254 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005539/1.706, allocations: 1.849 MB / 0.7479 GB, free: 400 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001643/1.706, allocations: 301.1 kB / 0.7482 GB, free: 96 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2768/1.983, allocations: 5.653 MB / 0.7537 GB, free: 190.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01024/1.993, allocations: 10.82 MB / 0.7642 GB, free: 181.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01774/2.011, allocations: 17.35 MB / 0.7812 GB, free: 169.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002098/2.011, allocations: 48.78 kB / 0.7812 GB, free: 169.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04139/2.053, allocations: 21.93 MB / 0.8027 GB, free: 153.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/2.053, allocations: 83.94 kB / 0.8027 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/2.053, allocations: 168 kB / 0.8029 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01888/2.072, allocations: 6.853 MB / 0.8096 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006851/2.079, allocations: 2.078 MB / 0.8116 GB, free: 143.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04017/2.119, allocations: 35.72 MB / 0.8465 GB, free: 108.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008936/2.128, allocations: 0.7128 MB / 0.8472 GB, free: 107.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001878/2.13, allocations: 0.5154 MB / 0.8477 GB, free: 106.9 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.006591/2.136, allocations: 3.419 MB / 0.851 GB, free: 103.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001705/2.138, allocations: 0.6126 MB / 0.8516 GB, free: 103.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02836/2.166, allocations: 16.03 MB / 0.8673 GB, free: 87.17 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.441e-05/2.166, allocations: 44 kB / 0.8673 GB, free: 87.13 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-05/2.167, allocations: 16 kB / 0.8674 GB, free: 87.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.767e-05/2.167, allocations: 19.94 kB / 0.8674 GB, free: 87.09 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05855/2.225, allocations: 29.93 MB / 0.8966 GB, free: 56.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.78e-05/2.225, allocations: 7.938 kB / 0.8966 GB, free: 56.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003245/2.228, allocations: 0.6006 MB / 0.8972 GB, free: 56.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01835/2.247, allocations: 6.429 MB / 0.9035 GB, free: 49.86 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009919/2.248, allocations: 60 kB / 0.9035 GB, free: 49.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04093/2.289, allocations: 33.97 MB / 0.9367 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/2.289, allocations: 3.984 kB / 0.9367 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3148/2.604, allocations: 23.5 MB / 0.9597 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/2.605, allocations: 0.5824 MB / 0.9602 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001688/2.607, allocations: 66.25 kB / 0.9603 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004596/2.612, allocations: 428.6 kB / 0.9607 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001169/2.613, allocations: 265 kB / 0.961 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003428/2.613, allocations: 94.66 kB / 0.961 GB, free: 171.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006424/2.62, allocations: 4.105 MB / 0.9651 GB, free: 170.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/2.62, allocations: 0 / 0.9651 GB, free: 170.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01148/2.631, allocations: 2.187 MB / 0.9672 GB, free: 170 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.03654/2.668, allocations: 24.28 MB / 0.9909 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01827/2.686, allocations: 13.67 MB / 1.004 GB, free: 148.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.616e-05/2.686, allocations: 0 / 1.004 GB, free: 148.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008672/2.695, allocations: 6.027 MB / 1.01 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005984/2.701, allocations: 0.9242 MB / 1.011 GB, free: 141.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.159/2.86, allocations: 102.9 MB / 1.112 GB, free: 31.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/2.87, allocations: 4.786 MB / 1.116 GB, free: 26.67 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007795/2.877, allocations: 3.025 MB / 1.119 GB, free: 23.64 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005101/2.883, allocations: 3.385 MB / 1.122 GB, free: 20.25 MB / 0.545 GB Notification: Performance of SimCode: time 1.001e-06/2.883, allocations: 4 kB / 1.122 GB, free: 20.25 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4674/3.35, allocations: 169.6 MB / 1.288 GB, free: 80.34 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.89/27.24, allocations: 12 kB / 1.288 GB, free: 80.33 MB / 0.5607 GB " [Timeout remaining time 633] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.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.0009996 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.csv","/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.099021948873997]