Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00168/0.00168, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001817/0.001817, allocations: 210.1 kB / 23.74 MB, free: 4.672 MB / 14.72 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 47.92 kB / 378.3 MB, free: 2.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2633, allocations: 53.37 MB / 431.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01785/0.2812, allocations: 15.95 MB / 447.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01222/0.2934, allocations: 5.179 MB / 452.8 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003958/0.2973, allocations: 143.2 kB / 452.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009332/0.3067, allocations: 4.493 MB / 457.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008542/0.3152, allocations: 2.587 MB / 460 MB, free: 10.4 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003157/0.3184, allocations: 1.151 MB / 461.1 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.3318, allocations: 8.123 MB / 469.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006119/0.3379, allocations: 4.292 MB / 473.6 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00478/0.3427, allocations: 2.5 MB / 476.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006017/0.3487, allocations: 3.622 MB / 479.7 MB, free: 6.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.3503, allocations: 0.5039 MB / 480.2 MB, free: 6.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003359/0.3536, allocations: 1.529 MB / 481.7 MB, free: 4.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003502/0.3571, allocations: 3.027 MB / 484.7 MB, free: 1.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004729/0.3619, allocations: 3.333 MB / 488.1 MB, free: 14.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.3755, allocations: 10.34 MB / 498.4 MB, free: 3.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3755, allocations: 7.938 kB / 498.4 MB, free: 3.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3755, allocations: 0 / 498.4 MB, free: 3.793 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003756/0.3759, allocations: 3.938 kB / 498.4 MB, free: 3.789 MB / 398.1 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.02122/0.3971, allocations: 7.742 MB / 0.4943 GB, free: 11.97 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3971, allocations: 8.031 kB / 0.4943 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01513/0.4123, allocations: 3.343 MB / 0.4976 GB, free: 8.609 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.4238, allocations: 4.681 MB / 0.5021 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/0.4241, allocations: 341.1 kB / 0.5025 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001623/0.4258, allocations: 471.6 kB / 0.5029 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02755/0.4533, allocations: 14.57 MB / 0.5171 GB, free: 3.547 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002156/0.4535, allocations: 67.52 kB / 0.5172 GB, free: 3.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006423/0.4542, allocations: 211.8 kB / 0.5174 GB, free: 3.273 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005764/0.4599, allocations: 2.832 MB / 0.5202 GB, free: 444 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02758/0.4875, allocations: 13.21 MB / 0.5331 GB, free: 3.195 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3024/0.7899, allocations: 58.24 MB / 0.59 GB, free: 50.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01551/0.8055, allocations: 6.953 MB / 0.5967 GB, free: 43.65 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005003/0.8105, allocations: 4.582 MB / 0.6012 GB, free: 39.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01921/0.8297, allocations: 12.41 MB / 0.6133 GB, free: 26.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.8297, allocations: 72.58 kB / 0.6134 GB, free: 26.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.352e-06/0.8297, allocations: 0 / 0.6134 GB, free: 26.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.007/2.837, allocations: 411.4 MB / 1.015 GB, free: 147.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.727e-05/2.837, allocations: 261.7 kB / 1.015 GB, free: 147 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00634/2.843, allocations: 5.455 MB / 1.021 GB, free: 141.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001643/2.845, allocations: 113.7 kB / 1.021 GB, free: 141.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00187/2.847, allocations: 4.086 MB / 1.025 GB, free: 138.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002444/2.849, allocations: 2.104 MB / 1.027 GB, free: 136.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003891/2.853, allocations: 2.187 MB / 1.029 GB, free: 134.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.378e-05/2.853, allocations: 305.1 kB / 1.029 GB, free: 134.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01243/2.866, allocations: 11.06 MB / 1.04 GB, free: 123.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01482/2.881, allocations: 15.24 MB / 1.055 GB, free: 106 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02992/2.91, allocations: 27.45 MB / 1.082 GB, free: 76.69 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.901e-05/2.911, allocations: 39.94 kB / 1.082 GB, free: 76.65 MB / 0.545 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5703/3.481, allocations: 140.8 MB / 1.219 GB, free: 133.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.028e-05/3.481, allocations: 64 kB / 1.219 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/3.481, allocations: 136 kB / 1.22 GB, free: 133.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07593/3.557, allocations: 34.71 MB / 1.253 GB, free: 99.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004925/3.562, allocations: 1.568 MB / 1.255 GB, free: 97.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5465/4.108, allocations: 203.3 MB / 1.454 GB, free: 98.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01329/4.122, allocations: 1.726 MB / 1.455 GB, free: 97.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002126/4.124, allocations: 0.5361 MB / 1.456 GB, free: 97.38 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005745/4.13, allocations: 3.094 MB / 1.459 GB, free: 94.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001749/4.131, allocations: 0.6118 MB / 1.459 GB, free: 94.61 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.58/4.711, allocations: 136.4 MB / 1.593 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.489e-05/4.711, allocations: 58.47 kB / 1.593 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001426/4.712, allocations: 59.38 kB / 1.593 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001288/4.712, allocations: 27.66 kB / 1.593 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6725/5.384, allocations: 205.6 MB / 1.793 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.022e-05/5.384, allocations: 7.312 kB / 1.793 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/5.386, allocations: 334.4 kB / 1.794 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06881/5.455, allocations: 33.43 MB / 1.826 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001649/5.456, allocations: 102.2 kB / 1.827 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4647/5.921, allocations: 185.9 MB / 2.008 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/5.921, allocations: 14.38 kB / 2.008 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3194/6.24, allocations: 152.3 MB / 2.157 GB, free: 27.49 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/6.242, allocations: 0.5854 MB / 2.157 GB, free: 26.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002491/6.245, allocations: 95.98 kB / 2.158 GB, free: 26.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009154/6.254, allocations: 1.489 MB / 2.159 GB, free: 25.33 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003761/6.258, allocations: 0.5258 MB / 2.159 GB, free: 24.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009926/6.259, allocations: 144 kB / 2.16 GB, free: 24.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00458/6.263, allocations: 3.459 MB / 2.163 GB, free: 21.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/6.263, allocations: 2.625 kB / 2.163 GB, free: 21.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01238/6.275, allocations: 3.841 MB / 2.167 GB, free: 17.39 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001354/6.277, allocations: 239.8 kB / 2.167 GB, free: 17.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.3269/6.604, allocations: 32.74 MB / 2.199 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/6.604, allocations: 0 / 2.199 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03754/6.641, allocations: 19.61 MB / 2.218 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006939/6.648, allocations: 0.784 MB / 2.219 GB, free: 173.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03862/6.687, allocations: 27.45 MB / 2.246 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005931/6.693, allocations: 5.096 MB / 2.251 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003989/6.697, allocations: 2.059 MB / 2.253 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006901/6.697, allocations: 299.4 kB / 2.253 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.113e-06/6.697, allocations: 0 / 2.253 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.5458/7.243, allocations: 285.7 MB / 2.532 GB, free: 42.12 MB / 0.5606 GB " [Timeout remaining time 653] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 16.86365429707803]