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.001029/0.001029, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.0009143/0.0009143, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9447/0.9447, allocations: 173.3 MB / 201.1 MB, free: 9.336 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 2.194e-06/2.194e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.77e-05/2.99e-05, allocations: 10.19 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0145/0.01453, allocations: 17.68 MB / 285.7 MB, free: 4.664 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1451/0.1596, allocations: 5.978 MB / 291.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003232/0.1628, allocations: 171.2 kB / 291.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007832/0.1706, allocations: 6.774 MB / 298.6 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005645/0.1763, allocations: 3.033 MB / 301.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003127/0.1794, allocations: 2.533 MB / 304.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009977/0.1894, allocations: 10.79 MB / 315 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006842/0.1962, allocations: 7.462 MB / 322.4 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006066/0.2023, allocations: 4.963 MB / 327.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005032/0.2073, allocations: 4.817 MB / 332.2 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00138/0.2087, allocations: 0.7383 MB / 332.9 MB, free: 6.762 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002552/0.2113, allocations: 1.889 MB / 334.8 MB, free: 4.957 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002556/0.2138, allocations: 4.13 MB / 339 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002715/0.2165, allocations: 2.596 MB / 341.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00712/0.2237, allocations: 8.464 MB / 350 MB, free: 6.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2237, allocations: 4 kB / 350 MB, free: 6.496 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2237, allocations: 0 / 350 MB, free: 6.496 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.934e-05/0.2238, allocations: 3.938 kB / 350 MB, free: 6.492 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.01073/0.2345, allocations: 9.694 MB / 359.7 MB, free: 12.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.2345, allocations: 8.922 kB / 359.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0223/0.2568, allocations: 5.754 MB / 365.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.2672, allocations: 5.763 MB / 371.2 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.2675, allocations: 439.6 kB / 371.7 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00092/0.2684, allocations: 0.5867 MB / 372.3 MB, free: 400 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.2827, allocations: 10.55 MB / 382.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.2829, allocations: 75.38 kB / 382.9 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005286/0.2834, allocations: 264 kB / 383.1 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002473/0.2859, allocations: 2.663 MB / 385.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01134/0.2972, allocations: 5.965 MB / 391.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2873/0.5845, allocations: 65 MB / 456.8 MB, free: 67.87 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.5966, allocations: 5.5 MB / 462.3 MB, free: 67.7 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001862/0.5985, allocations: 1.522 MB / 463.8 MB, free: 67.64 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/0.6106, allocations: 11.17 MB / 475 MB, free: 65.69 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.6106, allocations: 73.73 kB / 475 MB, free: 65.63 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 5.039e-06/0.6106, allocations: 3.938 kB / 475 MB, free: 65.63 MB / 378.8 MB Notification: Performance of matching and sorting (n=374): time 0.1059/0.7165, allocations: 57.38 MB / 0.5199 GB, free: 17.68 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.7166, allocations: 376.3 kB / 0.5203 GB, free: 17.23 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004881/0.7215, allocations: 5.496 MB / 0.5257 GB, free: 11.96 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004741/0.7219, allocations: 85.7 kB / 0.5257 GB, free: 11.87 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/0.7237, allocations: 5.16 MB / 0.5308 GB, free: 7.086 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009389/0.7246, allocations: 1.491 MB / 0.5322 GB, free: 5.613 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.7265, allocations: 2.035 MB / 0.5342 GB, free: 3.562 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.241e-05/0.7265, allocations: 480.8 kB / 0.5347 GB, free: 3.09 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002525/0.729, allocations: 1.939 MB / 0.5366 GB, free: 1.145 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006186/0.7352, allocations: 9.553 MB / 0.5459 GB, free: 4.277 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/0.7458, allocations: 12.34 MB / 0.558 GB, free: 5.086 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/0.7459, allocations: 50.08 kB / 0.558 GB, free: 5.039 MB / 410.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02369/0.7696, allocations: 13.85 MB / 0.5715 GB, free: 7.137 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.123e-05/0.7697, allocations: 80 kB / 0.5716 GB, free: 7.059 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001078/0.7698, allocations: 176.1 kB / 0.5718 GB, free: 6.887 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01306/0.7829, allocations: 5.938 MB / 0.5776 GB, free: 0.9336 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1648/0.9477, allocations: 2.183 MB / 0.5797 GB, free: 137.9 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02111/0.9688, allocations: 15.82 MB / 0.5952 GB, free: 132.2 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005902/0.9747, allocations: 0.8699 MB / 0.596 GB, free: 132.2 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006422/0.9754, allocations: 0.5272 MB / 0.5965 GB, free: 132.2 MB / 426.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.00223/0.9776, allocations: 0.8782 MB / 0.5974 GB, free: 132 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009164/0.9785, allocations: 0.6693 MB / 0.598 GB, free: 132 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/0.9929, allocations: 9.049 MB / 0.6069 GB, free: 131.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.632e-05/0.9929, allocations: 45.53 kB / 0.6069 GB, free: 131.7 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-05/0.993, allocations: 17.56 kB / 0.6069 GB, free: 131.7 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.993, allocations: 16.92 kB / 0.6069 GB, free: 131.7 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02474/1.018, allocations: 19.13 MB / 0.6256 GB, free: 123.9 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/1.018, allocations: 11.73 kB / 0.6256 GB, free: 123.9 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/1.019, allocations: 0.6006 MB / 0.6262 GB, free: 123.3 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01091/1.03, allocations: 5.53 MB / 0.6316 GB, free: 117.9 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002462/1.03, allocations: 69.95 kB / 0.6317 GB, free: 117.8 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01593/1.046, allocations: 14.57 MB / 0.6459 GB, free: 103.1 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.046, allocations: 7 kB / 0.6459 GB, free: 103.1 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01711/1.063, allocations: 10.86 MB / 0.6565 GB, free: 92.49 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/1.065, allocations: 0.6036 MB / 0.6571 GB, free: 91.89 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006256/1.066, allocations: 67.94 kB / 0.6572 GB, free: 91.83 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/1.068, allocations: 0.5421 MB / 0.6577 GB, free: 91.29 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007193/1.069, allocations: 265.6 kB / 0.658 GB, free: 91.03 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002282/1.069, allocations: 91.67 kB / 0.6581 GB, free: 90.94 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002911/1.072, allocations: 2.512 MB / 0.6605 GB, free: 88.46 MB / 426.8 MB Notification: Performance of sort global known variables: time 7e-08/1.072, allocations: 0 / 0.6605 GB, free: 88.46 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006471/1.078, allocations: 2.628 MB / 0.6631 GB, free: 85.84 MB / 426.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.0007176/1.079, allocations: 311.1 kB / 0.6634 GB, free: 85.58 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.009613/1.089, allocations: 7.847 MB / 0.671 GB, free: 77.71 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.089, allocations: 4.062 kB / 0.671 GB, free: 77.7 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003977/1.093, allocations: 3.531 MB / 0.6745 GB, free: 74.1 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/1.095, allocations: 0.8354 MB / 0.6753 GB, free: 73.31 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/1.113, allocations: 14.96 MB / 0.6899 GB, free: 58.21 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001808/1.115, allocations: 2.228 MB / 0.6921 GB, free: 55.95 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003611/1.119, allocations: 2.306 MB / 0.6943 GB, free: 53.64 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/1.12, allocations: 380.4 kB / 0.6947 GB, free: 53.27 MB / 426.8 MB Notification: Performance of SimCode: time 2.154e-06/1.12, allocations: 2.734 kB / 0.6947 GB, free: 53.27 MB / 426.8 MB Notification: Performance of Templates: time 0.2346/1.355, allocations: 109.9 MB / 0.802 GB, free: 86.84 MB / 426.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.918506504967809]