Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002306/0.002306, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 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.00259/0.00259, allocations: 164.5 kB / 25.03 MB, free: 8.398 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 250.4 MB, free: 7.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.158e-05/4.377e-05, allocations: 6.109 kB / 250.4 MB, free: 7.715 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0274/0.02745, allocations: 17.94 MB / 268.3 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.0461, allocations: 6.084 MB / 274.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005904/0.05201, allocations: 171.1 kB / 274.6 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0156/0.06761, allocations: 6.756 MB / 281.3 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01165/0.07925, allocations: 3.048 MB / 284.4 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007616/0.08687, allocations: 2.526 MB / 286.9 MB, free: 3.047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01991/0.1068, allocations: 10.12 MB / 297 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01352/0.1203, allocations: 7.482 MB / 304.5 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01242/0.1327, allocations: 4.998 MB / 309.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0101/0.1428, allocations: 4.841 MB / 314.3 MB, free: 7.477 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002664/0.1455, allocations: 0.7383 MB / 315.1 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005529/0.151, allocations: 1.881 MB / 317 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006851/0.1579, allocations: 4.142 MB / 321.1 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006551/0.1644, allocations: 2.606 MB / 323.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02347/0.1879, allocations: 13.64 MB / 337.3 MB, free: 420 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.1879, allocations: 0 / 337.3 MB, free: 420 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1879, allocations: 0 / 337.3 MB, free: 420 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005175/0.1884, allocations: 0 / 337.3 MB, free: 420 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03323/0.2217, allocations: 10.52 MB / 347.9 MB, free: 5.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.2217, allocations: 11.98 kB / 347.9 MB, free: 5.781 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05573/0.2774, allocations: 5.751 MB / 353.6 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.283/0.5604, allocations: 6.013 MB / 359.6 MB, free: 94.58 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003262/0.5608, allocations: 435.3 kB / 360.1 MB, free: 94.57 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003074/0.5638, allocations: 0.5923 MB / 360.7 MB, free: 94.41 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02945/0.5933, allocations: 11.29 MB / 371.9 MB, free: 83.82 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000475/0.5938, allocations: 71.42 kB / 372 MB, free: 83.75 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002759/0.5965, allocations: 271.9 kB / 372.3 MB, free: 83.53 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004568/0.6011, allocations: 2.654 MB / 374.9 MB, free: 80.89 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02367/0.6248, allocations: 6.362 MB / 381.3 MB, free: 74.54 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09123/0.716, allocations: 73.61 MB / 454.9 MB, free: 15.36 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0243/0.7403, allocations: 5.564 MB / 460.5 MB, free: 9.773 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004532/0.7448, allocations: 1.514 MB / 462 MB, free: 8.246 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03812/0.7829, allocations: 11.35 MB / 473.3 MB, free: 12.98 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.439e-05/0.783, allocations: 75.39 kB / 473.4 MB, free: 12.9 MB / 362.8 MB Notification: Performance of pre-optimization done (n=281): time 6.953e-06/0.783, allocations: 0 / 473.4 MB, free: 12.9 MB / 362.8 MB Notification: Performance of matching and sorting (n=374): time 0.3898/1.173, allocations: 57.77 MB / 0.5187 GB, free: 116.8 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/1.173, allocations: 376.6 kB / 0.5191 GB, free: 116.3 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/1.183, allocations: 7.091 MB / 0.526 GB, free: 111.5 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.184, allocations: 82.33 kB / 0.5261 GB, free: 111.5 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003508/1.188, allocations: 5.514 MB / 0.5315 GB, free: 107 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00243/1.19, allocations: 1.594 MB / 0.533 GB, free: 105.5 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004187/1.194, allocations: 2.441 MB / 0.5354 GB, free: 103 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 7.57e-05/1.194, allocations: 480.7 kB / 0.5359 GB, free: 102.5 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004315/1.199, allocations: 2.041 MB / 0.5379 GB, free: 100.5 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007914/1.207, allocations: 10 MB / 0.5476 GB, free: 87.09 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/1.221, allocations: 13.17 MB / 0.5605 GB, free: 70.59 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002612/1.221, allocations: 48 kB / 0.5605 GB, free: 70.54 MB / 378.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.03935/1.26, allocations: 14.1 MB / 0.5743 GB, free: 56.39 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/1.26, allocations: 76.97 kB / 0.5744 GB, free: 56.32 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001687/1.261, allocations: 172 kB / 0.5745 GB, free: 56.15 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02423/1.285, allocations: 6.003 MB / 0.5804 GB, free: 50.13 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007809/1.293, allocations: 2.191 MB / 0.5826 GB, free: 47.93 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/1.324, allocations: 16.54 MB / 0.5987 GB, free: 31.05 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009932/1.334, allocations: 0.8815 MB / 0.5996 GB, free: 30.16 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00186/1.335, allocations: 0.5272 MB / 0.6001 GB, free: 29.64 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1091): * Single equations (assignments): 1084 * 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.004143/1.34, allocations: 1.005 MB / 0.6011 GB, free: 28.62 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002055/1.342, allocations: 0.672 MB / 0.6017 GB, free: 27.95 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02741/1.369, allocations: 9.187 MB / 0.6107 GB, free: 18.68 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.183e-05/1.369, allocations: 51.94 kB / 0.6107 GB, free: 18.63 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.71e-05/1.369, allocations: 20 kB / 0.6108 GB, free: 18.61 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.78e-05/1.369, allocations: 15.94 kB / 0.6108 GB, free: 18.6 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2021/1.571, allocations: 21.12 MB / 0.6314 GB, free: 100 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.453e-05/1.571, allocations: 3.5 kB / 0.6314 GB, free: 100 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003266/1.575, allocations: 0.6061 MB / 0.632 GB, free: 100 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02267/1.597, allocations: 5.583 MB / 0.6374 GB, free: 99.99 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008562/1.598, allocations: 63.34 kB / 0.6375 GB, free: 99.99 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03006/1.628, allocations: 15.24 MB / 0.6524 GB, free: 94.45 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.628, allocations: 0 / 0.6524 GB, free: 94.45 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03063/1.659, allocations: 11.2 MB / 0.6633 GB, free: 91.09 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00552/1.664, allocations: 1.535 MB / 0.6648 GB, free: 90.34 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/1.666, allocations: 68.42 kB / 0.6649 GB, free: 90.32 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006119/1.673, allocations: 0.5675 MB / 0.6654 GB, free: 89.8 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0013/1.674, allocations: 267.2 kB / 0.6657 GB, free: 89.57 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003647/1.674, allocations: 94.61 kB / 0.6658 GB, free: 89.5 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.00502/1.679, allocations: 3.082 MB / 0.6688 GB, free: 87.19 MB / 378.8 MB Notification: Performance of sort global known variables: time 1e-07/1.679, allocations: 0 / 0.6688 GB, free: 87.19 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01059/1.69, allocations: 2.638 MB / 0.6714 GB, free: 84.57 MB / 378.8 MB 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.001219/1.691, allocations: 301.1 kB / 0.6717 GB, free: 84.3 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.01633/1.707, allocations: 8.38 MB / 0.6798 GB, free: 75.96 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/1.707, allocations: 0 / 0.6798 GB, free: 75.96 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007659/1.715, allocations: 3.686 MB / 0.6834 GB, free: 72.24 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006221/1.721, allocations: 0.8382 MB / 0.6843 GB, free: 71.45 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02576/1.747, allocations: 15.19 MB / 0.6991 GB, free: 56.16 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006399/1.753, allocations: 4.385 MB / 0.7034 GB, free: 51.73 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.006078/1.759, allocations: 2.308 MB / 0.7056 GB, free: 49.42 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001998/1.761, allocations: 384.4 kB / 0.706 GB, free: 49.04 MB / 378.8 MB Notification: Performance of SimCode: time 1.543e-06/1.761, allocations: 0 / 0.706 GB, free: 49.04 MB / 378.8 MB Notification: Performance of Templates: time 0.3062/2.068, allocations: 110.8 MB / 0.8142 GB, free: 87.67 MB / 394.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.428371413028799]