Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0007109/0.0007109, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001519/0.00223, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009448/0.0009448, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001286/0.002231, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8245/0.8245, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.156/0.9805, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.294e-05/1.438e-05, allocations: 2.312 kB / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01064/0.01065, allocations: 15.14 MB / 254.9 MB, free: 7.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007882/0.01853, allocations: 5.294 MB / 260.2 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.01966, allocations: 131.3 kB / 260.3 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003942/0.0236, allocations: 4.52 MB / 264.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.02665, allocations: 2.678 MB / 267.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.02808, allocations: 1.201 MB / 268.7 MB, free: 9.312 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005413/0.0335, allocations: 8.088 MB / 276.8 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003005/0.0365, allocations: 4.672 MB / 281.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003811/0.04031, allocations: 5.05 MB / 286.5 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002636/0.04295, allocations: 3.488 MB / 290 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004679/0.04342, allocations: 0.5117 MB / 290.5 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.04494, allocations: 1.498 MB / 292 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001485/0.04642, allocations: 2.872 MB / 294.9 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.0476, allocations: 1.636 MB / 296.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004259/0.05186, allocations: 6.317 MB / 302.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.05187, allocations: 0 / 302.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.05187, allocations: 0 / 302.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.826e-05/0.05194, allocations: 0 / 302.8 MB, free: 6.992 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.008194/0.06014, allocations: 8.346 MB / 311.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.06017, allocations: 12.03 kB / 311.2 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0039/0.06407, allocations: 1.558 MB / 312.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00357/0.06764, allocations: 3.278 MB / 316 MB, free: 9.602 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.0678, allocations: 337.1 kB / 316.4 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/0.0683, allocations: 468 kB / 316.8 MB, free: 8.812 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006911/0.07521, allocations: 7.055 MB / 323.9 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.07531, allocations: 63.47 kB / 323.9 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000331/0.07564, allocations: 219.8 kB / 324.2 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001722/0.07736, allocations: 2.188 MB / 326.3 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005143/0.08251, allocations: 3.618 MB / 330 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1365/0.219, allocations: 43.02 MB / 373 MB, free: 26.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00545/0.2245, allocations: 2.778 MB / 375.8 MB, free: 26.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/0.2251, allocations: 0.6431 MB / 376.4 MB, free: 26.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006808/0.2319, allocations: 6.241 MB / 382.6 MB, free: 25.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.232, allocations: 69.83 kB / 382.7 MB, free: 25.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=237): time 3.927e-06/0.232, allocations: 0 / 382.7 MB, free: 25.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=347): time 0.07565/0.3076, allocations: 27.77 MB / 410.5 MB, free: 10.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.3077, allocations: 166.7 kB / 410.6 MB, free: 9.898 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002676/0.3103, allocations: 4.367 MB / 415 MB, free: 6.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002685/0.3106, allocations: 77.7 kB / 415.1 MB, free: 6.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009043/0.3115, allocations: 4.006 MB / 419.1 MB, free: 2.488 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006401/0.3121, allocations: 1.317 MB / 420.4 MB, free: 1.242 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/0.3136, allocations: 1.613 MB / 422 MB, free: 15.81 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.442e-05/0.3137, allocations: 301.1 kB / 422.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002455/0.3161, allocations: 1.779 MB / 424.1 MB, free: 13.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004484/0.3206, allocations: 6.313 MB / 430.4 MB, free: 5.422 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007104/0.3277, allocations: 9.168 MB / 439.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.158e-05/0.3278, allocations: 55.98 kB / 439.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.02804/0.3558, allocations: 10.63 MB / 450.3 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.416e-05/0.3559, allocations: 78.03 kB / 450.3 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/0.356, allocations: 167.1 kB / 450.5 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01788/0.3739, allocations: 9.552 MB / 460 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003008/0.3769, allocations: 1.887 MB / 461.9 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03107/0.4079, allocations: 18.45 MB / 480.4 MB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004367/0.4123, allocations: 355.7 kB / 480.7 MB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005187/0.4128, allocations: 418 kB / 481.1 MB, free: 1.789 MB / 394.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 {(11,77,47.9%), (5,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of prepare postOptimizeDAE: time 0.001766/0.4146, allocations: 0.7898 MB / 481.9 MB, free: 0.9844 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007114/0.4153, allocations: 375.6 kB / 482.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/0.4389, allocations: 7.19 MB / 489.5 MB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/0.4389, allocations: 32 kB / 489.5 MB, free: 9.391 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.631e-05/0.4389, allocations: 24 kB / 489.5 MB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/0.4389, allocations: 15.94 kB / 489.6 MB, free: 9.352 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1608/0.5997, allocations: 15.97 MB / 0.4937 GB, free: 114.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-05/0.5998, allocations: 17.77 kB / 0.4937 GB, free: 114.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.6012, allocations: 0.5617 MB / 0.4942 GB, free: 114.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/0.6022, allocations: 487.6 kB / 0.4947 GB, free: 114.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01654/0.6188, allocations: 9.053 MB / 0.5036 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003003/0.6191, allocations: 72.02 kB / 0.5036 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02466/0.6437, allocations: 15.13 MB / 0.5184 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.6437, allocations: 14.16 kB / 0.5184 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02471/0.6684, allocations: 8.802 MB / 0.527 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008029/0.6692, allocations: 70.75 kB / 0.5271 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.6708, allocations: 71.11 kB / 0.5271 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007944/0.6716, allocations: 308.8 kB / 0.5274 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/0.6718, allocations: 74.22 kB / 0.5275 GB, free: 109.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001381/0.6732, allocations: 1.697 MB / 0.5292 GB, free: 109.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6732, allocations: 0 / 0.5292 GB, free: 109.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004778/0.678, allocations: 2.465 MB / 0.5316 GB, free: 107 MB / 410.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 {(13,68,39.6%), (7,42,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005115/0.6785, allocations: 222.6 kB / 0.5318 GB, free: 106.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00755/0.686, allocations: 6.56 MB / 0.5382 GB, free: 100.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001862/0.6862, allocations: 158.3 kB / 0.5383 GB, free: 100.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005188/0.6914, allocations: 3.911 MB / 0.5422 GB, free: 96.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.6941, allocations: 4.569 MB / 0.5466 GB, free: 91.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.709, allocations: 13.48 MB / 0.5598 GB, free: 78.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.7104, allocations: 1.939 MB / 0.5617 GB, free: 76.15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001181/0.7116, allocations: 0.6523 MB / 0.5623 GB, free: 75.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008324/0.7124, allocations: 0.7175 MB / 0.563 GB, free: 74.77 MB / 410.7 MB Notification: Performance of SimCode: time 1.051e-06/0.7124, allocations: 0 / 0.563 GB, free: 74.77 MB / 410.7 MB Notification: Performance of Templates: time 0.222/0.9345, allocations: 138.1 MB / 0.6979 GB, free: 75.91 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.594917279668152]