Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 112 kB / 17.06 MB, free: 5.992 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.001159/0.001159, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2885, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01724/0.3058, allocations: 15.03 MB / 415.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.3168, allocations: 4.818 MB / 420.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002618/0.3194, allocations: 91.75 kB / 420.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006423/0.3259, allocations: 3.161 MB / 423.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007056/0.333, allocations: 2.548 MB / 426.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002522/0.3356, allocations: 0.9944 MB / 427.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009969/0.3456, allocations: 6.973 MB / 434.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007109/0.3527, allocations: 4.326 MB / 438.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.3574, allocations: 2.231 MB / 440.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005363/0.3628, allocations: 3.232 MB / 444.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002008/0.3649, allocations: 484 kB / 444.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004678/0.3696, allocations: 1.494 MB / 446.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004685/0.3743, allocations: 2.868 MB / 449 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007023/0.3814, allocations: 3.243 MB / 452.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01429/0.3957, allocations: 10.47 MB / 462.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3957, allocations: 0 / 462.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3957, allocations: 4 kB / 462.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000419/0.3962, allocations: 0 / 462.7 MB, free: 10.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01912/0.4153, allocations: 7.459 MB / 470.1 MB, free: 3.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4154, allocations: 12.03 kB / 470.2 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.4322, allocations: 3.974 MB / 474.1 MB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/0.4426, allocations: 4.194 MB / 478.3 MB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003677/0.443, allocations: 316.4 kB / 478.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002039/0.4451, allocations: 435.6 kB / 479.1 MB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03246/0.4776, allocations: 15.72 MB / 494.8 MB, free: 9.441 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003416/0.478, allocations: 63.47 kB / 494.8 MB, free: 9.379 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002104/0.4801, allocations: 203.8 kB / 495 MB, free: 9.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005322/0.4854, allocations: 3.216 MB / 498.3 MB, free: 5.961 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02794/0.5134, allocations: 14.12 MB / 0.5004 GB, free: 7.809 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3314/0.8448, allocations: 57.6 MB / 0.5566 GB, free: 91.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.8571, allocations: 6.575 MB / 0.563 GB, free: 89.54 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003805/0.861, allocations: 3.68 MB / 0.5666 GB, free: 88.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01618/0.8772, allocations: 14.65 MB / 0.5809 GB, free: 80.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.8773, allocations: 58.59 kB / 0.581 GB, free: 80.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 5.42e-06/0.8773, allocations: 0 / 0.581 GB, free: 80.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.132/1.009, allocations: 42.69 MB / 0.6227 GB, free: 39.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.776e-05/1.009, allocations: 210 kB / 0.6229 GB, free: 39.04 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005792/1.015, allocations: 5.491 MB / 0.6282 GB, free: 33.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006651/1.016, allocations: 73.3 kB / 0.6283 GB, free: 33.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/1.018, allocations: 4.524 MB / 0.6327 GB, free: 29.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.019, allocations: 1.323 MB / 0.634 GB, free: 28.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002189/1.021, allocations: 1.861 MB / 0.6358 GB, free: 26.14 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/1.021, allocations: 301.1 kB / 0.6361 GB, free: 25.85 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005213/1.026, allocations: 4.816 MB / 0.6408 GB, free: 21.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007135/1.033, allocations: 9.796 MB / 0.6504 GB, free: 8.855 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01621/1.05, allocations: 15.57 MB / 0.6656 GB, free: 6.895 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001406/1.05, allocations: 51.94 kB / 0.6657 GB, free: 6.844 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04483/1.095, allocations: 19.6 MB / 0.6848 GB, free: 3.211 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/1.095, allocations: 80 kB / 0.6849 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002282/1.095, allocations: 176.1 kB / 0.685 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02339/1.118, allocations: 5.939 MB / 0.6908 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007817/1.126, allocations: 2.109 MB / 0.6929 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03433/1.161, allocations: 26.16 MB / 0.7184 GB, free: 468 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009869/1.171, allocations: 0.5541 MB / 0.719 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002824/1.173, allocations: 0.514 MB / 0.7195 GB, free: 15.39 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007555/1.181, allocations: 3.106 MB / 0.7225 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001644/1.183, allocations: 0.5122 MB / 0.723 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03234/1.215, allocations: 12.93 MB / 0.7356 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.215, allocations: 51.98 kB / 0.7357 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/1.215, allocations: 8 kB / 0.7357 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.828e-05/1.215, allocations: 15.95 kB / 0.7357 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3257/1.541, allocations: 24.51 MB / 0.7597 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-05/1.541, allocations: 3.906 kB / 0.7597 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003109/1.544, allocations: 0.5752 MB / 0.7602 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01918/1.563, allocations: 4.975 MB / 0.7651 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008743/1.564, allocations: 61.03 kB / 0.7651 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02392/1.588, allocations: 21.34 MB / 0.786 GB, free: 188.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/1.588, allocations: 11.94 kB / 0.786 GB, free: 188.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03265/1.621, allocations: 17.48 MB / 0.8031 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.623, allocations: 0.5565 MB / 0.8036 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/1.624, allocations: 59.44 kB / 0.8037 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003045/1.627, allocations: 255.6 kB / 0.8039 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007241/1.628, allocations: 201.5 kB / 0.8041 GB, free: 170.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002704/1.628, allocations: 84 kB / 0.8042 GB, free: 170.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004442/1.633, allocations: 3.402 MB / 0.8075 GB, free: 166.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/1.633, allocations: 3.938 kB / 0.8075 GB, free: 166.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008439/1.641, allocations: 1.761 MB / 0.8092 GB, free: 165.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007741/1.642, allocations: 210.5 kB / 0.8094 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01363/1.655, allocations: 10.97 MB / 0.8201 GB, free: 154 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.656, allocations: 0 / 0.8201 GB, free: 154 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004959/1.66, allocations: 4.103 MB / 0.8242 GB, free: 149.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00397/1.664, allocations: 0.6199 MB / 0.8248 GB, free: 149.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/1.688, allocations: 16.23 MB / 0.8406 GB, free: 133.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004773/1.693, allocations: 4.622 MB / 0.8451 GB, free: 128.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005929/1.698, allocations: 2.964 MB / 0.848 GB, free: 125.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/1.7, allocations: 355.3 kB / 0.8484 GB, free: 125.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.233e-06/1.7, allocations: 0 / 0.8484 GB, free: 125.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1065/1.806, allocations: 76.86 MB / 0.9234 GB, free: 48.4 MB / 0.545 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches