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.0009253/0.0009253, allocations: 72.08 kB / 21.69 MB, free: 2.855 MB / 18.57 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.0009256/0.0009256, allocations: 143.7 kB / 24.97 MB, free: 8.812 MB / 18.57 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.9389/0.9389, allocations: 173.3 MB / 201.5 MB, free: 9.344 MB / 186.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.513e-06/1.513e-06, allocations: 0 / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.257e-05/2.409e-05, allocations: 10.19 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0136/0.01363, allocations: 17.61 MB / 285.7 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1329/0.1465, allocations: 5.97 MB / 291.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003012/0.1496, allocations: 169.2 kB / 291.8 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007836/0.1574, allocations: 6.759 MB / 298.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005591/0.163, allocations: 3.033 MB / 301.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003312/0.1663, allocations: 2.536 MB / 304.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008707/0.175, allocations: 10.77 MB / 314.9 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005513/0.1805, allocations: 7.466 MB / 322.4 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005641/0.1862, allocations: 4.974 MB / 327.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004568/0.1907, allocations: 4.817 MB / 332.2 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009364/0.1917, allocations: 0.7344 MB / 332.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.1941, allocations: 1.895 MB / 334.8 MB, free: 5.078 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002571/0.1966, allocations: 4.125 MB / 338.9 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002503/0.1991, allocations: 2.601 MB / 341.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007345/0.2065, allocations: 8.454 MB / 350 MB, free: 6.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2065, allocations: 0 / 350 MB, free: 6.625 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2065, allocations: 0 / 350 MB, free: 6.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001502/0.2066, allocations: 0 / 350 MB, free: 6.625 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.01111/0.2178, allocations: 9.707 MB / 359.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.2178, allocations: 8.922 kB / 359.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02273/0.2405, allocations: 5.75 MB / 365.5 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01016/0.2507, allocations: 5.764 MB / 371.2 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.2509, allocations: 439.1 kB / 371.6 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008906/0.2518, allocations: 0.5806 MB / 372.2 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/0.2665, allocations: 10.54 MB / 382.8 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001605/0.2667, allocations: 79.3 kB / 382.8 MB, free: 4.793 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004962/0.2672, allocations: 271.9 kB / 383.1 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002605/0.2698, allocations: 2.653 MB / 385.8 MB, free: 1.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.282, allocations: 5.977 MB / 391.7 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2859/0.5678, allocations: 64.99 MB / 456.7 MB, free: 52.73 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.5796, allocations: 5.495 MB / 462.2 MB, free: 52.55 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001722/0.5813, allocations: 1.512 MB / 463.7 MB, free: 52.5 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.5928, allocations: 11.18 MB / 474.9 MB, free: 50.73 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.5929, allocations: 69.83 kB / 475 MB, free: 50.68 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 5.22e-06/0.5929, allocations: 1.203 kB / 475 MB, free: 50.68 MB / 378.8 MB Notification: Performance of matching and sorting (n=374): time 0.1173/0.7102, allocations: 57.38 MB / 0.5199 GB, free: 6.23 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.555e-05/0.7103, allocations: 376.6 kB / 0.5203 GB, free: 5.781 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005941/0.7162, allocations: 5.495 MB / 0.5256 GB, free: 0.5078 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008323/0.717, allocations: 85.7 kB / 0.5257 GB, free: 428 kB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002827/0.7199, allocations: 5.156 MB / 0.5307 GB, free: 11.66 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00162/0.7215, allocations: 1.496 MB / 0.5322 GB, free: 10.19 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002236/0.7237, allocations: 2.045 MB / 0.5342 GB, free: 8.129 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.7238, allocations: 477.6 kB / 0.5347 GB, free: 7.66 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003061/0.7269, allocations: 1.936 MB / 0.5365 GB, free: 5.719 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006294/0.7332, allocations: 9.549 MB / 0.5459 GB, free: 8.852 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.744, allocations: 12.35 MB / 0.5579 GB, free: 9.875 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/0.7441, allocations: 48 kB / 0.558 GB, free: 9.828 MB / 426.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02397/0.7681, allocations: 13.85 MB / 0.5715 GB, free: 12.43 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.203e-05/0.7682, allocations: 81 kB / 0.5716 GB, free: 12.35 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/0.7684, allocations: 172 kB / 0.5717 GB, free: 12.18 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/0.7818, allocations: 5.941 MB / 0.5775 GB, free: 6.227 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004995/0.7867, allocations: 2.187 MB / 0.5797 GB, free: 4.035 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1567/0.9434, allocations: 15.81 MB / 0.5951 GB, free: 132.6 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006184/0.9496, allocations: 0.8631 MB / 0.596 GB, free: 132.6 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001283/0.9509, allocations: 0.5236 MB / 0.5965 GB, free: 132.6 MB / 442.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.002745/0.9536, allocations: 0.8901 MB / 0.5973 GB, free: 132.4 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/0.9553, allocations: 0.6692 MB / 0.598 GB, free: 132.4 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01518/0.9705, allocations: 9.05 MB / 0.6068 GB, free: 132.1 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.809e-05/0.9706, allocations: 53.72 kB / 0.6069 GB, free: 132.1 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.978e-05/0.9706, allocations: 16.75 kB / 0.6069 GB, free: 132.1 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.774e-05/0.9706, allocations: 19.12 kB / 0.6069 GB, free: 132.1 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02717/0.9978, allocations: 19.12 MB / 0.6256 GB, free: 127 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/0.9978, allocations: 3.906 kB / 0.6256 GB, free: 127 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/0.9996, allocations: 0.6049 MB / 0.6262 GB, free: 126.9 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01185/1.011, allocations: 5.531 MB / 0.6316 GB, free: 125 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004017/1.012, allocations: 68.47 kB / 0.6317 GB, free: 124.9 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01738/1.029, allocations: 14.58 MB / 0.6459 GB, free: 112 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.029, allocations: 8 kB / 0.6459 GB, free: 112 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01869/1.048, allocations: 10.86 MB / 0.6565 GB, free: 101.4 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/1.049, allocations: 0.6002 MB / 0.6571 GB, free: 100.8 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000956/1.05, allocations: 64.03 kB / 0.6571 GB, free: 100.8 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/1.054, allocations: 0.545 MB / 0.6577 GB, free: 100.2 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001123/1.055, allocations: 259.1 kB / 0.6579 GB, free: 99.98 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003327/1.055, allocations: 99.27 kB / 0.658 GB, free: 99.89 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.003586/1.059, allocations: 2.512 MB / 0.6605 GB, free: 97.41 MB / 442.8 MB Notification: Performance of sort global known variables: time 2.11e-07/1.059, allocations: 0 / 0.6605 GB, free: 97.41 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.008418/1.067, allocations: 2.623 MB / 0.663 GB, free: 94.8 MB / 442.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.0009472/1.068, allocations: 313.7 kB / 0.6633 GB, free: 94.54 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01254/1.081, allocations: 7.85 MB / 0.671 GB, free: 87.11 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.081, allocations: 0 / 0.671 GB, free: 87.11 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005469/1.086, allocations: 3.526 MB / 0.6744 GB, free: 83.56 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/1.091, allocations: 0.8431 MB / 0.6753 GB, free: 82.77 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02024/1.111, allocations: 14.97 MB / 0.6899 GB, free: 67.68 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/1.113, allocations: 2.233 MB / 0.6921 GB, free: 65.42 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003714/1.116, allocations: 2.306 MB / 0.6943 GB, free: 63.11 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/1.118, allocations: 376.4 kB / 0.6947 GB, free: 62.74 MB / 442.8 MB Notification: Performance of SimCode: time 2.234e-06/1.118, allocations: 0 / 0.6947 GB, free: 62.74 MB / 442.8 MB Notification: Performance of Templates: time 0.2364/1.354, allocations: 109.9 MB / 0.802 GB, free: 98.47 MB / 442.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 -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: 5.716055487981066]