Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001456/0.001456, allocations: 107.8 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001567, allocations: 209.9 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2488, allocations: 50.53 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01541/0.2642, allocations: 15.87 MB / 425.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.2746, allocations: 5.128 MB / 430.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.2774, allocations: 111.6 kB / 431 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008078/0.2855, allocations: 4.427 MB / 435.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006648/0.2922, allocations: 2.489 MB / 437.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002665/0.2949, allocations: 1.151 MB / 439.1 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01099/0.3059, allocations: 8.108 MB / 447.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006647/0.3126, allocations: 5.311 MB / 452.5 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004194/0.3168, allocations: 2.457 MB / 455 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005175/0.322, allocations: 3.361 MB / 458.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001806/0.3239, allocations: 0.5 MB / 458.8 MB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003792/0.3277, allocations: 1.498 MB / 460.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003888/0.3316, allocations: 2.973 MB / 463.3 MB, free: 12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005208/0.3368, allocations: 3.333 MB / 466.6 MB, free: 8.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.3482, allocations: 10.3 MB / 476.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3482, allocations: 0 / 476.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3482, allocations: 3.938 kB / 476.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002719/0.3485, allocations: 0 / 476.9 MB, free: 14.32 MB / 398.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.01963/0.3681, allocations: 7.633 MB / 484.6 MB, free: 6.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.3682, allocations: 8.031 kB / 484.6 MB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01649/0.3847, allocations: 3.299 MB / 487.9 MB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.3955, allocations: 4.739 MB / 492.6 MB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/0.3959, allocations: 341 kB / 493 MB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001858/0.3978, allocations: 475.5 kB / 493.4 MB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02968/0.4275, allocations: 14.56 MB / 0.4961 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002994/0.4278, allocations: 67.42 kB / 0.4961 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001472/0.4293, allocations: 219.8 kB / 0.4963 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00588/0.4352, allocations: 2.828 MB / 0.4991 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02769/0.4629, allocations: 13.22 MB / 0.512 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2812/0.7442, allocations: 58.26 MB / 0.5689 GB, free: 86.86 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01596/0.7602, allocations: 7.722 MB / 0.5765 GB, free: 84.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004694/0.7649, allocations: 5.057 MB / 0.5814 GB, free: 82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01497/0.7799, allocations: 12.8 MB / 0.5939 GB, free: 71.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.78, allocations: 70.95 kB / 0.594 GB, free: 71.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.932e-06/0.7801, allocations: 2.031 kB / 0.594 GB, free: 71.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.074/2.854, allocations: 411.6 MB / 0.9959 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/2.855, allocations: 263.7 kB / 0.9962 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007031/2.862, allocations: 5.438 MB / 1.001 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00229/2.864, allocations: 111.3 kB / 1.002 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002133/2.866, allocations: 3.95 MB / 1.005 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002739/2.869, allocations: 2.005 MB / 1.007 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004047/2.873, allocations: 2.182 MB / 1.01 GB, free: 134 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.927e-05/2.873, allocations: 302.1 kB / 1.01 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01305/2.886, allocations: 11.06 MB / 1.021 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01518/2.901, allocations: 15.24 MB / 1.036 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02962/2.931, allocations: 27.45 MB / 1.062 GB, free: 76.26 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001519/2.931, allocations: 36 kB / 1.062 GB, free: 76.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5692/3.5, allocations: 141.1 MB / 1.2 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.162e-05/3.5, allocations: 64 kB / 1.2 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/3.501, allocations: 143.9 kB / 1.2 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07629/3.577, allocations: 34.7 MB / 1.234 GB, free: 93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005081/3.582, allocations: 1.564 MB / 1.236 GB, free: 91.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5008/4.083, allocations: 203.6 MB / 1.435 GB, free: 87.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01373/4.097, allocations: 1.717 MB / 1.436 GB, free: 86.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0026/4.099, allocations: 0.5419 MB / 1.437 GB, free: 85.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.006355/4.106, allocations: 3.092 MB / 1.44 GB, free: 82.85 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001922/4.108, allocations: 0.5691 MB / 1.44 GB, free: 82.53 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5494/4.657, allocations: 136.8 MB / 1.574 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-05/4.657, allocations: 55.97 kB / 1.574 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000173/4.657, allocations: 59.16 kB / 1.574 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000123/4.657, allocations: 23.91 kB / 1.574 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5958/5.253, allocations: 206 MB / 1.775 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.142e-05/5.253, allocations: 7.406 kB / 1.775 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/5.255, allocations: 325.8 kB / 1.776 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0715/5.326, allocations: 33.44 MB / 1.808 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001698/5.328, allocations: 106.1 kB / 1.808 GB, free: 131.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4712/5.799, allocations: 186.3 MB / 1.99 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/5.799, allocations: 11.09 kB / 1.99 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.602/6.401, allocations: 152.6 MB / 2.139 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/6.403, allocations: 0.6318 MB / 2.14 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00247/6.405, allocations: 97.16 kB / 2.14 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009753/6.415, allocations: 1.494 MB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003796/6.419, allocations: 497.1 kB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001025/6.42, allocations: 143.5 kB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004982/6.425, allocations: 3.465 MB / 2.145 GB, free: 153.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/6.425, allocations: 3.5 kB / 2.146 GB, free: 153.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01329/6.438, allocations: 3.835 MB / 2.149 GB, free: 153.6 MB / 0.545 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.001691/6.44, allocations: 243.4 kB / 2.149 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05469/6.495, allocations: 33.83 MB / 2.183 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/6.495, allocations: 0 / 2.183 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03879/6.534, allocations: 20.57 MB / 2.203 GB, free: 125.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006451/6.54, allocations: 0.7762 MB / 2.203 GB, free: 124.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03817/6.578, allocations: 27.7 MB / 2.23 GB, free: 99.69 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00639/6.585, allocations: 5.058 MB / 2.235 GB, free: 95.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001309/6.586, allocations: 346.8 kB / 2.236 GB, free: 95.52 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/6.586, allocations: 1.641 kB / 2.236 GB, free: 95.52 MB / 0.545 GB Notification: Performance of Templates: time 0.5056/7.092, allocations: 256.1 MB / 2.486 GB, free: 20.68 MB / 0.545 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches