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.001849/0.001849, allocations: 91.61 kB / 20.96 MB, free: 3.457 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.001945/0.001945, allocations: 165.3 kB / 24.27 MB, free: 148 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 1.527/1.527, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.803e-06/1.803e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.907e-05/3.087e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02417/0.0242, allocations: 17.44 MB / 289.8 MB, free: 340 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1647/0.1889, allocations: 5.951 MB / 295.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003556/0.1924, allocations: 170.5 kB / 295.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01189/0.2043, allocations: 6.734 MB / 302.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007925/0.2122, allocations: 2.988 MB / 305.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005103/0.2173, allocations: 2.529 MB / 308.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01153/0.2289, allocations: 11.13 MB / 319.2 MB, free: 1.934 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01142/0.2403, allocations: 7.445 MB / 326.7 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01287/0.2531, allocations: 4.962 MB / 331.7 MB, free: 6.141 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009734/0.2629, allocations: 4.817 MB / 336.5 MB, free: 1.609 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002376/0.2653, allocations: 0.7344 MB / 337.2 MB, free: 0.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004978/0.2702, allocations: 1.877 MB / 339.1 MB, free: 15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005752/0.276, allocations: 4.111 MB / 343.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005913/0.2819, allocations: 2.583 MB / 345.8 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02022/0.3021, allocations: 13.55 MB / 359.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3021, allocations: 0 / 359.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3021, allocations: 0 / 359.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004128/0.3025, allocations: 0 / 359.3 MB, free: 10.69 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.03072/0.3332, allocations: 10.51 MB / 369.8 MB, free: 100 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3333, allocations: 8.031 kB / 369.8 MB, free: 92 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05449/0.3878, allocations: 5.75 MB / 375.6 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/0.4071, allocations: 5.919 MB / 381.5 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004953/0.4076, allocations: 435.7 kB / 381.9 MB, free: 3.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002417/0.41, allocations: 0.582 MB / 382.5 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03512/0.4451, allocations: 11.29 MB / 393.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003123/0.4454, allocations: 75.41 kB / 393.9 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001635/0.4471, allocations: 271.8 kB / 394.2 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005589/0.4527, allocations: 2.658 MB / 396.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02448/0.4772, allocations: 6.359 MB / 403.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3459/0.823, allocations: 73.44 MB / 476.6 MB, free: 60.61 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01936/0.8424, allocations: 5.556 MB / 482.2 MB, free: 59.99 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003044/0.8454, allocations: 1.527 MB / 483.7 MB, free: 59.71 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02349/0.8689, allocations: 11.33 MB / 495 MB, free: 52.7 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.869, allocations: 69.86 kB / 495.1 MB, free: 52.63 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 5.76e-06/0.869, allocations: 0 / 495.1 MB, free: 52.63 MB / 378.8 MB Notification: Performance of matching and sorting (n=374): time 0.2236/1.093, allocations: 57.62 MB / 0.5398 GB, free: 11.99 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003409/1.093, allocations: 384 kB / 0.5401 GB, free: 11.54 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01441/1.107, allocations: 6.999 MB / 0.547 GB, free: 4.746 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001235/1.109, allocations: 85.7 kB / 0.547 GB, free: 4.656 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005907/1.114, allocations: 5.504 MB / 0.5524 GB, free: 15.37 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00321/1.118, allocations: 1.6 MB / 0.554 GB, free: 13.79 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005217/1.123, allocations: 2.425 MB / 0.5564 GB, free: 11.35 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0002397/1.123, allocations: 480.8 kB / 0.5568 GB, free: 10.88 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00503/1.128, allocations: 2.045 MB / 0.5588 GB, free: 8.824 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01323/1.141, allocations: 10 MB / 0.5686 GB, free: 11.43 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1664/1.308, allocations: 13.16 MB / 0.5814 GB, free: 131.4 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002078/1.308, allocations: 49.5 kB / 0.5815 GB, free: 131.4 MB / 426.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0388/1.347, allocations: 14.1 MB / 0.5952 GB, free: 129.9 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/1.347, allocations: 79.16 kB / 0.5953 GB, free: 129.9 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000157/1.347, allocations: 174.5 kB / 0.5955 GB, free: 129.9 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02392/1.371, allocations: 6.002 MB / 0.6013 GB, free: 129.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007463/1.379, allocations: 2.189 MB / 0.6035 GB, free: 129.6 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0312/1.41, allocations: 16.55 MB / 0.6196 GB, free: 120.9 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0101/1.42, allocations: 0.8636 MB / 0.6205 GB, free: 120.2 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001693/1.422, allocations: 0.5255 MB / 0.621 GB, free: 119.7 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.005399/1.427, allocations: 1.001 MB / 0.622 GB, free: 119 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002094/1.429, allocations: 0.6737 MB / 0.6226 GB, free: 118.7 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02586/1.455, allocations: 9.186 MB / 0.6316 GB, free: 109.4 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.917e-05/1.455, allocations: 47.98 kB / 0.6317 GB, free: 109.3 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.969e-05/1.455, allocations: 20 kB / 0.6317 GB, free: 109.3 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.804e-05/1.455, allocations: 15.94 kB / 0.6317 GB, free: 109.3 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0518/1.507, allocations: 21.01 MB / 0.6522 GB, free: 88.07 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.675e-05/1.507, allocations: 4.25 kB / 0.6522 GB, free: 88.07 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00341/1.51, allocations: 0.6084 MB / 0.6528 GB, free: 87.46 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02281/1.533, allocations: 5.577 MB / 0.6582 GB, free: 81.87 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001093/1.534, allocations: 67.98 kB / 0.6583 GB, free: 81.8 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03135/1.566, allocations: 15.24 MB / 0.6732 GB, free: 66.27 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.566, allocations: 8 kB / 0.6732 GB, free: 66.27 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03319/1.599, allocations: 11.19 MB / 0.6841 GB, free: 54.95 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00217/1.601, allocations: 0.6021 MB / 0.6847 GB, free: 54.35 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002225/1.603, allocations: 68 kB / 0.6848 GB, free: 54.29 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006026/1.609, allocations: 0.5381 MB / 0.6853 GB, free: 53.75 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00163/1.611, allocations: 266.5 kB / 0.6856 GB, free: 53.48 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007481/1.612, allocations: 91.91 kB / 0.6856 GB, free: 53.39 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.005762/1.617, allocations: 3.027 MB / 0.6886 GB, free: 50.39 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.71e-07/1.617, allocations: 0 / 0.6886 GB, free: 50.39 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01116/1.629, allocations: 2.606 MB / 0.6911 GB, free: 47.8 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.001705/1.63, allocations: 308.9 kB / 0.6914 GB, free: 47.52 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01777/1.648, allocations: 8.377 MB / 0.6996 GB, free: 39.09 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/1.648, allocations: 4 kB / 0.6996 GB, free: 39.08 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008292/1.656, allocations: 3.69 MB / 0.7032 GB, free: 35.33 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007684/1.664, allocations: 0.8318 MB / 0.704 GB, free: 34.54 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02825/1.692, allocations: 15.14 MB / 0.7188 GB, free: 19.26 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007153/1.699, allocations: 4.367 MB / 0.7231 GB, free: 14.85 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.006808/1.706, allocations: 2.301 MB / 0.7253 GB, free: 12.54 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00228/1.708, allocations: 380.4 kB / 0.7257 GB, free: 12.17 MB / 426.8 MB Notification: Performance of SimCode: time 2.054e-06/1.708, allocations: 0 / 0.7257 GB, free: 12.17 MB / 426.8 MB Notification: Performance of Templates: time 0.2882/1.997, allocations: 109.8 MB / 0.8329 GB, free: 44.78 MB / 426.8 MB " [Timeout remaining time 658] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.2391039240174]