Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 176.6 kB / 8.35 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009273/0.0009274, allocations: 97.22 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.133e-05/2.155e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3882/0.5029, allocations: 104.4 MB / 491.9 MB, free: 6.359 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.5033, allocations: 93.72 kB / 492 MB, free: 6.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5572/1.06, allocations: 110.3 MB / 0.5882 GB, free: 97.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.883e-06/1.061, allocations: 0 / 0.5882 GB, free: 97.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003645/1.061, allocations: 107 kB / 0.5883 GB, free: 97.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01784/1.079, allocations: 4.912 MB / 0.5931 GB, free: 95.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/1.079, allocations: 11.97 kB / 0.5931 GB, free: 95.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02682/1.106, allocations: 6.904 MB / 0.5998 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01675/1.122, allocations: 6.454 MB / 0.6061 GB, free: 91.94 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004014/1.123, allocations: 166 kB / 0.6063 GB, free: 91.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003174/1.126, allocations: 316.4 kB / 0.6066 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01482/1.141, allocations: 7.505 MB / 0.6139 GB, free: 89.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02533/1.166, allocations: 10.64 MB / 0.6243 GB, free: 80.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004533/1.167, allocations: 63.47 kB / 0.6244 GB, free: 80.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002564/1.169, allocations: 28 kB / 0.6244 GB, free: 80.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001698/1.171, allocations: 1.051 MB / 0.6254 GB, free: 79.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05175/1.223, allocations: 48.42 MB / 0.6727 GB, free: 29.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00328/1.226, allocations: 3.149 MB / 0.6758 GB, free: 26.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001712/1.228, allocations: 1.802 MB / 0.6775 GB, free: 24.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009608/1.229, allocations: 1.212 MB / 0.6787 GB, free: 23.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/1.229, allocations: 51.88 kB / 0.6788 GB, free: 23.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=185): time 4.168e-06/1.229, allocations: 0 / 0.6788 GB, free: 23.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=233): time 0.03726/1.266, allocations: 16.08 MB / 0.6945 GB, free: 6.984 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.204e-05/1.266, allocations: 201.9 kB / 0.6947 GB, free: 6.742 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005364/1.272, allocations: 3.447 MB / 0.698 GB, free: 3.281 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004234/1.272, allocations: 29.7 kB / 0.6981 GB, free: 3.246 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/1.274, allocations: 3.612 MB / 0.7016 GB, free: 15.58 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.275, allocations: 0.848 MB / 0.7024 GB, free: 14.72 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/1.276, allocations: 4 kB / 0.7024 GB, free: 14.72 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000378/1.276, allocations: 0.5792 MB / 0.703 GB, free: 14.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/1.279, allocations: 2.051 MB / 0.705 GB, free: 12.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005656/1.284, allocations: 5.904 MB / 0.7108 GB, free: 4.234 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00555/1.29, allocations: 3.476 MB / 0.7142 GB, free: 0.7617 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-05/1.29, allocations: 44 kB / 0.7142 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.3004/1.591, allocations: 8.005 MB / 0.722 GB, free: 99.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.36e-05/1.591, allocations: 64.52 kB / 0.7221 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001467/1.591, allocations: 143.2 kB / 0.7222 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003013/1.594, allocations: 1.022 MB / 0.7232 GB, free: 99.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005395/1.599, allocations: 1.481 MB / 0.7247 GB, free: 99.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.609, allocations: 6.519 MB / 0.731 GB, free: 97.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005942/1.615, allocations: 219.7 kB / 0.7312 GB, free: 97.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001656/1.617, allocations: 394.8 kB / 0.7316 GB, free: 97.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001184/1.618, allocations: 462.5 kB / 0.7321 GB, free: 97.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009777/1.619, allocations: 384.5 kB / 0.7324 GB, free: 97.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00775/1.627, allocations: 3.441 MB / 0.7358 GB, free: 97.24 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.025e-05/1.627, allocations: 27.59 kB / 0.7358 GB, free: 97.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.438e-05/1.627, allocations: 5.062 kB / 0.7358 GB, free: 97.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.452e-05/1.627, allocations: 18.2 kB / 0.7358 GB, free: 97.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01737/1.645, allocations: 8.929 MB / 0.7445 GB, free: 94.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/1.645, allocations: 3.531 kB / 0.7445 GB, free: 94.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/1.646, allocations: 370.8 kB / 0.7449 GB, free: 94.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002639/1.649, allocations: 0.7828 MB / 0.7457 GB, free: 94.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002412/1.649, allocations: 20.69 kB / 0.7457 GB, free: 94.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006658/1.656, allocations: 5.25 MB / 0.7508 GB, free: 91.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/1.656, allocations: 9.719 kB / 0.7508 GB, free: 91.68 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009313/1.665, allocations: 6.9 MB / 0.7576 GB, free: 88.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/1.667, allocations: 422.6 kB / 0.758 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004882/1.667, allocations: 10.7 kB / 0.758 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.669, allocations: 62.38 kB / 0.758 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003472/1.669, allocations: 154.7 kB / 0.7582 GB, free: 87.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/1.669, allocations: 68.64 kB / 0.7582 GB, free: 87.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004216/1.673, allocations: 2.339 MB / 0.7605 GB, free: 86.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.285e-06/1.673, allocations: 0 / 0.7605 GB, free: 86.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007906/1.681, allocations: 1.019 MB / 0.7615 GB, free: 86.89 MB / 442.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 181 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007608/1.682, allocations: 210.4 kB / 0.7617 GB, free: 86.78 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009254/1.691, allocations: 5.098 MB / 0.7667 GB, free: 84.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/1.691, allocations: 0 / 0.7667 GB, free: 84.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002567/1.694, allocations: 1.734 MB / 0.7684 GB, free: 84.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/1.697, allocations: 448.8 kB / 0.7688 GB, free: 83.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.714, allocations: 8.94 MB / 0.7776 GB, free: 80.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004685/1.719, allocations: 3.986 MB / 0.7814 GB, free: 79.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005166/1.724, allocations: 2.029 MB / 0.7834 GB, free: 79.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007654/1.725, allocations: 261.8 kB / 0.7837 GB, free: 79.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.492e-06/1.725, allocations: 4 kB / 0.7837 GB, free: 79.04 MB / 442.7 MB Notification: Performance of Templates: time 0.06367/1.789, allocations: 37.44 MB / 0.8202 GB, free: 50.93 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches