Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001121/0.001121, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.001405/0.001405, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 60.61 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09023, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01571/0.106, allocations: 16.01 MB / 344.7 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1167, allocations: 5.144 MB / 349.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002819/0.1195, allocations: 115.6 kB / 350 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007964/0.1276, allocations: 4.45 MB / 354.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008044/0.1356, allocations: 2.536 MB / 357 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003167/0.1388, allocations: 1.162 MB / 358.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0118/0.1507, allocations: 7.492 MB / 365.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008062/0.1587, allocations: 5.342 MB / 371 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004516/0.1633, allocations: 2.484 MB / 373.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005085/0.1684, allocations: 3.376 MB / 376.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001654/0.1701, allocations: 0.5039 MB / 377.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003533/0.1736, allocations: 1.49 MB / 378.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1744/0.3481, allocations: 2.962 MB / 381.8 MB, free: 21.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007937/0.356, allocations: 3.357 MB / 385.1 MB, free: 20.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.3708, allocations: 10.38 MB / 395.5 MB, free: 18.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3709, allocations: 0 / 395.5 MB, free: 18.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3709, allocations: 1.031 kB / 395.5 MB, free: 18.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003852/0.3713, allocations: 0 / 395.5 MB, free: 18.79 MB / 318.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.02309/0.3944, allocations: 7.631 MB / 403.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3944, allocations: 9.719 kB / 403.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01444/0.4089, allocations: 3.191 MB / 406.4 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.4218, allocations: 4.985 MB / 411.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/0.4222, allocations: 337.3 kB / 411.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00288/0.4251, allocations: 464.1 kB / 412.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02631/0.4514, allocations: 14.56 MB / 426.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002282/0.4517, allocations: 74.7 kB / 426.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006932/0.4524, allocations: 212.5 kB / 427 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004976/0.4574, allocations: 2.838 MB / 429.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02838/0.4858, allocations: 13.22 MB / 443 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08048/0.5663, allocations: 58.27 MB / 0.4896 GB, free: 6.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01764/0.584, allocations: 7.74 MB / 0.4971 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005894/0.5899, allocations: 5.042 MB / 0.502 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02128/0.6112, allocations: 12.81 MB / 0.5145 GB, free: 12.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/0.6113, allocations: 68.69 kB / 0.5146 GB, free: 12.58 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 6.151e-06/0.6113, allocations: 3.844 kB / 0.5146 GB, free: 12.58 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 1.99/2.602, allocations: 411.5 MB / 0.9164 GB, free: 80.88 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/2.602, allocations: 269.3 kB / 0.9167 GB, free: 80.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007308/2.609, allocations: 5.494 MB / 0.922 GB, free: 75.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002186/2.611, allocations: 109.7 kB / 0.9221 GB, free: 75.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/2.613, allocations: 3.944 MB / 0.926 GB, free: 72.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002461/2.616, allocations: 2.004 MB / 0.928 GB, free: 70.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004111/2.62, allocations: 2.185 MB / 0.9301 GB, free: 68.15 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.188e-05/2.62, allocations: 305.1 kB / 0.9304 GB, free: 67.85 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01291/2.633, allocations: 11.06 MB / 0.9412 GB, free: 56.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01458/2.647, allocations: 15.24 MB / 0.9561 GB, free: 39.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02786/2.675, allocations: 27.45 MB / 0.9829 GB, free: 10.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-05/2.675, allocations: 40 kB / 0.9829 GB, free: 10.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4807/3.156, allocations: 141 MB / 1.121 GB, free: 24.42 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/3.156, allocations: 64 kB / 1.121 GB, free: 24.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/3.157, allocations: 140 kB / 1.121 GB, free: 24.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2276/3.384, allocations: 34.69 MB / 1.155 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00508/3.389, allocations: 1.57 MB / 1.156 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4034/3.793, allocations: 203.6 MB / 1.355 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01245/3.805, allocations: 1.719 MB / 1.357 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001739/3.807, allocations: 0.5344 MB / 1.357 GB, free: 109.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005548/3.812, allocations: 3.103 MB / 1.36 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00205/3.815, allocations: 0.5791 MB / 1.361 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4701/4.285, allocations: 136.7 MB / 1.494 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001347/4.285, allocations: 66.27 kB / 1.494 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002151/4.285, allocations: 58.38 kB / 1.494 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001432/4.285, allocations: 30.66 kB / 1.494 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5685/4.854, allocations: 206 MB / 1.696 GB, free: 93.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.036e-05/4.854, allocations: 5.656 kB / 1.696 GB, free: 93.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001598/4.855, allocations: 333.4 kB / 1.696 GB, free: 93.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06842/4.924, allocations: 33.42 MB / 1.729 GB, free: 64.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002643/4.927, allocations: 100 kB / 1.729 GB, free: 64.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3968/5.323, allocations: 186.2 MB / 1.911 GB, free: 41.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/5.323, allocations: 8.156 kB / 1.911 GB, free: 41.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5489/5.872, allocations: 152.5 MB / 2.06 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008073/5.88, allocations: 3.013 MB / 2.062 GB, free: 48.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002769/5.883, allocations: 92 kB / 2.063 GB, free: 48.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01014/5.893, allocations: 1.494 MB / 2.064 GB, free: 46.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00448/5.898, allocations: 496.2 kB / 2.064 GB, free: 46.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001061/5.899, allocations: 146.6 kB / 2.065 GB, free: 46.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006202/5.905, allocations: 3.499 MB / 2.068 GB, free: 42.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/5.905, allocations: 0 / 2.068 GB, free: 42.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01534/5.921, allocations: 3.854 MB / 2.072 GB, free: 38.81 MB / 446.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00159/5.922, allocations: 258.3 kB / 2.072 GB, free: 38.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2103/6.132, allocations: 33.8 MB / 2.105 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/6.133, allocations: 1.375 kB / 2.105 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03901/6.172, allocations: 20.55 MB / 2.125 GB, free: 125.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005998/6.178, allocations: 0.7848 MB / 2.126 GB, free: 125.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03708/6.215, allocations: 27.14 MB / 2.152 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006481/6.221, allocations: 5.116 MB / 2.157 GB, free: 113.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004268/6.226, allocations: 2.062 MB / 2.159 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008514/6.226, allocations: 307 kB / 2.16 GB, free: 112.1 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/6.226, allocations: 0 / 2.16 GB, free: 112.1 MB / 446.1 MB Notification: Performance of Templates: time 0.4717/6.698, allocations: 273 MB / 2.426 GB, free: 3.305 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches