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.001031/0.001031, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001456/0.002487, allocations: 449.7 kB / 10.37 MB, free: 332 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.0009094/0.0009094, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00129/0.0022, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9305/0.9305, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09162/1.022, allocations: 52.49 MB / 238.3 MB, free: 4.426 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.483e-06/1.483e-06, allocations: 0 / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.518e-05/1.666e-05, allocations: 2.312 kB / 239.5 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0127/0.01272, allocations: 17.26 MB / 256.8 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.02286, allocations: 6.276 MB / 263.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.02429, allocations: 171.1 kB / 263.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005501/0.02979, allocations: 6.358 MB / 269.6 MB, free: 5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004509/0.0343, allocations: 3.025 MB / 272.6 MB, free: 1.961 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1166/0.1509, allocations: 2.336 MB / 275 MB, free: 1.883 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.1613, allocations: 9.633 MB / 284.6 MB, free: 1.117 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006039/0.1673, allocations: 6.735 MB / 291.3 MB, free: 16.44 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007568/0.1749, allocations: 6.346 MB / 297.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004389/0.1793, allocations: 4.566 MB / 302.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009706/0.1802, allocations: 0.7383 MB / 303 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002061/0.1823, allocations: 1.932 MB / 304.9 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0027/0.185, allocations: 3.674 MB / 308.6 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002281/0.1873, allocations: 2.1 MB / 310.7 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006929/0.1942, allocations: 7.831 MB / 318.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.557e-05/0.1942, allocations: 0 / 318.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1942, allocations: 0 / 318.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003536/0.1946, allocations: 0 / 318.5 MB, free: 13.55 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.01109/0.2057, allocations: 9.83 MB / 328.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2057, allocations: 8.031 kB / 328.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006605/0.2123, allocations: 2.102 MB / 330.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004726/0.2171, allocations: 4.158 MB / 334.6 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.2172, allocations: 433.7 kB / 335 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005747/0.2178, allocations: 0.5845 MB / 335.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008146/0.226, allocations: 8.293 MB / 343.9 MB, free: 4.664 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.2261, allocations: 84.45 kB / 344 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003992/0.2265, allocations: 265.6 kB / 344.3 MB, free: 4.402 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001948/0.2284, allocations: 2.327 MB / 346.6 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005886/0.2343, allocations: 4.08 MB / 350.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03666/0.271, allocations: 47.85 MB / 398.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00629/0.2773, allocations: 2.974 MB / 401.5 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007833/0.278, allocations: 0.6731 MB / 402.2 MB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008309/0.2863, allocations: 6.736 MB / 408.9 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.2864, allocations: 63.83 kB / 409 MB, free: 4.426 MB / 378.7 MB Notification: Performance of pre-optimization done (n=227): time 3.206e-06/0.2864, allocations: 0 / 409 MB, free: 4.426 MB / 378.7 MB Notification: Performance of matching and sorting (n=276): time 0.1623/0.4487, allocations: 17.44 MB / 426.4 MB, free: 115 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.4487, allocations: 157.3 kB / 426.6 MB, free: 114.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0041/0.4528, allocations: 5.08 MB / 431.6 MB, free: 114.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.453, allocations: 67.36 kB / 431.7 MB, free: 114.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.4544, allocations: 4.637 MB / 436.3 MB, free: 111.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005613/0.455, allocations: 1.092 MB / 437.4 MB, free: 110.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/0.4563, allocations: 1.719 MB / 439.2 MB, free: 110.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.287e-05/0.4564, allocations: 308 kB / 439.5 MB, free: 109.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001626/0.458, allocations: 1.201 MB / 440.7 MB, free: 109.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002896/0.4609, allocations: 6.509 MB / 447.2 MB, free: 102.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004535/0.4654, allocations: 8.258 MB / 455.4 MB, free: 95.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.251e-05/0.4655, allocations: 51.31 kB / 455.5 MB, free: 95.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007373/0.4729, allocations: 6.749 MB / 462.2 MB, free: 89.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.034e-05/0.4729, allocations: 85.25 kB / 462.3 MB, free: 89.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.473, allocations: 184 kB / 462.5 MB, free: 89.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00281/0.4758, allocations: 1.445 MB / 463.9 MB, free: 87.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/0.479, allocations: 2.231 MB / 466.2 MB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005682/0.4847, allocations: 6.754 MB / 472.9 MB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004221/0.4889, allocations: 403.6 kB / 473.3 MB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003839/0.4893, allocations: 456 kB / 473.8 MB, free: 77.5 MB / 378.7 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.002019/0.4913, allocations: 0.8526 MB / 474.6 MB, free: 76.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005913/0.4919, allocations: 359.6 kB / 475 MB, free: 76.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003113/0.495, allocations: 2.274 MB / 477.2 MB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/0.4951, allocations: 32 kB / 477.3 MB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.4951, allocations: 4 kB / 477.3 MB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.4951, allocations: 11.95 kB / 477.3 MB, free: 73.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008917/0.504, allocations: 8.295 MB / 485.6 MB, free: 65.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.504, allocations: 16 kB / 485.6 MB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008653/0.5049, allocations: 451.4 kB / 486 MB, free: 64.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006798/0.5056, allocations: 0.543 MB / 486.6 MB, free: 64.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002553/0.5081, allocations: 1.441 MB / 488 MB, free: 62.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.5082, allocations: 71.94 kB / 488.1 MB, free: 62.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004677/0.5129, allocations: 6.602 MB / 494.7 MB, free: 55.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/0.5129, allocations: 27.88 kB / 494.7 MB, free: 55.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.5163, allocations: 3.787 MB / 498.5 MB, free: 51.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004661/0.5168, allocations: 67.98 kB / 498.6 MB, free: 51.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.518, allocations: 87.97 kB / 498.7 MB, free: 51.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.5183, allocations: 244.4 kB / 498.9 MB, free: 51.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.5184, allocations: 88.02 kB / 499 MB, free: 51.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001368/0.5197, allocations: 1.994 MB / 0.4892 GB, free: 49.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.5197, allocations: 0 / 0.4892 GB, free: 49.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005745/0.5255, allocations: 1.898 MB / 0.4911 GB, free: 47.26 MB / 378.7 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.0005477/0.526, allocations: 311.8 kB / 0.4914 GB, free: 46.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004121/0.5302, allocations: 4.259 MB / 0.4955 GB, free: 42.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002014/0.5304, allocations: 152 kB / 0.4957 GB, free: 42.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.5315, allocations: 1.36 MB / 0.497 GB, free: 41.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003018/0.5345, allocations: 1.609 MB / 0.4986 GB, free: 39.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01754/0.552, allocations: 13.35 MB / 0.5116 GB, free: 25.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001727/0.5538, allocations: 2.135 MB / 0.5137 GB, free: 23.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001799/0.5556, allocations: 0.7833 MB / 0.5145 GB, free: 22.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/0.5568, allocations: 0.9014 MB / 0.5153 GB, free: 21.97 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5568, allocations: 0 / 0.5153 GB, free: 21.97 MB / 378.7 MB Notification: Performance of Templates: time 0.1975/0.7543, allocations: 70.52 MB / 0.5842 GB, free: 96.21 MB / 394.7 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.66252631880343]