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.0009859/0.0009859, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001045/0.001045, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 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.9143/0.9143, allocations: 177.1 MB / 205 MB, free: 5.277 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.462e-06/1.462e-06, allocations: 0 / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.386e-05, allocations: 2.312 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.1353/0.1353, allocations: 17.54 MB / 290.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01046/0.1457, allocations: 5.974 MB / 296.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002978/0.1487, allocations: 173.6 kB / 296.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007318/0.156, allocations: 6.754 MB / 303.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005827/0.1619, allocations: 3.001 MB / 306.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003329/0.1652, allocations: 2.524 MB / 308.9 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0084/0.1736, allocations: 11.13 MB / 320.1 MB, free: 1.805 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007188/0.1808, allocations: 7.456 MB / 327.5 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006122/0.1869, allocations: 4.961 MB / 332.5 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005135/0.192, allocations: 4.812 MB / 337.3 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001436/0.1935, allocations: 0.7344 MB / 338 MB, free: 448 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002854/0.1963, allocations: 1.877 MB / 339.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002592/0.1989, allocations: 4.103 MB / 344 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002217/0.2011, allocations: 2.583 MB / 346.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007019/0.2082, allocations: 8.406 MB / 355 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2082, allocations: 0 / 355 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2082, allocations: 0 / 355 MB, free: 15.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001325/0.2083, allocations: 4 kB / 355 MB, free: 15.41 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.01211/0.2204, allocations: 9.701 MB / 364.7 MB, free: 5.629 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2204, allocations: 8.031 kB / 364.7 MB, free: 5.621 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02272/0.2432, allocations: 5.755 MB / 370.5 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01057/0.2537, allocations: 5.751 MB / 376.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.254, allocations: 435.7 kB / 376.6 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/0.2551, allocations: 0.5859 MB / 377.2 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01611/0.2712, allocations: 10.54 MB / 387.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001649/0.2714, allocations: 79.41 kB / 387.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005167/0.2719, allocations: 267.8 kB / 388.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002491/0.2744, allocations: 2.658 MB / 390.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01318/0.2876, allocations: 5.965 MB / 396.7 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3039/0.5915, allocations: 65.02 MB / 461.7 MB, free: 64.15 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/0.603, allocations: 5.493 MB / 467.2 MB, free: 63.98 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/0.605, allocations: 1.51 MB / 468.8 MB, free: 63.94 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.6184, allocations: 11.19 MB / 479.9 MB, free: 60.92 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.6184, allocations: 69.11 kB / 480 MB, free: 60.86 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 6.172e-06/0.6184, allocations: 0 / 480 MB, free: 60.86 MB / 378.8 MB Notification: Performance of matching and sorting (n=374): time 0.1122/0.7306, allocations: 57.38 MB / 0.5248 GB, free: 10.54 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.759e-05/0.7307, allocations: 384.5 kB / 0.5252 GB, free: 10.09 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005623/0.7363, allocations: 5.484 MB / 0.5305 GB, free: 4.824 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008196/0.7371, allocations: 81.7 kB / 0.5306 GB, free: 4.738 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001977/0.7391, allocations: 5.166 MB / 0.5356 GB, free: 15.96 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001941/0.7411, allocations: 1.488 MB / 0.5371 GB, free: 14.49 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002929/0.744, allocations: 2.035 MB / 0.5391 GB, free: 12.44 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.7441, allocations: 476.8 kB / 0.5395 GB, free: 11.97 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/0.748, allocations: 1.936 MB / 0.5414 GB, free: 10.03 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008061/0.756, allocations: 9.557 MB / 0.5508 GB, free: 13.16 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/0.7703, allocations: 12.35 MB / 0.5628 GB, free: 13.94 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001898/0.7705, allocations: 48 kB / 0.5629 GB, free: 13.89 MB / 426.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.185/0.9555, allocations: 13.84 MB / 0.5764 GB, free: 132 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/0.9556, allocations: 81.28 kB / 0.5765 GB, free: 132 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002559/0.9559, allocations: 172.5 kB / 0.5766 GB, free: 132 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01494/0.9708, allocations: 5.937 MB / 0.5824 GB, free: 131.9 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005258/0.9761, allocations: 2.189 MB / 0.5846 GB, free: 131.9 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01943/0.9955, allocations: 15.81 MB / 0.6 GB, free: 126.2 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006265/1.002, allocations: 0.8629 MB / 0.6008 GB, free: 126.2 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001126/1.003, allocations: 0.528 MB / 0.6014 GB, free: 126.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.002917/1.006, allocations: 0.8801 MB / 0.6022 GB, free: 126 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.007, allocations: 0.6652 MB / 0.6029 GB, free: 126 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/1.022, allocations: 9.052 MB / 0.6117 GB, free: 125.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.439e-05/1.022, allocations: 53.11 kB / 0.6118 GB, free: 125.7 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.431e-05/1.022, allocations: 21.56 kB / 0.6118 GB, free: 125.7 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.735e-05/1.022, allocations: 16.11 kB / 0.6118 GB, free: 125.7 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0286/1.051, allocations: 19.11 MB / 0.6305 GB, free: 111.6 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.879e-05/1.051, allocations: 4 kB / 0.6305 GB, free: 111.6 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002195/1.053, allocations: 0.6083 MB / 0.631 GB, free: 111 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01235/1.065, allocations: 5.529 MB / 0.6364 GB, free: 105.5 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007774/1.066, allocations: 70.69 kB / 0.6365 GB, free: 105.4 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01731/1.083, allocations: 14.57 MB / 0.6507 GB, free: 90.74 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.083, allocations: 11.94 kB / 0.6508 GB, free: 90.73 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/1.101, allocations: 10.86 MB / 0.6614 GB, free: 80.01 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/1.103, allocations: 0.6026 MB / 0.6619 GB, free: 79.41 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008604/1.104, allocations: 66.11 kB / 0.662 GB, free: 79.35 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002624/1.107, allocations: 0.5408 MB / 0.6625 GB, free: 78.81 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008843/1.107, allocations: 266.5 kB / 0.6628 GB, free: 78.55 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.108, allocations: 96 kB / 0.6629 GB, free: 78.45 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003133/1.111, allocations: 2.508 MB / 0.6653 GB, free: 75.97 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.111, allocations: 0 / 0.6653 GB, free: 75.97 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.008109/1.119, allocations: 2.605 MB / 0.6679 GB, free: 73.38 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.0009644/1.12, allocations: 318.7 kB / 0.6682 GB, free: 73.09 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01174/1.132, allocations: 7.842 MB / 0.6758 GB, free: 65.2 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 8.455e-06/1.132, allocations: 0 / 0.6758 GB, free: 65.2 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004723/1.136, allocations: 3.527 MB / 0.6793 GB, free: 61.61 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003879/1.14, allocations: 0.8329 MB / 0.6801 GB, free: 60.82 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/1.16, allocations: 14.95 MB / 0.6947 GB, free: 45.73 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002343/1.163, allocations: 2.231 MB / 0.6969 GB, free: 43.46 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.004111/1.167, allocations: 2.305 MB / 0.6991 GB, free: 41.15 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/1.168, allocations: 377.7 kB / 0.6995 GB, free: 40.79 MB / 426.8 MB Notification: Performance of SimCode: time 2.204e-06/1.168, allocations: 0 / 0.6995 GB, free: 40.79 MB / 426.8 MB Notification: Performance of Templates: time 0.2347/1.403, allocations: 109.9 MB / 0.8069 GB, free: 75.7 MB / 426.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 -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: 5.897925870958716]