Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008014/0.0008017, allocations: 175.7 kB / 17.03 MB, free: 5.113 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.124/1.124, allocations: 223.3 MB / 241 MB, free: 10.09 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.0007379/0.0007377, allocations: 98.44 kB / 292.2 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002209/0.000221, allocations: 4 kB / 351.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1739, allocations: 50.41 MB / 402.2 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0511/0.225, allocations: 73.53 MB / 475.7 MB, free: 6.824 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03046/0.2555, allocations: 15.77 MB / 491.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01268/0.2682, allocations: 367.1 kB / 491.9 MB, free: 6.656 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0107/0.279, allocations: 3.62 MB / 495.5 MB, free: 3.02 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02791/0.3069, allocations: 10.76 MB / 0.4944 GB, free: 8.219 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005135/0.3121, allocations: 1.24 MB / 0.4956 GB, free: 6.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2741/0.5862, allocations: 120.8 MB / 0.6136 GB, free: 8.543 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.5972, allocations: 10.23 MB / 0.6236 GB, free: 1.367 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002945/0.6002, allocations: 2.405 MB / 0.6259 GB, free: 15.73 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003498/0.6037, allocations: 3.632 MB / 0.6295 GB, free: 13.12 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000546/0.6043, allocations: 248 kB / 0.6297 GB, free: 12.88 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002131/0.6064, allocations: 1.313 MB / 0.631 GB, free: 11.82 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002148/0.6086, allocations: 3.217 MB / 0.6341 GB, free: 9.438 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009948/0.6096, allocations: 1.435 MB / 0.6355 GB, free: 8.938 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007332/0.6169, allocations: 10.36 MB / 0.6456 GB, free: 15.95 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.6169, allocations: 0 / 0.6456 GB, free: 15.95 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.617, allocations: 4 kB / 0.6456 GB, free: 15.95 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002112/0.6172, allocations: 0 / 0.6456 GB, free: 15.95 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01255/0.6297, allocations: 7.395 MB / 0.6529 GB, free: 9.145 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.6298, allocations: 12.03 kB / 0.6529 GB, free: 9.133 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03858/0.6684, allocations: 4.961 MB / 0.6577 GB, free: 4.312 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.6807, allocations: 6.251 MB / 0.6638 GB, free: 15.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002175/0.6809, allocations: 444.1 kB / 0.6642 GB, free: 15.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009427/0.6819, allocations: 0.5811 MB / 0.6648 GB, free: 15.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02354/0.7054, allocations: 17.07 MB / 0.6815 GB, free: 2.168 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001562/0.7056, allocations: 81.52 kB / 0.6816 GB, free: 2.121 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005702/0.7062, allocations: 265 kB / 0.6818 GB, free: 2.051 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2886/0.9948, allocations: 2.65 MB / 0.6844 GB, free: 196.9 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02739/1.022, allocations: 14.77 MB / 0.6988 GB, free: 193.4 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05411/1.076, allocations: 64.49 MB / 0.7618 GB, free: 128.4 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01832/1.095, allocations: 8.816 MB / 0.7704 GB, free: 119.5 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004217/1.099, allocations: 5.057 MB / 0.7753 GB, free: 114.5 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01924/1.118, allocations: 18.62 MB / 0.7935 GB, free: 95.79 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/1.118, allocations: 64.5 kB / 0.7936 GB, free: 95.72 MB / 490.8 MB Notification: Performance of pre-optimization done (n=281): time 4.969e-06/1.118, allocations: 0 / 0.7936 GB, free: 95.72 MB / 490.8 MB Notification: Performance of matching and sorting (n=374): time 0.2126/1.331, allocations: 75.08 MB / 0.8669 GB, free: 20.66 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/1.331, allocations: 372.6 kB / 0.8673 GB, free: 20.21 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006663/1.338, allocations: 6.34 MB / 0.8735 GB, free: 13.86 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000652/1.338, allocations: 81.7 kB / 0.8735 GB, free: 13.78 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/1.34, allocations: 4.747 MB / 0.8782 GB, free: 9.031 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/1.341, allocations: 1.386 MB / 0.8795 GB, free: 7.656 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004765/1.342, allocations: 191.8 kB / 0.8797 GB, free: 7.473 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002986/1.342, allocations: 0.7069 MB / 0.8804 GB, free: 6.758 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005942/1.348, allocations: 5.957 MB / 0.8862 GB, free: 0.793 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1638/1.512, allocations: 10.98 MB / 0.8969 GB, free: 176.4 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009162/1.521, allocations: 7.899 MB / 0.9047 GB, free: 173.2 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.105e-05/1.521, allocations: 49.56 kB / 0.9047 GB, free: 173.2 MB / 490.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.03764/1.559, allocations: 23.27 MB / 0.9274 GB, free: 163 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.148e-05/1.559, allocations: 84.03 kB / 0.9275 GB, free: 162.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001321/1.559, allocations: 172 kB / 0.9277 GB, free: 162.7 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01888/1.578, allocations: 7.521 MB / 0.935 GB, free: 156.2 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006755/1.585, allocations: 2.187 MB / 0.9371 GB, free: 154 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0373/1.622, allocations: 35.56 MB / 0.9719 GB, free: 118.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007302/1.629, allocations: 0.7553 MB / 0.9726 GB, free: 117.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/1.63, allocations: 0.5278 MB / 0.9731 GB, free: 117 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.004322/1.635, allocations: 3.428 MB / 0.9765 GB, free: 113.6 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000886/1.636, allocations: 0.572 MB / 0.977 GB, free: 113.4 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02629/1.662, allocations: 16.95 MB / 0.9936 GB, free: 96.36 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-05/1.662, allocations: 50.62 kB / 0.9936 GB, free: 96.31 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/1.662, allocations: 16 kB / 0.9936 GB, free: 96.3 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.061e-05/1.662, allocations: 23.92 kB / 0.9937 GB, free: 96.27 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04388/1.706, allocations: 32.14 MB / 1.025 GB, free: 63.76 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.117e-05/1.706, allocations: 4 kB / 1.025 GB, free: 63.76 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/1.709, allocations: 0.6086 MB / 1.026 GB, free: 63.15 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02022/1.729, allocations: 7.146 MB / 1.033 GB, free: 55.98 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004266/1.73, allocations: 64 kB / 1.033 GB, free: 55.92 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03761/1.767, allocations: 33.88 MB / 1.066 GB, free: 21.64 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.767, allocations: 4 kB / 1.066 GB, free: 21.63 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2039/1.971, allocations: 24.58 MB / 1.09 GB, free: 163 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/1.973, allocations: 0.6407 MB / 1.09 GB, free: 162.9 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/1.974, allocations: 60.7 kB / 1.09 GB, free: 162.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003589/1.977, allocations: 449.5 kB / 1.091 GB, free: 162.8 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008242/1.978, allocations: 243.3 kB / 1.091 GB, free: 162.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003206/1.979, allocations: 101.5 kB / 1.091 GB, free: 162.7 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005265/1.984, allocations: 4.01 MB / 1.095 GB, free: 161.4 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.31e-07/1.984, allocations: 0 / 1.095 GB, free: 161.4 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007983/1.992, allocations: 2.296 MB / 1.097 GB, free: 161.2 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008143/1.993, allocations: 262.8 kB / 1.098 GB, free: 161 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01702/2.01, allocations: 14.81 MB / 1.112 GB, free: 152.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/2.01, allocations: 3.938 kB / 1.112 GB, free: 152.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007759/2.018, allocations: 6.692 MB / 1.119 GB, free: 146.2 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/2.022, allocations: 0.8294 MB / 1.119 GB, free: 145.5 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02361/2.045, allocations: 23.4 MB / 1.142 GB, free: 123.4 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00416/2.05, allocations: 5.217 MB / 1.147 GB, free: 118.2 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002068/2.052, allocations: 443.4 kB / 1.148 GB, free: 117.7 MB / 490.8 MB Notification: Performance of SimCode: time 5.71e-07/2.052, allocations: 3.938 kB / 1.148 GB, free: 117.7 MB / 490.8 MB Notification: Performance of Templates: time 0.3256/2.377, allocations: 207.8 MB / 1.351 GB, free: 75.02 MB / 490.8 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches