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.001739/0.001739, allocations: 117.7 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002209/0.002209, allocations: 204.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 2.172/2.172, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4086, 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.02231/0.4309, allocations: 15.87 MB / 425.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.4436, allocations: 5.12 MB / 430.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004005/0.4477, allocations: 107.7 kB / 431 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008397/0.4561, allocations: 4.431 MB / 435.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00802/0.4642, allocations: 2.497 MB / 437.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003042/0.4673, allocations: 1.147 MB / 439.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.4794, allocations: 8.108 MB / 447.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007402/0.4869, allocations: 5.311 MB / 452.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005574/0.4925, allocations: 2.465 MB / 455 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006244/0.4988, allocations: 3.361 MB / 458.3 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002046/0.5009, allocations: 0.5039 MB / 458.8 MB, free: 488 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004115/0.505, allocations: 1.487 MB / 460.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003899/0.5089, allocations: 2.981 MB / 463.3 MB, free: 12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008095/0.5171, allocations: 3.333 MB / 466.6 MB, free: 8.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01868/0.5358, allocations: 10.29 MB / 476.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.949e-06/0.5359, allocations: 4 kB / 476.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5359, allocations: 0 / 476.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00044/0.5364, 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.02966/0.566, allocations: 7.637 MB / 484.6 MB, free: 6.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.237e-05/0.5661, allocations: 12.03 kB / 484.6 MB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02042/0.5866, allocations: 3.296 MB / 487.9 MB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0135/0.6001, allocations: 4.735 MB / 492.6 MB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003533/0.6005, allocations: 345 kB / 493 MB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002093/0.6026, allocations: 471.5 kB / 493.4 MB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03224/0.6349, allocations: 14.56 MB / 0.4961 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003756/0.6353, allocations: 75.36 kB / 0.4961 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001859/0.6372, allocations: 211.8 kB / 0.4963 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006114/0.6433, allocations: 2.832 MB / 0.4991 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03771/0.6811, allocations: 13.22 MB / 0.512 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3993/1.08, allocations: 58.25 MB / 0.5689 GB, free: 86.97 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01634/1.097, allocations: 7.721 MB / 0.5764 GB, free: 84.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005217/1.102, allocations: 5.06 MB / 0.5814 GB, free: 82.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02153/1.124, allocations: 12.8 MB / 0.5939 GB, free: 71.64 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/1.124, allocations: 64.7 kB / 0.5939 GB, free: 71.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.583e-06/1.124, allocations: 4.906 kB / 0.594 GB, free: 71.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.247/3.37, allocations: 411.6 MB / 0.9959 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/3.371, allocations: 273.6 kB / 0.9962 GB, free: 147 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007758/3.378, allocations: 5.434 MB / 1.001 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002088/3.381, allocations: 113.7 kB / 1.002 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002656/3.383, allocations: 3.94 MB / 1.005 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003245/3.386, allocations: 2.012 MB / 1.007 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007891/3.394, allocations: 2.171 MB / 1.01 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.39e-05/3.394, allocations: 306 kB / 1.01 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01381/3.408, allocations: 11.06 MB / 1.021 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01744/3.426, allocations: 15.24 MB / 1.036 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03292/3.459, allocations: 27.45 MB / 1.062 GB, free: 76.29 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001649/3.459, allocations: 40 kB / 1.062 GB, free: 76.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6101/4.069, allocations: 141.1 MB / 1.2 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.423e-05/4.069, allocations: 64 kB / 1.2 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001428/4.069, allocations: 140 kB / 1.2 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07505/4.144, allocations: 34.71 MB / 1.234 GB, free: 93.07 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004922/4.149, allocations: 1.564 MB / 1.236 GB, free: 91.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5242/4.674, allocations: 203.6 MB / 1.435 GB, free: 87.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0135/4.687, allocations: 1.724 MB / 1.436 GB, free: 86.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002641/4.69, allocations: 0.5369 MB / 1.437 GB, free: 85.89 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.00671/4.697, allocations: 3.1 MB / 1.44 GB, free: 82.94 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002032/4.699, allocations: 0.5762 MB / 1.44 GB, free: 82.54 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.8238/5.522, allocations: 136.7 MB / 1.574 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001492/5.523, allocations: 59.3 kB / 1.574 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000287/5.523, allocations: 66.38 kB / 1.574 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001627/5.523, allocations: 27.94 kB / 1.574 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.238/6.762, allocations: 206 MB / 1.775 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001146/6.762, allocations: 8.75 kB / 1.775 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002814/6.765, allocations: 338.2 kB / 1.776 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1696/6.934, allocations: 33.43 MB / 1.808 GB, free: 131.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002851/6.937, allocations: 110.2 kB / 1.808 GB, free: 131.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.9549/7.892, allocations: 186.3 MB / 1.99 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/7.892, allocations: 7.656 kB / 1.99 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.006/8.899, allocations: 152.6 MB / 2.139 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/8.901, allocations: 0.6245 MB / 2.14 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00439/8.906, allocations: 101.6 kB / 2.14 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01821/8.924, allocations: 1.492 MB / 2.141 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006584/8.931, allocations: 0.4883 MB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002429/8.933, allocations: 146.8 kB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01029/8.943, allocations: 3.459 MB / 2.145 GB, free: 153.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.193e-06/8.944, allocations: 0 / 2.145 GB, free: 153.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02555/8.969, allocations: 3.842 MB / 2.149 GB, free: 153.4 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.003052/8.972, allocations: 249.5 kB / 2.149 GB, free: 153.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.1047/9.077, allocations: 33.82 MB / 2.183 GB, free: 141.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/9.077, allocations: 4 kB / 2.183 GB, free: 141.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0741/9.151, allocations: 20.57 MB / 2.203 GB, free: 125 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01301/9.164, allocations: 0.7876 MB / 2.203 GB, free: 124.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07639/9.241, allocations: 27.69 MB / 2.23 GB, free: 99.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01492/9.256, allocations: 5.056 MB / 2.235 GB, free: 95.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002177/9.258, allocations: 360.2 kB / 2.236 GB, free: 95.38 MB / 0.545 GB Notification: Performance of SimCode: time 2.234e-06/9.258, allocations: 0.5469 kB / 2.236 GB, free: 95.38 MB / 0.545 GB Notification: Performance of Templates: time 1.142/10.4, allocations: 257.1 MB / 2.487 GB, free: 20.14 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