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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.0009941, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 148.9 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9753/0.9753, allocations: 173.3 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.451e-05, allocations: 6.312 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01445/0.01448, allocations: 17.08 MB / 285.5 MB, free: 5.055 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1299/0.1443, allocations: 5.943 MB / 291.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003699/0.148, allocations: 174.8 kB / 291.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009302/0.1573, allocations: 6.646 MB / 298.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006525/0.1639, allocations: 3.048 MB / 301.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0038/0.1677, allocations: 2.501 MB / 303.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.1777, allocations: 10.8 MB / 314.6 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007212/0.1849, allocations: 7.459 MB / 322 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0102/0.1951, allocations: 6.904 MB / 329 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006094/0.2012, allocations: 4.782 MB / 333.7 MB, free: 5.977 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001682/0.2029, allocations: 0.7383 MB / 334.5 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003161/0.206, allocations: 1.884 MB / 336.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003514/0.2096, allocations: 4.135 MB / 340.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004422/0.214, allocations: 2.593 MB / 343.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008854/0.2228, allocations: 8.48 MB / 351.6 MB, free: 4.957 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2228, allocations: 0 / 351.6 MB, free: 4.957 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2228, allocations: 4 kB / 351.6 MB, free: 4.953 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002471/0.2231, allocations: 7.281 kB / 351.6 MB, free: 4.949 MB / 298.7 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.01066/0.2337, allocations: 9.116 MB / 360.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2338, allocations: 8.922 kB / 360.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01959/0.2534, allocations: 4.675 MB / 365.4 MB, free: 7.652 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007214/0.2606, allocations: 4.446 MB / 369.8 MB, free: 3.219 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.2608, allocations: 431.7 kB / 370.2 MB, free: 2.797 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001102/0.2619, allocations: 0.586 MB / 370.8 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01238/0.2743, allocations: 9.164 MB / 380 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002023/0.2745, allocations: 82.64 kB / 380.1 MB, free: 7.629 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005024/0.275, allocations: 267.8 kB / 380.3 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001824/0.2769, allocations: 2.319 MB / 382.7 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009427/0.2863, allocations: 4.17 MB / 386.8 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2918/0.5781, allocations: 65.07 MB / 451.9 MB, free: 69.72 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009467/0.5876, allocations: 3.287 MB / 455.2 MB, free: 69.55 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.5891, allocations: 0.8527 MB / 456 MB, free: 69.5 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.5994, allocations: 7.347 MB / 463.4 MB, free: 68.23 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.5995, allocations: 65.72 kB / 463.5 MB, free: 68.19 MB / 378.8 MB Notification: Performance of pre-optimization done (n=227): time 5.661e-06/0.5995, allocations: 1.797 kB / 463.5 MB, free: 68.19 MB / 378.8 MB Notification: Performance of matching and sorting (n=276): time 0.0555/0.655, allocations: 21.21 MB / 484.7 MB, free: 61.09 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.655, allocations: 378.2 kB / 485 MB, free: 60.64 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004819/0.6599, allocations: 5.618 MB / 490.6 MB, free: 56.73 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004673/0.6603, allocations: 69.77 kB / 490.7 MB, free: 56.7 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001966/0.6623, allocations: 5.38 MB / 496.1 MB, free: 51.81 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/0.6633, allocations: 1.14 MB / 497.2 MB, free: 50.66 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001557/0.6649, allocations: 1.989 MB / 499.2 MB, free: 48.66 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.327e-05/0.6649, allocations: 484.7 kB / 499.7 MB, free: 48.18 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.6665, allocations: 0.9702 MB / 0.4889 GB, free: 47.2 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003139/0.6696, allocations: 9.042 MB / 0.4978 GB, free: 34.62 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006558/0.6762, allocations: 10.64 MB / 0.5082 GB, free: 21.02 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001919/0.6764, allocations: 52 kB / 0.5082 GB, free: 20.96 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01136/0.6877, allocations: 7.865 MB / 0.5159 GB, free: 13.08 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/0.6878, allocations: 85 kB / 0.516 GB, free: 13 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.688, allocations: 184 kB / 0.5161 GB, free: 12.82 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003229/0.6912, allocations: 1.46 MB / 0.5176 GB, free: 11.35 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003346/0.6945, allocations: 1.989 MB / 0.5195 GB, free: 9.355 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006257/0.7008, allocations: 8.564 MB / 0.5279 GB, free: 468 kB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006084/0.7069, allocations: 399.6 kB / 0.5283 GB, free: 68 kB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/0.708, allocations: 460.1 kB / 0.5287 GB, free: 15.61 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1111): * Single equations (assignments): 1104 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.002662/0.7107, allocations: 0.8837 MB / 0.5296 GB, free: 14.72 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/0.712, allocations: 0.6214 MB / 0.5302 GB, free: 14.09 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004308/0.7163, allocations: 2.575 MB / 0.5327 GB, free: 11.48 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/0.7164, allocations: 28 kB / 0.5327 GB, free: 11.46 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.7164, allocations: 8 kB / 0.5327 GB, free: 11.45 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.7164, allocations: 11.95 kB / 0.5327 GB, free: 11.44 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/0.7328, allocations: 9.612 MB / 0.5421 GB, free: 1.418 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.277e-05/0.7329, allocations: 16 kB / 0.5421 GB, free: 1.402 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009271/0.7338, allocations: 383.4 kB / 0.5425 GB, free: 1.027 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002946/0.7367, allocations: 1.18 MB / 0.5436 GB, free: 15.84 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/0.737, allocations: 71.98 kB / 0.5437 GB, free: 15.77 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007161/0.7442, allocations: 8.393 MB / 0.5519 GB, free: 7.039 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.418e-05/0.7442, allocations: 27.88 kB / 0.5519 GB, free: 7.012 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006306/0.7505, allocations: 4.363 MB / 0.5562 GB, free: 2.203 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/0.7522, allocations: 0.5781 MB / 0.5568 GB, free: 1.621 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006243/0.7528, allocations: 75.98 kB / 0.5568 GB, free: 1.547 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.7542, allocations: 75.97 kB / 0.5569 GB, free: 1.473 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003581/0.7545, allocations: 252.4 kB / 0.5571 GB, free: 1.227 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.7547, allocations: 80.28 kB / 0.5572 GB, free: 1.148 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003052/0.7577, allocations: 2.375 MB / 0.5595 GB, free: 14.8 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7577, allocations: 0 / 0.5595 GB, free: 14.8 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006498/0.7642, allocations: 1.898 MB / 0.5614 GB, free: 12.91 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (219): * Single equations (assignments): 212 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007491/0.765, allocations: 321.8 kB / 0.5617 GB, free: 12.58 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006685/0.7716, allocations: 4.769 MB / 0.5664 GB, free: 7.777 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.849e-05/0.7717, allocations: 4 kB / 0.5664 GB, free: 7.773 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.7736, allocations: 1.642 MB / 0.568 GB, free: 6.078 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004181/0.7778, allocations: 0.8382 MB / 0.5688 GB, free: 5.266 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01993/0.7977, allocations: 13.22 MB / 0.5817 GB, free: 7.586 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003054/0.8007, allocations: 2.142 MB / 0.5838 GB, free: 5.41 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.002706/0.8034, allocations: 0.7755 MB / 0.5845 GB, free: 4.633 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/0.8052, allocations: 0.9705 MB / 0.5855 GB, free: 3.66 MB / 442.8 MB Notification: Performance of SimCode: time 2.314e-06/0.8052, allocations: 4 kB / 0.5855 GB, free: 3.656 MB / 442.8 MB Notification: Performance of Templates: time 0.2049/1.01, allocations: 69.11 MB / 0.653 GB, free: 118.7 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.062810036819428]