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.001187/0.001187, allocations: 109.8 kB / 17.06 MB, free: 5.973 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.001186/0.001186, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 43.94 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2723, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01691/0.2892, allocations: 15.92 MB / 416.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.3005, allocations: 5.112 MB / 421.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003323/0.3039, allocations: 111.6 kB / 421.9 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009505/0.3134, allocations: 4.446 MB / 426.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007901/0.3214, allocations: 2.607 MB / 428.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003239/0.3247, allocations: 1.147 MB / 430.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01249/0.3372, allocations: 7.974 MB / 438 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008265/0.3455, allocations: 5.315 MB / 443.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007518/0.353, allocations: 2.465 MB / 445.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005814/0.3589, allocations: 3.369 MB / 449.2 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002022/0.361, allocations: 0.5039 MB / 449.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00425/0.3652, allocations: 1.502 MB / 451.2 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004492/0.3698, allocations: 2.985 MB / 454.2 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006491/0.3763, allocations: 3.356 MB / 457.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/0.3903, allocations: 10.35 MB / 467.9 MB, free: 5.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3903, allocations: 0 / 467.9 MB, free: 5.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3903, allocations: 4 kB / 467.9 MB, free: 5.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004488/0.3908, allocations: 0 / 467.9 MB, free: 5.41 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02154/0.4124, allocations: 7.597 MB / 475.5 MB, free: 13.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.4124, allocations: 8.031 kB / 475.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01469/0.4271, allocations: 3.19 MB / 478.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.4392, allocations: 4.832 MB / 483.5 MB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/0.4396, allocations: 337.1 kB / 483.9 MB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002445/0.442, allocations: 463.6 kB / 484.3 MB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03146/0.4735, allocations: 14.56 MB / 498.9 MB, free: 5.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000354/0.4739, allocations: 75.33 kB / 498.9 MB, free: 5.246 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001616/0.4755, allocations: 211.8 kB / 499.1 MB, free: 5.039 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005119/0.4807, allocations: 2.836 MB / 0.4902 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0274/0.5081, allocations: 13.22 MB / 0.5031 GB, free: 4.949 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3558/0.8639, allocations: 58.25 MB / 0.56 GB, free: 93.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01625/0.8802, allocations: 7.719 MB / 0.5676 GB, free: 91.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005656/0.8859, allocations: 5.058 MB / 0.5725 GB, free: 89.73 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02218/0.9081, allocations: 12.8 MB / 0.585 GB, free: 81.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.172e-05/0.9082, allocations: 68.58 kB / 0.5851 GB, free: 81.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.712e-06/0.9082, allocations: 0 / 0.5851 GB, free: 81.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.009/2.917, allocations: 411.4 MB / 0.9869 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/2.917, allocations: 265.6 kB / 0.9871 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007122/2.924, allocations: 5.445 MB / 0.9924 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001738/2.926, allocations: 120.8 kB / 0.9926 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001952/2.928, allocations: 3.94 MB / 0.9964 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00259/2.931, allocations: 2.006 MB / 0.9984 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004415/2.935, allocations: 2.182 MB / 1 GB, free: 152 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.874e-05/2.935, allocations: 301.1 kB / 1.001 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01299/2.948, allocations: 11.07 MB / 1.012 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01684/2.965, allocations: 15.23 MB / 1.026 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03093/2.996, allocations: 27.45 MB / 1.053 GB, free: 94.26 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002203/2.996, allocations: 36 kB / 1.053 GB, free: 94.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5768/3.573, allocations: 141.1 MB / 1.191 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002376/3.574, allocations: 64 kB / 1.191 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002689/3.574, allocations: 136 kB / 1.191 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07436/3.648, allocations: 34.69 MB / 1.225 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004994/3.653, allocations: 1.575 MB / 1.227 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4857/4.139, allocations: 203.6 MB / 1.425 GB, free: 97.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01258/4.152, allocations: 1.725 MB / 1.427 GB, free: 96.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002712/4.154, allocations: 0.531 MB / 1.428 GB, free: 95.8 MB / 0.5294 GB 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.007704/4.162, allocations: 3.093 MB / 1.431 GB, free: 92.86 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002547/4.165, allocations: 0.577 MB / 1.431 GB, free: 92.55 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.533/4.698, allocations: 136.7 MB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.949e-05/4.698, allocations: 61 kB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002068/4.698, allocations: 60.16 kB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001364/4.698, allocations: 23.91 kB / 1.565 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5952/5.293, allocations: 205.9 MB / 1.766 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.389e-05/5.293, allocations: 13.5 kB / 1.766 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/5.295, allocations: 334 kB / 1.766 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06566/5.361, allocations: 33.41 MB / 1.799 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002258/5.363, allocations: 104.6 kB / 1.799 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4997/5.863, allocations: 186.2 MB / 1.981 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/5.863, allocations: 11.84 kB / 1.981 GB, free: 122.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5457/6.408, allocations: 152.5 MB / 2.13 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/6.41, allocations: 0.6244 MB / 2.13 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002757/6.413, allocations: 97.72 kB / 2.131 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008947/6.422, allocations: 1.488 MB / 2.132 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003952/6.426, allocations: 0.4963 MB / 2.132 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001122/6.427, allocations: 142.2 kB / 2.133 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00564/6.433, allocations: 3.464 MB / 2.136 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/6.433, allocations: 0 / 2.136 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01504/6.448, allocations: 3.858 MB / 2.14 GB, free: 146.1 MB / 0.5294 GB 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.001797/6.449, allocations: 249.9 kB / 2.14 GB, free: 146 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05755/6.507, allocations: 33.81 MB / 2.173 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.59e-05/6.507, allocations: 0 / 2.173 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03813/6.545, allocations: 20.55 MB / 2.193 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009912/6.555, allocations: 0.7816 MB / 2.194 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04907/6.604, allocations: 27.09 MB / 2.22 GB, free: 77.26 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/6.615, allocations: 5.09 MB / 2.225 GB, free: 72.16 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005501/6.62, allocations: 2.064 MB / 2.227 GB, free: 70.14 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/6.622, allocations: 303.4 kB / 2.228 GB, free: 69.84 MB / 0.5294 GB Notification: Performance of SimCode: time 1.373e-06/6.622, allocations: 0 / 2.228 GB, free: 69.84 MB / 0.5294 GB Notification: Performance of Templates: time 0.8096/7.431, allocations: 276.5 MB / 2.498 GB, free: 163.7 MB / 0.545 GB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches