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.001093/0.001093, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.001149/0.001149, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009106/0.0009106, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.262, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01519/0.2773, allocations: 15.92 MB / 416.7 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.2878, allocations: 5.115 MB / 421.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003306/0.2911, allocations: 107.7 kB / 421.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008696/0.2999, allocations: 4.446 MB / 426.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008264/0.3082, allocations: 2.532 MB / 428.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003249/0.3115, allocations: 1.151 MB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.3235, allocations: 7.961 MB / 438 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007809/0.3313, allocations: 5.319 MB / 443.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00481/0.3361, allocations: 2.453 MB / 445.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005473/0.3416, allocations: 3.365 MB / 449.1 MB, free: 8.297 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001925/0.3436, allocations: 0.5039 MB / 449.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003937/0.3475, allocations: 1.498 MB / 451.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003722/0.3513, allocations: 2.954 MB / 454.1 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008008/0.3593, allocations: 3.348 MB / 457.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01428/0.3736, allocations: 10.39 MB / 467.8 MB, free: 5.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3737, allocations: 0 / 467.8 MB, free: 5.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3737, allocations: 4 kB / 467.8 MB, free: 5.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003554/0.3741, allocations: 0 / 467.8 MB, free: 5.527 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.02301/0.3971, allocations: 7.798 MB / 475.6 MB, free: 13.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3971, allocations: 8.031 kB / 475.6 MB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01466/0.4118, allocations: 3.218 MB / 478.8 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.4221, allocations: 4.85 MB / 483.7 MB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.4224, allocations: 337.1 kB / 484 MB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001245/0.4236, allocations: 471.6 kB / 484.5 MB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02535/0.449, allocations: 14.57 MB / 499 MB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002054/0.4492, allocations: 71.42 kB / 499.1 MB, free: 5.105 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006193/0.4498, allocations: 219.8 kB / 499.3 MB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005246/0.4551, allocations: 2.836 MB / 0.4904 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02649/0.4816, allocations: 13.22 MB / 0.5033 GB, free: 4.805 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3369/0.8186, allocations: 58.34 MB / 0.5603 GB, free: 93.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01649/0.8351, allocations: 7.727 MB / 0.5678 GB, free: 91.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004979/0.8401, allocations: 5.053 MB / 0.5727 GB, free: 89.42 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01605/0.8562, allocations: 12.82 MB / 0.5853 GB, free: 81.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.8563, allocations: 68.05 kB / 0.5853 GB, free: 81.13 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.219e-06/0.8563, allocations: 0 / 0.5853 GB, free: 81.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.112/2.968, allocations: 411.8 MB / 0.9875 GB, free: 165 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/2.969, allocations: 261.7 kB / 0.9877 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006493/2.975, allocations: 5.463 MB / 0.993 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001781/2.977, allocations: 109.7 kB / 0.9932 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001879/2.979, allocations: 4.085 MB / 0.9971 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002442/2.981, allocations: 2.108 MB / 0.9992 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004066/2.985, allocations: 2.183 MB / 1.001 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.291e-05/2.985, allocations: 301.1 kB / 1.002 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01269/2.998, allocations: 11.07 MB / 1.012 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01519/3.013, allocations: 15.23 MB / 1.027 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0297/3.043, allocations: 27.45 MB / 1.054 GB, free: 94.29 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/3.043, allocations: 40 kB / 1.054 GB, free: 94.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.609/3.652, allocations: 141.1 MB / 1.192 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/3.652, allocations: 64 kB / 1.192 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/3.653, allocations: 136 kB / 1.192 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07648/3.729, allocations: 34.69 MB / 1.226 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005008/3.734, allocations: 1.575 MB / 1.228 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5362/4.27, allocations: 203.6 MB / 1.426 GB, free: 97.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01526/4.286, allocations: 1.721 MB / 1.428 GB, free: 96.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003791/4.289, allocations: 0.541 MB / 1.429 GB, free: 95.51 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.009111/4.299, allocations: 3.09 MB / 1.432 GB, free: 92.63 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002974/4.302, allocations: 0.6046 MB / 1.432 GB, free: 92.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5442/4.846, allocations: 136.7 MB / 1.566 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.878e-05/4.846, allocations: 56.75 kB / 1.566 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001386/4.846, allocations: 59.78 kB / 1.566 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/4.846, allocations: 27.89 kB / 1.566 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6001/5.446, allocations: 205.9 MB / 1.767 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-05/5.446, allocations: 12.84 kB / 1.767 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/5.448, allocations: 333.1 kB / 1.767 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07272/5.521, allocations: 33.42 MB / 1.8 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00166/5.522, allocations: 107.7 kB / 1.8 GB, free: 112 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4443/5.967, allocations: 186.3 MB / 1.982 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/5.967, allocations: 10.81 kB / 1.982 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5837/6.55, allocations: 152.6 MB / 2.131 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/6.552, allocations: 0.6547 MB / 2.132 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002422/6.554, allocations: 105.3 kB / 2.132 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009267/6.563, allocations: 1.483 MB / 2.133 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003443/6.567, allocations: 0.4918 MB / 2.134 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008738/6.568, allocations: 141.6 kB / 2.134 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004396/6.572, allocations: 3.468 MB / 2.137 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/6.572, allocations: 0 / 2.137 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01143/6.584, allocations: 3.859 MB / 2.141 GB, free: 146.4 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.001244/6.585, allocations: 246 kB / 2.141 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05198/6.637, allocations: 33.86 MB / 2.174 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/6.637, allocations: 3.969 kB / 2.174 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03628/6.673, allocations: 20.58 MB / 2.194 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005901/6.679, allocations: 0.7899 MB / 2.195 GB, free: 104 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03468/6.714, allocations: 27.3 MB / 2.222 GB, free: 76.68 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006579/6.72, allocations: 5.097 MB / 2.227 GB, free: 71.57 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004022/6.724, allocations: 2.064 MB / 2.229 GB, free: 69.58 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008338/6.725, allocations: 307.2 kB / 2.229 GB, free: 69.28 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/6.725, allocations: 4 kB / 2.229 GB, free: 69.28 MB / 0.5294 GB Notification: Performance of Templates: time 0.7828/7.508, allocations: 276.6 MB / 2.499 GB, free: 163.8 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