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.001126/0.001126, allocations: 110.2 kB / 18.25 MB, free: 4.758 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.00108/0.00108, allocations: 195.3 kB / 19.18 MB, free: 3.836 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.453/1.453, allocations: 205.1 MB / 225 MB, free: 12.28 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.001247/0.001248, allocations: 47.92 kB / 281.3 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09524/0.0965, allocations: 46.63 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01703/0.1136, allocations: 16 MB / 344 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.1242, allocations: 5.148 MB / 349.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002859/0.1271, allocations: 107.7 kB / 349.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007959/0.1351, allocations: 4.454 MB / 353.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007022/0.1422, allocations: 2.544 MB / 356.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002798/0.145, allocations: 1.158 MB / 357.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.1557, allocations: 7.496 MB / 364.9 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006616/0.1623, allocations: 5.346 MB / 370.2 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004525/0.1669, allocations: 2.473 MB / 372.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005333/0.1722, allocations: 3.388 MB / 376.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001662/0.1739, allocations: 0.5039 MB / 376.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003433/0.1774, allocations: 1.494 MB / 378.1 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1935/0.3709, allocations: 2.957 MB / 381 MB, free: 20.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007095/0.378, allocations: 3.359 MB / 384.4 MB, free: 20.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.3924, allocations: 10.08 MB / 394.5 MB, free: 18.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.958e-06/0.3925, allocations: 0 / 394.5 MB, free: 18.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.3925, allocations: 0 / 394.5 MB, free: 18.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004434/0.3929, allocations: 3.969 kB / 394.5 MB, free: 18.85 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.027/0.4199, allocations: 7.63 MB / 402.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.42, allocations: 12.16 kB / 402.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.016/0.436, allocations: 3.181 MB / 405.3 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.4482, allocations: 4.885 MB / 410.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002402/0.4485, allocations: 337.9 kB / 410.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002494/0.451, allocations: 465.5 kB / 411 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03246/0.4835, allocations: 14.57 MB / 425.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003278/0.4838, allocations: 73.58 kB / 425.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001797/0.4856, allocations: 215.5 kB / 425.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005343/0.491, allocations: 2.826 MB / 428.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03085/0.5219, allocations: 13.22 MB / 441.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0943/0.6162, allocations: 58.54 MB / 0.4887 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02056/0.6369, allocations: 7.735 MB / 0.4962 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007749/0.6447, allocations: 5.048 MB / 0.5012 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02577/0.6705, allocations: 12.8 MB / 0.5137 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.734e-05/0.6706, allocations: 75.97 kB / 0.5137 GB, free: 13.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 6.171e-06/0.6706, allocations: 0 / 0.5137 GB, free: 13.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.164/2.834, allocations: 411.5 MB / 0.9156 GB, free: 81.44 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/2.834, allocations: 269.6 kB / 0.9158 GB, free: 81.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007428/2.842, allocations: 5.498 MB / 0.9212 GB, free: 76.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001829/2.844, allocations: 114.6 kB / 0.9213 GB, free: 75.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/2.846, allocations: 3.943 MB / 0.9251 GB, free: 72.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00267/2.848, allocations: 2.006 MB / 0.9271 GB, free: 70.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004803/2.853, allocations: 2.182 MB / 0.9292 GB, free: 68.47 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.88e-05/2.853, allocations: 304.9 kB / 0.9295 GB, free: 68.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01376/2.867, allocations: 11.06 MB / 0.9403 GB, free: 57.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01598/2.883, allocations: 15.23 MB / 0.9552 GB, free: 40.03 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03041/2.914, allocations: 27.45 MB / 0.982 GB, free: 10.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/2.914, allocations: 36 kB / 0.982 GB, free: 10.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5085/3.422, allocations: 141.1 MB / 1.12 GB, free: 24.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/3.422, allocations: 64 kB / 1.12 GB, free: 24.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/3.422, allocations: 140 kB / 1.12 GB, free: 24.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2617/3.684, allocations: 34.73 MB / 1.154 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005149/3.689, allocations: 1.565 MB / 1.155 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4665/4.156, allocations: 203.6 MB / 1.354 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01444/4.17, allocations: 1.71 MB / 1.356 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002969/4.173, allocations: 0.5459 MB / 1.357 GB, free: 109.8 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.008983/4.182, allocations: 3.103 MB / 1.36 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/4.184, allocations: 0.5741 MB / 1.36 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.565/4.749, allocations: 136.7 MB / 1.494 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.744e-05/4.75, allocations: 63.59 kB / 1.494 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00016/4.75, allocations: 61.5 kB / 1.494 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001296/4.75, allocations: 26.58 kB / 1.494 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5823/5.332, allocations: 206.2 MB / 1.695 GB, free: 93.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.863e-05/5.332, allocations: 4 kB / 1.695 GB, free: 93.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/5.334, allocations: 334.4 kB / 1.695 GB, free: 93.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07224/5.406, allocations: 33.47 MB / 1.728 GB, free: 64.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001831/5.408, allocations: 96 kB / 1.728 GB, free: 64.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4435/5.852, allocations: 186.2 MB / 1.91 GB, free: 41.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/5.852, allocations: 10.19 kB / 1.91 GB, free: 41.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5854/6.437, allocations: 152.5 MB / 2.059 GB, free: 50.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007614/6.445, allocations: 3.008 MB / 2.062 GB, free: 47.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003262/6.448, allocations: 99.94 kB / 2.062 GB, free: 47.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0105/6.459, allocations: 1.49 MB / 2.063 GB, free: 46.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004651/6.463, allocations: 0.4905 MB / 2.064 GB, free: 45.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001525/6.465, allocations: 143.2 kB / 2.064 GB, free: 45.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006159/6.471, allocations: 3.503 MB / 2.068 GB, free: 42.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.01e-07/6.471, allocations: 0 / 2.068 GB, free: 42.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01824/6.489, allocations: 3.858 MB / 2.071 GB, free: 38.17 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.002626/6.492, allocations: 239.4 kB / 2.072 GB, free: 37.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2602/6.752, allocations: 38.86 MB / 2.109 GB, free: 127.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/6.752, allocations: 1.094 kB / 2.109 GB, free: 127.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04332/6.796, allocations: 20.54 MB / 2.13 GB, free: 126.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009372/6.805, allocations: 0.7941 MB / 2.13 GB, free: 126.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0509/6.856, allocations: 27.9 MB / 2.158 GB, free: 114 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01163/6.868, allocations: 5.075 MB / 2.162 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/6.869, allocations: 358.1 kB / 2.163 GB, free: 109.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.723e-06/6.869, allocations: 0 / 2.163 GB, free: 109.8 MB / 446.1 MB Notification: Performance of Templates: time 0.5378/7.407, allocations: 255.9 MB / 2.413 GB, free: 15.49 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 -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