Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0008968/0.0008968, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009135/0.0009135, allocations: 168.2 kB / 25.7 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8349/0.8349, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.386e-05/1.503e-05, allocations: 6.25 kB / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01083/0.01085, allocations: 15.1 MB / 266.6 MB, free: 8.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008499/0.01935, allocations: 5.262 MB / 271.9 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.02084, allocations: 135.2 kB / 272 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004371/0.02521, allocations: 4.777 MB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003631/0.02884, allocations: 2.756 MB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.03044, allocations: 1.31 MB / 280.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005851/0.03629, allocations: 8.461 MB / 289.3 MB, free: 1.324 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003629/0.03992, allocations: 5.381 MB / 294.7 MB, free: 11.84 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003957/0.04388, allocations: 4.873 MB / 299.6 MB, free: 6.957 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003078/0.04696, allocations: 3.519 MB / 303.1 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005324/0.04749, allocations: 0.5117 MB / 303.6 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.0491, allocations: 1.444 MB / 305.1 MB, free: 1.473 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001787/0.05089, allocations: 3.222 MB / 308.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.05253, allocations: 2.017 MB / 310.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00493/0.05746, allocations: 6.847 MB / 317.1 MB, free: 5.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.05747, allocations: 0 / 317.1 MB, free: 5.348 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.05747, allocations: 0 / 317.1 MB, free: 5.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.906e-05/0.05756, allocations: 0 / 317.1 MB, free: 5.348 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.007768/0.06532, allocations: 7.025 MB / 324.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.06536, allocations: 11.98 kB / 324.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003932/0.06929, allocations: 1.573 MB / 325.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/0.07296, allocations: 3.341 MB / 329.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.07312, allocations: 345.1 kB / 329.4 MB, free: 8.883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005352/0.07366, allocations: 468 kB / 329.9 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007409/0.08107, allocations: 7.051 MB / 336.9 MB, free: 432 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002711/0.08134, allocations: 67.47 kB / 337 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003678/0.08171, allocations: 215.8 kB / 337.2 MB, free: 148 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001854/0.08356, allocations: 2.321 MB / 339.5 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006415/0.08997, allocations: 3.61 MB / 343.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1673/0.2573, allocations: 43.04 MB / 386.2 MB, free: 61.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005604/0.2629, allocations: 2.779 MB / 389 MB, free: 60.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006733/0.2636, allocations: 0.6411 MB / 389.6 MB, free: 60.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006808/0.2704, allocations: 6.275 MB / 395.9 MB, free: 59.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.2704, allocations: 61.25 kB / 395.9 MB, free: 59.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=237): time 4.559e-06/0.2704, allocations: 3.219 kB / 396 MB, free: 59.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=349): time 0.0786/0.349, allocations: 27.69 MB / 423.6 MB, free: 33.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.3491, allocations: 247.4 kB / 423.9 MB, free: 33.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003242/0.3523, allocations: 4.402 MB / 428.3 MB, free: 29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004882/0.3528, allocations: 73.7 kB / 428.4 MB, free: 28.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.3538, allocations: 4.017 MB / 432.4 MB, free: 24.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007348/0.3545, allocations: 1.321 MB / 433.7 MB, free: 23.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/0.356, allocations: 1.617 MB / 435.3 MB, free: 21.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.479e-05/0.3561, allocations: 305.1 kB / 435.6 MB, free: 21.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002465/0.3585, allocations: 1.81 MB / 437.4 MB, free: 19.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/0.3617, allocations: 6.329 MB / 443.7 MB, free: 11.24 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005052/0.3668, allocations: 8.694 MB / 452.4 MB, free: 320 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.95e-05/0.3668, allocations: 48 kB / 452.5 MB, free: 272 kB / 330.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.02955/0.3964, allocations: 10.77 MB / 463.3 MB, free: 5.418 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.273e-05/0.3964, allocations: 72 kB / 463.3 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.3966, allocations: 167.9 kB / 463.5 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01931/0.4159, allocations: 9.654 MB / 473.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00343/0.4193, allocations: 1.677 MB / 474.8 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03222/0.4515, allocations: 18.72 MB / 493.5 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004717/0.4563, allocations: 355.7 kB / 493.9 MB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005298/0.4568, allocations: 420 kB / 494.3 MB, free: 6.043 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001867/0.4587, allocations: 0.7829 MB / 495.1 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007863/0.4594, allocations: 375.6 kB / 495.4 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1267/0.5861, allocations: 7.337 MB / 0.491 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.434e-05/0.5862, allocations: 34.34 kB / 0.491 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.558e-05/0.5862, allocations: 29.03 kB / 0.4911 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.271e-05/0.5863, allocations: 16.78 kB / 0.4911 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03553/0.6218, allocations: 16.3 MB / 0.507 GB, free: 118.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.6219, allocations: 7.719 kB / 0.507 GB, free: 118.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006141/0.6225, allocations: 293.6 kB / 0.5073 GB, free: 118.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01629/0.6388, allocations: 9.324 MB / 0.5164 GB, free: 115.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002693/0.639, allocations: 71.3 kB / 0.5165 GB, free: 115.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02814/0.6672, allocations: 15.55 MB / 0.5316 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/0.6672, allocations: 15.38 kB / 0.5317 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03375/0.7009, allocations: 8.866 MB / 0.5403 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002385/0.7033, allocations: 1.175 MB / 0.5415 GB, free: 90.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/0.7041, allocations: 72.31 kB / 0.5415 GB, free: 90.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/0.7061, allocations: 75.98 kB / 0.5416 GB, free: 90.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009161/0.707, allocations: 302.9 kB / 0.5419 GB, free: 90.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/0.7072, allocations: 79.98 kB / 0.542 GB, free: 90.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001566/0.7088, allocations: 1.725 MB / 0.5437 GB, free: 88.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7088, allocations: 0 / 0.5437 GB, free: 88.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00565/0.7144, allocations: 2.496 MB / 0.5461 GB, free: 86.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005461/0.715, allocations: 216.1 kB / 0.5463 GB, free: 86.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008888/0.7238, allocations: 7.009 MB / 0.5531 GB, free: 79.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001499/0.724, allocations: 116.2 kB / 0.5533 GB, free: 78.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005803/0.7298, allocations: 3.646 MB / 0.5568 GB, free: 75.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/0.7327, allocations: 0.9562 MB / 0.5577 GB, free: 74.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/0.7454, allocations: 13.47 MB / 0.5709 GB, free: 60.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001687/0.7471, allocations: 1.964 MB / 0.5728 GB, free: 58.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001379/0.7485, allocations: 0.6556 MB / 0.5735 GB, free: 58.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008932/0.7494, allocations: 0.7315 MB / 0.5742 GB, free: 57.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7494, allocations: 0 / 0.5742 GB, free: 57.32 MB / 378.7 MB Notification: Performance of Templates: time 0.2244/0.9738, allocations: 140.6 MB / 0.7115 GB, free: 47.55 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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.198793477844447]