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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009813/0.0009814, allocations: 94.11 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009775/0.0009776, allocations: 180.9 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002693, allocations: 7.344 kB / 300.7 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09445, allocations: 50.42 MB / 351.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05596/0.1505, allocations: 64.41 MB / 415.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2348/0.3853, allocations: 14.95 MB / 430.5 MB, free: 456 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01116/0.3965, allocations: 331.5 kB / 430.8 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01109/0.4076, allocations: 3.22 MB / 434 MB, free: 452 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02765/0.4353, allocations: 9.292 MB / 443.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004394/0.4397, allocations: 0.9847 MB / 444.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.09437/0.5341, allocations: 72.26 MB / 0.5045 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01088/0.545, allocations: 6.546 MB / 0.5109 GB, free: 316 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003912/0.549, allocations: 1.658 MB / 0.5125 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0039/0.5529, allocations: 2.23 MB / 0.5147 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001317/0.5542, allocations: 216 kB / 0.5149 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.5573, allocations: 1.086 MB / 0.5159 GB, free: 12.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003206/0.5606, allocations: 2.418 MB / 0.5183 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002274/0.5628, allocations: 1.223 MB / 0.5195 GB, free: 10.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009944/0.5728, allocations: 8.105 MB / 0.5274 GB, free: 3.426 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.5728, allocations: 4 kB / 0.5274 GB, free: 3.422 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.5728, allocations: 0 / 0.5274 GB, free: 3.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003986/0.5733, allocations: 4 kB / 0.5274 GB, free: 3.418 MB / 414.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.01934/0.5926, allocations: 6.906 MB / 0.5342 GB, free: 13.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.5927, allocations: 8.031 kB / 0.5342 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0636/0.6563, allocations: 11.2 MB / 0.5451 GB, free: 2.895 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01295/0.6693, allocations: 5.024 MB / 0.55 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002975/0.6696, allocations: 335.9 kB / 0.5503 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001858/0.6715, allocations: 466.4 kB / 0.5508 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02801/0.6995, allocations: 14.67 MB / 0.5651 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001983/0.6997, allocations: 68.17 kB / 0.5652 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006112/0.7003, allocations: 213.9 kB / 0.5654 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005369/0.7057, allocations: 2.841 MB / 0.5681 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02647/0.7322, allocations: 13.22 MB / 0.5811 GB, free: 1.219 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.274/1.006, allocations: 58.44 MB / 0.6381 GB, free: 141.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01725/1.024, allocations: 8.002 MB / 0.6459 GB, free: 140 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01799/1.042, allocations: 12.78 MB / 0.6584 GB, free: 132.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/1.042, allocations: 72.64 kB / 0.6585 GB, free: 132.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 4.558e-06/1.042, allocations: 0 / 0.6585 GB, free: 132.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.929/2.971, allocations: 409.1 MB / 1.058 GB, free: 101.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/2.971, allocations: 261.7 kB / 1.058 GB, free: 100.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006571/2.978, allocations: 5.838 MB / 1.064 GB, free: 95.23 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001758/2.979, allocations: 113.7 kB / 1.064 GB, free: 95.12 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001833/2.981, allocations: 4.003 MB / 1.068 GB, free: 91.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002299/2.984, allocations: 2.002 MB / 1.07 GB, free: 89.64 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008753/2.984, allocations: 186.3 kB / 1.07 GB, free: 89.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003199/2.985, allocations: 0.705 MB / 1.071 GB, free: 88.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01127/2.996, allocations: 10.84 MB / 1.081 GB, free: 77.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01337/3.009, allocations: 14.92 MB / 1.096 GB, free: 61.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01477/3.024, allocations: 12.67 MB / 1.108 GB, free: 48.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001102/3.024, allocations: 40 kB / 1.108 GB, free: 48.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5346/3.559, allocations: 140.3 MB / 1.245 GB, free: 76.76 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.351e-05/3.559, allocations: 60 kB / 1.245 GB, free: 76.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001148/3.559, allocations: 141.2 kB / 1.246 GB, free: 76.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07664/3.636, allocations: 34.65 MB / 1.279 GB, free: 41.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004754/3.641, allocations: 1.474 MB / 1.281 GB, free: 40.63 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6177/4.258, allocations: 197.5 MB / 1.474 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01344/4.272, allocations: 1.708 MB / 1.475 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002376/4.274, allocations: 0.5236 MB / 1.476 GB, free: 134.8 MB / 478.1 MB 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.007039/4.281, allocations: 3.087 MB / 1.479 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001834/4.283, allocations: 0.5767 MB / 1.479 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3097/4.593, allocations: 136.4 MB / 1.613 GB, free: 38.63 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001296/4.593, allocations: 56 kB / 1.613 GB, free: 38.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002215/4.593, allocations: 60.75 kB / 1.613 GB, free: 38.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001486/4.594, allocations: 26.25 kB / 1.613 GB, free: 38.49 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7582/5.352, allocations: 206.1 MB / 1.814 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.809e-05/5.352, allocations: 6.641 kB / 1.814 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/5.354, allocations: 335.1 kB / 1.814 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07477/5.428, allocations: 33.76 MB / 1.847 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001318/5.43, allocations: 103.6 kB / 1.847 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3986/5.828, allocations: 180.5 MB / 2.024 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/5.828, allocations: 12.25 kB / 2.024 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5262/6.355, allocations: 153 MB / 2.173 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/6.356, allocations: 0.6447 MB / 2.174 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002792/6.359, allocations: 105.8 kB / 2.174 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009698/6.369, allocations: 1.48 MB / 2.175 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004788/6.374, allocations: 0.4898 MB / 2.176 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001247/6.375, allocations: 143.9 kB / 2.176 GB, free: 128.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00621/6.381, allocations: 3.778 MB / 2.18 GB, free: 128.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.11e-07/6.381, allocations: 0.9844 kB / 2.18 GB, free: 128.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01548/6.397, allocations: 3.825 MB / 2.183 GB, free: 128.4 MB / 478.1 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 () * 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.002173/6.399, allocations: 261.1 kB / 2.184 GB, free: 128.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05515/6.454, allocations: 33.34 MB / 2.216 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/6.454, allocations: 4 kB / 2.216 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04043/6.495, allocations: 20.46 MB / 2.236 GB, free: 92.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005648/6.5, allocations: 0.7045 MB / 2.237 GB, free: 91.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04/6.54, allocations: 29.56 MB / 2.266 GB, free: 62.38 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007533/6.548, allocations: 5.229 MB / 2.271 GB, free: 57.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005434/6.553, allocations: 2.077 MB / 2.273 GB, free: 55.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/6.555, allocations: 307.4 kB / 2.273 GB, free: 54.73 MB / 478.1 MB Notification: Performance of SimCode: time 1.223e-06/6.555, allocations: 4 kB / 2.273 GB, free: 54.73 MB / 478.1 MB Notification: Performance of Templates: time 0.6929/7.248, allocations: 257.9 MB / 2.525 GB, free: 118.4 MB / 494.1 MB 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/jenkins/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