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.0007581/0.0007581, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001062/0.00182, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006251/0.0006251, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000956/0.001581, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8344/0.8344, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1357/0.97, allocations: 52.5 MB / 238.5 MB, free: 7.605 MB / 234.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.974e-06/1.974e-06, allocations: 4 kB / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.323e-05/1.52e-05, allocations: 2.312 kB / 239.7 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01295/0.01297, allocations: 17.25 MB / 257 MB, free: 5.031 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.0233, allocations: 6.272 MB / 263.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.02545, allocations: 171.1 kB / 263.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005485/0.03093, allocations: 6.354 MB / 269.8 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004182/0.03511, allocations: 3.025 MB / 272.8 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002566/0.03768, allocations: 2.346 MB / 275.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007337/0.04502, allocations: 9.64 MB / 284.8 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006333/0.05135, allocations: 6.739 MB / 291.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006275/0.05763, allocations: 6.349 MB / 297.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003791/0.06142, allocations: 4.56 MB / 302.5 MB, free: 7.371 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007378/0.06215, allocations: 0.7383 MB / 303.2 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002268/0.06442, allocations: 1.935 MB / 305.1 MB, free: 4.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00222/0.06664, allocations: 3.679 MB / 308.8 MB, free: 1.008 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.06823, allocations: 2.093 MB / 310.9 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005671/0.0739, allocations: 7.822 MB / 318.7 MB, free: 7.062 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.072e-05/0.07391, allocations: 0 / 318.7 MB, free: 7.062 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.07392, allocations: 3.984 kB / 318.7 MB, free: 7.059 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.116e-05/0.07401, allocations: 0 / 318.7 MB, free: 7.059 MB / 314.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.186/0.26, allocations: 9.812 MB / 328.5 MB, free: 66.92 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 2.442e-05/0.26, allocations: 9.531 kB / 328.5 MB, free: 66.92 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006668/0.2667, allocations: 2.113 MB / 330.7 MB, free: 66.91 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004128/0.2708, allocations: 4.161 MB / 334.8 MB, free: 65.81 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.271, allocations: 433.7 kB / 335.2 MB, free: 65.65 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004944/0.2715, allocations: 0.5842 MB / 335.8 MB, free: 65.49 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006779/0.2782, allocations: 8.289 MB / 344.1 MB, free: 60.15 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.2783, allocations: 82.8 kB / 344.2 MB, free: 60.11 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/0.2787, allocations: 270.6 kB / 344.5 MB, free: 59.89 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001315/0.28, allocations: 2.197 MB / 346.7 MB, free: 57.71 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004985/0.285, allocations: 4.063 MB / 350.7 MB, free: 53.79 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02321/0.3082, allocations: 47.84 MB / 398.6 MB, free: 4.91 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005723/0.3139, allocations: 2.964 MB / 401.5 MB, free: 1.906 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006384/0.3146, allocations: 0.6756 MB / 402.2 MB, free: 1.23 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007635/0.3222, allocations: 6.732 MB / 408.9 MB, free: 10.47 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.3222, allocations: 60.5 kB / 409 MB, free: 10.4 MB / 330.8 MB Notification: Performance of pre-optimization done (n=227): time 3.587e-06/0.3223, allocations: 0 / 409 MB, free: 10.4 MB / 330.8 MB Notification: Performance of matching and sorting (n=276): time 0.04095/0.3632, allocations: 17.85 MB / 426.8 MB, free: 8.711 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.3633, allocations: 158.5 kB / 427 MB, free: 8.527 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00382/0.3671, allocations: 5.076 MB / 432.1 MB, free: 3.477 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.3672, allocations: 65.7 kB / 432.1 MB, free: 3.406 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001643/0.3689, allocations: 4.631 MB / 436.8 MB, free: 14.74 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007707/0.3696, allocations: 1.105 MB / 437.9 MB, free: 13.63 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/0.3709, allocations: 1.716 MB / 439.6 MB, free: 11.9 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 5.774e-05/0.371, allocations: 304.9 kB / 439.9 MB, free: 11.6 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.3726, allocations: 1.202 MB / 441.1 MB, free: 10.39 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003768/0.3763, allocations: 6.495 MB / 447.6 MB, free: 1.23 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006253/0.3826, allocations: 8.898 MB / 456.5 MB, free: 5.711 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.838e-05/0.3826, allocations: 55.94 kB / 456.5 MB, free: 5.656 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007402/0.39, allocations: 6.738 MB / 463.3 MB, free: 14.87 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.421e-05/0.3901, allocations: 88.06 kB / 463.4 MB, free: 14.78 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/0.3902, allocations: 196 kB / 463.5 MB, free: 14.59 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002901/0.3931, allocations: 1.461 MB / 465 MB, free: 13.12 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003208/0.3963, allocations: 2.227 MB / 467.2 MB, free: 10.89 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/0.4027, allocations: 6.677 MB / 473.9 MB, free: 3.918 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003277/0.406, allocations: 406.9 kB / 474.3 MB, free: 3.523 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003861/0.4064, allocations: 456.2 kB / 474.8 MB, free: 3.078 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.001532/0.4079, allocations: 0.8448 MB / 475.6 MB, free: 2.215 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007285/0.4086, allocations: 371.6 kB / 476 MB, free: 1.852 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1177/0.5264, allocations: 2.265 MB / 478.2 MB, free: 122.7 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.452e-05/0.5264, allocations: 29.19 kB / 478.3 MB, free: 122.7 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.5264, allocations: 7.219 kB / 478.3 MB, free: 122.7 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-05/0.5265, allocations: 13.19 kB / 478.3 MB, free: 122.7 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.5377, allocations: 8.294 MB / 486.6 MB, free: 121.3 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.469e-05/0.5378, allocations: 23.66 kB / 486.6 MB, free: 121.3 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008678/0.5386, allocations: 445.1 kB / 487 MB, free: 121.3 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009058/0.5395, allocations: 0.5456 MB / 487.6 MB, free: 121.3 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002582/0.5421, allocations: 1.453 MB / 489 MB, free: 121.2 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.5422, allocations: 63.72 kB / 489.1 MB, free: 121.2 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004764/0.547, allocations: 6.514 MB / 495.6 MB, free: 117.2 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/0.547, allocations: 32.62 kB / 495.6 MB, free: 117.2 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003602/0.5506, allocations: 3.788 MB / 499.4 MB, free: 115.4 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006048/0.5512, allocations: 73.03 kB / 499.5 MB, free: 115.4 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.5525, allocations: 89.88 kB / 499.6 MB, free: 115.4 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000313/0.5528, allocations: 240.8 kB / 499.8 MB, free: 115.4 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.5529, allocations: 79.56 kB / 499.9 MB, free: 115.4 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.001605/0.5545, allocations: 2.003 MB / 0.4901 GB, free: 115.3 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5545, allocations: 3.969 kB / 0.4901 GB, free: 115.3 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004367/0.5589, allocations: 1.901 MB / 0.492 GB, free: 115.3 MB / 394.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.0004801/0.5594, allocations: 306.6 kB / 0.4923 GB, free: 115.2 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.003949/0.5633, allocations: 4.43 MB / 0.4966 GB, free: 114.4 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0002073/0.5635, allocations: 158.7 kB / 0.4968 GB, free: 114.4 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002185/0.5657, allocations: 2.188 MB / 0.4989 GB, free: 112.7 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/0.5692, allocations: 5.683 MB / 0.5045 GB, free: 106.4 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01557/0.5847, allocations: 13.34 MB / 0.5175 GB, free: 93.66 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001408/0.5861, allocations: 2.123 MB / 0.5196 GB, free: 91.51 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.001653/0.5878, allocations: 0.7756 MB / 0.5203 GB, free: 90.73 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/0.589, allocations: 0.8856 MB / 0.5212 GB, free: 89.84 MB / 394.8 MB Notification: Performance of SimCode: time 1.072e-06/0.589, allocations: 0 / 0.5212 GB, free: 89.84 MB / 394.8 MB Notification: Performance of Templates: time 0.0767/0.6657, allocations: 69.61 MB / 0.5891 GB, free: 20.65 MB / 394.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.877286900766194]