Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009945/0.0009945, allocations: 93.98 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000213/0.000213, allocations: 11.98 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09526, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2251/0.3204, allocations: 64.42 MB / 422.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0353/0.3558, allocations: 14.99 MB / 437.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01261/0.3684, allocations: 335.1 kB / 437.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.3823, allocations: 3.215 MB / 441 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03226/0.4146, allocations: 9.241 MB / 450.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005032/0.4196, allocations: 0.9791 MB / 451.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1021/0.5217, allocations: 72.37 MB / 0.5113 GB, free: 5.863 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01035/0.5321, allocations: 6.545 MB / 0.5177 GB, free: 15.26 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003533/0.5357, allocations: 1.655 MB / 0.5193 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003671/0.5394, allocations: 2.231 MB / 0.5215 GB, free: 11.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009373/0.5403, allocations: 216 kB / 0.5217 GB, free: 11.15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002367/0.5427, allocations: 1.073 MB / 0.5228 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002399/0.5451, allocations: 2.416 MB / 0.5251 GB, free: 7.652 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.5466, allocations: 1.224 MB / 0.5263 GB, free: 6.418 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4027/0.9494, allocations: 8.098 MB / 0.5342 GB, free: 81.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.9494, allocations: 0 / 0.5342 GB, free: 81.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.297e-06/0.9494, allocations: 1 kB / 0.5342 GB, free: 81.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004252/0.9499, allocations: 0 / 0.5342 GB, free: 81.43 MB / 446.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.02076/0.9706, allocations: 6.978 MB / 0.5411 GB, free: 78.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.9707, allocations: 9.531 kB / 0.5411 GB, free: 78.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05958/1.03, allocations: 11.31 MB / 0.5521 GB, free: 77.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/1.045, allocations: 5.025 MB / 0.557 GB, free: 76.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003194/1.045, allocations: 337.1 kB / 0.5573 GB, free: 76.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002382/1.048, allocations: 475.5 kB / 0.5578 GB, free: 76.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02766/1.075, allocations: 14.66 MB / 0.5721 GB, free: 69.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002482/1.076, allocations: 72.64 kB / 0.5722 GB, free: 69.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009062/1.077, allocations: 219.3 kB / 0.5724 GB, free: 69.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004768/1.081, allocations: 2.826 MB / 0.5751 GB, free: 67.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02571/1.107, allocations: 13.23 MB / 0.5881 GB, free: 57.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0704/1.178, allocations: 58.43 MB / 0.6451 GB, free: 9.191 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01653/1.194, allocations: 8.012 MB / 0.653 GB, free: 2.234 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02236/1.217, allocations: 12.77 MB / 0.6654 GB, free: 5.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/1.217, allocations: 69.02 kB / 0.6655 GB, free: 5.355 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.822e-06/1.217, allocations: 1.641 kB / 0.6655 GB, free: 5.355 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 1.973/3.189, allocations: 409.2 MB / 1.065 GB, free: 78.47 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.679e-05/3.189, allocations: 273.6 kB / 1.065 GB, free: 78.15 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007286/3.197, allocations: 5.832 MB / 1.071 GB, free: 72.35 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.002189/3.199, allocations: 109.7 kB / 1.071 GB, free: 72.24 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.00235/3.201, allocations: 4.006 MB / 1.075 GB, free: 68.25 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003416/3.205, allocations: 2.005 MB / 1.077 GB, free: 66.27 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002015/3.207, allocations: 184.5 kB / 1.077 GB, free: 66.09 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0004599/3.207, allocations: 0.6985 MB / 1.078 GB, free: 65.38 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0131/3.22, allocations: 10.84 MB / 1.089 GB, free: 54.53 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01558/3.236, allocations: 14.91 MB / 1.103 GB, free: 37.78 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/3.251, allocations: 12.68 MB / 1.115 GB, free: 25.08 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-05/3.251, allocations: 40 kB / 1.115 GB, free: 25.04 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5177/3.769, allocations: 140.4 MB / 1.253 GB, free: 82.38 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.993e-05/3.769, allocations: 64 kB / 1.253 GB, free: 82.32 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/3.769, allocations: 136 kB / 1.253 GB, free: 82.18 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07568/3.845, allocations: 34.66 MB / 1.287 GB, free: 47.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004762/3.85, allocations: 1.482 MB / 1.288 GB, free: 46.11 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4972/4.347, allocations: 197.5 MB / 1.481 GB, free: 44.34 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0154/4.363, allocations: 1.714 MB / 1.483 GB, free: 42.64 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002865/4.366, allocations: 0.525 MB / 1.483 GB, free: 42.11 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * 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 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.008759/4.374, allocations: 3.083 MB / 1.486 GB, free: 39.18 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002051/4.376, allocations: 0.5849 MB / 1.487 GB, free: 38.8 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.512/4.888, allocations: 136.5 MB / 1.62 GB, free: 101 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.859e-05/4.889, allocations: 61.47 kB / 1.62 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001741/4.889, allocations: 56 kB / 1.62 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001237/4.889, allocations: 31.89 kB / 1.62 GB, free: 100.8 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5592/5.448, allocations: 206.2 MB / 1.822 GB, free: 101.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-05/5.448, allocations: 11.98 kB / 1.822 GB, free: 101.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/5.45, allocations: 329.1 kB / 1.822 GB, free: 101.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07176/5.522, allocations: 33.77 MB / 1.855 GB, free: 69 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001859/5.523, allocations: 104 kB / 1.855 GB, free: 68.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.417/5.94, allocations: 180.6 MB / 2.031 GB, free: 70.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/5.94, allocations: 8.781 kB / 2.031 GB, free: 70.39 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.563/6.503, allocations: 153.1 MB / 2.181 GB, free: 99.03 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001823/6.505, allocations: 0.6467 MB / 2.181 GB, free: 98.68 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002746/6.508, allocations: 96.53 kB / 2.182 GB, free: 98.59 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009585/6.518, allocations: 1.49 MB / 2.183 GB, free: 97.1 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003478/6.521, allocations: 0.4962 MB / 2.183 GB, free: 96.61 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001095/6.522, allocations: 145.5 kB / 2.184 GB, free: 96.47 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005013/6.527, allocations: 3.782 MB / 2.187 GB, free: 92.71 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.8e-07/6.527, allocations: 0 / 2.187 GB, free: 92.71 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01417/6.541, allocations: 3.811 MB / 2.191 GB, free: 88.91 MB / 0.4982 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 (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 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.001665/6.543, allocations: 257.8 kB / 2.191 GB, free: 88.67 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.05332/6.597, allocations: 33.36 MB / 2.224 GB, free: 55.46 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/6.597, allocations: 0 / 2.224 GB, free: 55.46 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.2216/6.818, allocations: 20.47 MB / 2.244 GB, free: 167.2 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005498/6.824, allocations: 0.705 MB / 2.245 GB, free: 167.1 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04229/6.866, allocations: 29.55 MB / 2.273 GB, free: 160.6 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005641/6.872, allocations: 5.234 MB / 2.278 GB, free: 159.7 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.004865/6.877, allocations: 2.071 MB / 2.281 GB, free: 159.4 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008045/6.877, allocations: 317.3 kB / 2.281 GB, free: 159.4 MB / 0.4982 GB Notification: Performance of SimCode: time 8.02e-07/6.877, allocations: 0 / 2.281 GB, free: 159.4 MB / 0.4982 GB Notification: Performance of Templates: time 0.4679/7.345, allocations: 257.8 MB / 2.533 GB, free: 82.48 MB / 0.4982 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches