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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009485/0.0009486, allocations: 175.7 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008543/0.0008542, allocations: 99.69 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003321, allocations: 11.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2038, allocations: 50.4 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1057/0.3096, allocations: 96 MB / 498.7 MB, free: 348 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.3099, allocations: 99.89 kB / 498.8 MB, free: 248 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4281/0.738, allocations: 122.7 MB / 0.607 GB, free: 5.703 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.06e-06/0.738, allocations: 0 / 0.607 GB, free: 5.703 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004624/0.7385, allocations: 127.9 kB / 0.6071 GB, free: 5.578 MB / 378.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.02211/0.7606, allocations: 6.699 MB / 0.6136 GB, free: 14.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.7607, allocations: 8.031 kB / 0.6136 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0277/0.7884, allocations: 6.906 MB / 0.6204 GB, free: 7.859 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01638/0.8048, allocations: 6.903 MB / 0.6271 GB, free: 0.875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005191/0.8054, allocations: 431.8 kB / 0.6275 GB, free: 464 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002886/0.8083, allocations: 0.582 MB / 0.6281 GB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03486/0.8432, allocations: 14.65 MB / 0.6424 GB, free: 40 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005268/0.8438, allocations: 83.52 kB / 0.6425 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002456/0.8462, allocations: 283.7 kB / 0.6427 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002258/0.8485, allocations: 1.443 MB / 0.6442 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02736/0.8759, allocations: 12.79 MB / 0.6566 GB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.273/1.149, allocations: 64.61 MB / 0.7197 GB, free: 33.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01504/1.164, allocations: 7.537 MB / 0.7271 GB, free: 31.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005021/1.169, allocations: 5.2 MB / 0.7322 GB, free: 29.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01678/1.186, allocations: 12.89 MB / 0.7448 GB, free: 24.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/1.186, allocations: 66.34 kB / 0.7448 GB, free: 24.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 7.474e-06/1.186, allocations: 10.28 kB / 0.7448 GB, free: 24.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 1.65/2.836, allocations: 264.1 MB / 1.003 GB, free: 103.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/2.836, allocations: 268.8 kB / 1.003 GB, free: 103.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006854/2.843, allocations: 5.322 MB / 1.008 GB, free: 103.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00151/2.845, allocations: 120.9 kB / 1.008 GB, free: 103.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002367/2.847, allocations: 4.006 MB / 1.012 GB, free: 102.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002414/2.85, allocations: 2.115 MB / 1.014 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000916/2.851, allocations: 189.7 kB / 1.014 GB, free: 101.1 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003837/2.851, allocations: 0.7081 MB / 1.015 GB, free: 100.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01149/2.862, allocations: 8.673 MB / 1.024 GB, free: 100.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0134/2.876, allocations: 12.81 MB / 1.036 GB, free: 95.66 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02526/2.901, allocations: 22.88 MB / 1.058 GB, free: 82.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001429/2.901, allocations: 39.41 kB / 1.059 GB, free: 82.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.08445/2.986, allocations: 40.37 MB / 1.098 GB, free: 70.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/2.986, allocations: 63 kB / 1.098 GB, free: 70.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002504/2.986, allocations: 137.9 kB / 1.098 GB, free: 70.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1034/3.09, allocations: 21.54 MB / 1.119 GB, free: 56.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008131/3.098, allocations: 1.435 MB / 1.121 GB, free: 54.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4215/3.519, allocations: 144.8 MB / 1.262 GB, free: 65.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/3.53, allocations: 0.7258 MB / 1.263 GB, free: 64.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002399/3.532, allocations: 0.5346 MB / 1.263 GB, free: 64.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * 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 (775): * Single equations (assignments): 768 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.008703/3.541, allocations: 3.119 MB / 1.266 GB, free: 61.87 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002193/3.543, allocations: 0.5966 MB / 1.267 GB, free: 61.56 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07034/3.613, allocations: 36.31 MB / 1.302 GB, free: 34.56 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.367e-05/3.614, allocations: 63.56 kB / 1.302 GB, free: 34.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001442/3.614, allocations: 64 kB / 1.302 GB, free: 34.44 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001106/3.614, allocations: 32.06 kB / 1.302 GB, free: 34.44 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.351/3.965, allocations: 57.2 MB / 1.358 GB, free: 84.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-05/3.965, allocations: 0 / 1.358 GB, free: 84.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/3.967, allocations: 273.5 kB / 1.359 GB, free: 84.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0527/4.019, allocations: 20.76 MB / 1.379 GB, free: 84.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001741/4.021, allocations: 98.69 kB / 1.379 GB, free: 84.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1574/4.178, allocations: 132.6 MB / 1.508 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/4.178, allocations: 3.969 kB / 1.508 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3028/4.481, allocations: 48.73 MB / 1.556 GB, free: 99.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/4.483, allocations: 0.6129 MB / 1.557 GB, free: 98.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002199/4.485, allocations: 101.9 kB / 1.557 GB, free: 98.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006089/4.492, allocations: 0.4888 MB / 1.557 GB, free: 98.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003081/4.495, allocations: 0.5043 MB / 1.558 GB, free: 98.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007819/4.495, allocations: 143.5 kB / 1.558 GB, free: 98.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004915/4.5, allocations: 3.382 MB / 1.561 GB, free: 98.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.21e-07/4.5, allocations: 0 / 1.561 GB, free: 98.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0121/4.513, allocations: 3.438 MB / 1.565 GB, free: 98.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001369/4.514, allocations: 241.7 kB / 1.565 GB, free: 98.69 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03619/4.55, allocations: 24.53 MB / 1.589 GB, free: 91.58 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/4.55, allocations: 0 / 1.589 GB, free: 91.58 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02093/4.571, allocations: 13.79 MB / 1.602 GB, free: 81.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006697/4.578, allocations: 0.7823 MB / 1.603 GB, free: 80.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03525/4.613, allocations: 26.42 MB / 1.629 GB, free: 56.94 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007736/4.621, allocations: 5.171 MB / 1.634 GB, free: 53.03 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005541/4.626, allocations: 2.08 MB / 1.636 GB, free: 51.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007928/4.627, allocations: 308.1 kB / 1.636 GB, free: 51.5 MB / 490.7 MB Notification: Performance of SimCode: time 9.62e-07/4.627, allocations: 0 / 1.636 GB, free: 51.5 MB / 490.7 MB Notification: Performance of Templates: time 0.5056/5.133, allocations: 223.5 MB / 1.854 GB, free: 1.797 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches