Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009289/0.0009289, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009702/0.0009702, allocations: 168.7 kB / 24.91 MB, free: 9.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8936/0.8936, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.044e-05/1.158e-05, allocations: 2.312 kB / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01153/0.01154, allocations: 17 MB / 290.5 MB, free: 196 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1046/0.1161, allocations: 6.2 MB / 296.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001844/0.118, allocations: 169.3 kB / 296.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005594/0.1236, allocations: 6.607 MB / 303.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004125/0.1277, allocations: 3.036 MB / 306.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002594/0.1303, allocations: 2.506 MB / 309 MB, free: 8.844 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00631/0.1366, allocations: 11.09 MB / 320.1 MB, free: 1.648 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005214/0.1418, allocations: 7.16 MB / 327.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00527/0.1471, allocations: 6.671 MB / 333.9 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00409/0.1512, allocations: 4.587 MB / 338.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009162/0.1521, allocations: 0.7383 MB / 339.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002009/0.1541, allocations: 1.927 MB / 341.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002288/0.1564, allocations: 4.111 MB / 345.3 MB, free: 9.184 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001603/0.158, allocations: 2.583 MB / 347.9 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005596/0.1636, allocations: 8.422 MB / 356.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1636, allocations: 0 / 356.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1636, allocations: 0 / 356.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.455e-05/0.1636, allocations: 0 / 356.3 MB, free: 14.14 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.008373/0.172, allocations: 8.233 MB / 364.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.172, allocations: 12.03 kB / 364.5 MB, free: 5.824 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006019/0.1781, allocations: 2.034 MB / 366.6 MB, free: 3.789 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00438/0.1824, allocations: 4.152 MB / 370.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.1826, allocations: 435.7 kB / 371.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005788/0.1832, allocations: 0.586 MB / 371.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0081/0.1913, allocations: 8.289 MB / 380 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001247/0.1914, allocations: 83.38 kB / 380.1 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004075/0.1918, allocations: 274.3 kB / 380.4 MB, free: 4.891 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001713/0.1936, allocations: 2.316 MB / 382.7 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006151/0.1997, allocations: 4.077 MB / 386.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2488/0.4486, allocations: 47.81 MB / 434.6 MB, free: 82.01 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007998/0.4566, allocations: 3.034 MB / 437.6 MB, free: 81.78 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.4578, allocations: 0.6776 MB / 438.3 MB, free: 81.75 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.4681, allocations: 6.785 MB / 445.1 MB, free: 80.93 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.4681, allocations: 56.69 kB / 445.1 MB, free: 80.89 MB / 378.8 MB Notification: Performance of pre-optimization done (n=227): time 5.079e-06/0.4682, allocations: 4.375 kB / 445.1 MB, free: 80.89 MB / 378.8 MB Notification: Performance of matching and sorting (n=276): time 0.04431/0.5125, allocations: 17.9 MB / 463 MB, free: 77.45 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.5125, allocations: 361.9 kB / 463.4 MB, free: 77.01 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003724/0.5162, allocations: 5.065 MB / 468.5 MB, free: 73.45 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002769/0.5165, allocations: 66.39 kB / 468.5 MB, free: 73.41 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/0.5178, allocations: 4.637 MB / 473.2 MB, free: 69.45 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000653/0.5185, allocations: 1.09 MB / 474.3 MB, free: 68.55 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00118/0.5197, allocations: 1.723 MB / 476 MB, free: 67.4 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.689e-05/0.5197, allocations: 309 kB / 476.3 MB, free: 67.1 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.5213, allocations: 1.198 MB / 477.5 MB, free: 65.89 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002462/0.5237, allocations: 6.498 MB / 484 MB, free: 56.84 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0048/0.5285, allocations: 8.285 MB / 492.3 MB, free: 46.66 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.77e-05/0.5286, allocations: 52 kB / 492.3 MB, free: 46.61 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007452/0.536, allocations: 6.746 MB / 499.1 MB, free: 39.82 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/0.5361, allocations: 88.25 kB / 499.1 MB, free: 39.74 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.743e-05/0.5362, allocations: 184 kB / 499.3 MB, free: 39.56 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002833/0.539, allocations: 1.446 MB / 0.489 GB, free: 38.1 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003147/0.5422, allocations: 2.094 MB / 0.4911 GB, free: 36 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005709/0.5479, allocations: 6.754 MB / 0.4977 GB, free: 28.97 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/0.5522, allocations: 399.6 kB / 0.4981 GB, free: 28.58 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005335/0.5527, allocations: 460 kB / 0.4985 GB, free: 28.13 MB / 378.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.001779/0.5545, allocations: 0.8438 MB / 0.4993 GB, free: 27.28 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006696/0.5551, allocations: 371.6 kB / 0.4997 GB, free: 26.91 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003066/0.5582, allocations: 2.27 MB / 0.5019 GB, free: 24.62 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/0.5582, allocations: 28 kB / 0.5019 GB, free: 24.59 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.5582, allocations: 10.84 kB / 0.5019 GB, free: 24.58 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.5583, allocations: 11.95 kB / 0.5019 GB, free: 24.57 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009485/0.5677, allocations: 8.29 MB / 0.51 GB, free: 15.9 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.5677, allocations: 20.94 kB / 0.51 GB, free: 15.88 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.5686, allocations: 415.4 kB / 0.5104 GB, free: 15.47 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002537/0.5711, allocations: 1.424 MB / 0.5118 GB, free: 14.03 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.5712, allocations: 72.06 kB / 0.5119 GB, free: 13.96 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004792/0.576, allocations: 6.613 MB / 0.5184 GB, free: 7.047 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.576, allocations: 31.88 kB / 0.5184 GB, free: 7.016 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003907/0.5799, allocations: 3.763 MB / 0.5221 GB, free: 2.836 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008831/0.5808, allocations: 0.5469 MB / 0.5226 GB, free: 2.285 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.5812, allocations: 71.97 kB / 0.5227 GB, free: 2.215 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.5823, allocations: 75.98 kB / 0.5227 GB, free: 2.141 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003142/0.5826, allocations: 244.4 kB / 0.523 GB, free: 1.902 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.5827, allocations: 79.98 kB / 0.5231 GB, free: 1.824 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001679/0.5844, allocations: 2.001 MB / 0.525 GB, free: 15.85 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5844, allocations: 4.031 kB / 0.525 GB, free: 15.85 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.00516/0.5895, allocations: 1.879 MB / 0.5268 GB, free: 13.97 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.0005277/0.5901, allocations: 302.6 kB / 0.5271 GB, free: 13.67 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.004754/0.5948, allocations: 4.264 MB / 0.5313 GB, free: 9.375 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001908/0.595, allocations: 124.2 kB / 0.5314 GB, free: 9.246 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.5964, allocations: 1.367 MB / 0.5328 GB, free: 7.844 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/0.5999, allocations: 1.178 MB / 0.5339 GB, free: 6.699 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/0.616, allocations: 12.94 MB / 0.5465 GB, free: 9.387 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001992/0.618, allocations: 2.13 MB / 0.5486 GB, free: 7.23 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00212/0.6201, allocations: 0.7794 MB / 0.5494 GB, free: 6.449 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/0.6216, allocations: 0.9014 MB / 0.5503 GB, free: 5.543 MB / 410.8 MB Notification: Performance of SimCode: time 1.573e-06/0.6216, allocations: 0 / 0.5503 GB, free: 5.543 MB / 410.8 MB Notification: Performance of Templates: time 0.1858/0.8074, allocations: 69.01 MB / 0.6177 GB, free: 148.5 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5932283019647]