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.001094/0.001094, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001205, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2702, allocations: 50.54 MB / 409.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01543/0.2857, allocations: 15.86 MB / 425.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01/0.2957, allocations: 5.12 MB / 430.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002724/0.2985, allocations: 111.7 kB / 430.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008067/0.3065, allocations: 4.435 MB / 434.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006932/0.3136, allocations: 2.493 MB / 437.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.3166, allocations: 1.147 MB / 438.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.3283, allocations: 8.104 MB / 446.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007986/0.3363, allocations: 5.315 MB / 451.8 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004696/0.341, allocations: 2.465 MB / 454.3 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005413/0.3465, allocations: 3.357 MB / 457.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001659/0.3482, allocations: 0.5039 MB / 458.2 MB, free: 480 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003589/0.3518, allocations: 1.487 MB / 459.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00371/0.3555, allocations: 2.985 MB / 462.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005195/0.3607, allocations: 3.325 MB / 466 MB, free: 8.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01165/0.3724, allocations: 10.29 MB / 476.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3724, allocations: 0 / 476.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3724, allocations: 0 / 476.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000296/0.3727, allocations: 0 / 476.3 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.02045/0.3932, allocations: 7.641 MB / 483.9 MB, free: 6.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3933, allocations: 12.03 kB / 483.9 MB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01674/0.41, allocations: 3.299 MB / 487.2 MB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01303/0.4231, allocations: 4.743 MB / 492 MB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003268/0.4235, allocations: 333.1 kB / 492.3 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002003/0.4255, allocations: 467.5 kB / 492.7 MB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02797/0.4535, allocations: 14.56 MB / 0.4954 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001987/0.4537, allocations: 75.36 kB / 0.4955 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006372/0.4543, allocations: 211.8 kB / 0.4957 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005621/0.46, allocations: 2.84 MB / 0.4985 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02658/0.4866, allocations: 13.22 MB / 0.5114 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2795/0.7661, allocations: 58.26 MB / 0.5682 GB, free: 86.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01626/0.7824, allocations: 7.722 MB / 0.5758 GB, free: 84.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004845/0.7873, allocations: 5.048 MB / 0.5807 GB, free: 82.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01537/0.8027, allocations: 12.8 MB / 0.5932 GB, free: 71.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.8028, allocations: 68.08 kB / 0.5933 GB, free: 71.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.801e-06/0.8028, allocations: 0 / 0.5933 GB, free: 71.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.197/3, allocations: 411.6 MB / 0.9953 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.344e-05/3, allocations: 269.6 kB / 0.9955 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006344/3.006, allocations: 5.437 MB / 1.001 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00179/3.008, allocations: 117.5 kB / 1.001 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001918/3.01, allocations: 3.94 MB / 1.005 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00256/3.013, allocations: 2.009 MB / 1.007 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00393/3.016, allocations: 2.178 MB / 1.009 GB, free: 134 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.364e-05/3.017, allocations: 309.1 kB / 1.009 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01225/3.029, allocations: 11.06 MB / 1.02 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01516/3.044, allocations: 15.23 MB / 1.035 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03147/3.076, allocations: 27.45 MB / 1.062 GB, free: 76.21 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001605/3.076, allocations: 40 kB / 1.062 GB, free: 76.17 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5681/3.644, allocations: 141.1 MB / 1.2 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-05/3.644, allocations: 64 kB / 1.2 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/3.644, allocations: 136 kB / 1.2 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07669/3.721, allocations: 34.71 MB / 1.234 GB, free: 92.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/3.726, allocations: 1.564 MB / 1.235 GB, free: 91.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4884/4.214, allocations: 203.6 MB / 1.434 GB, free: 87.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01295/4.227, allocations: 1.721 MB / 1.436 GB, free: 86.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/4.229, allocations: 0.535 MB / 1.436 GB, free: 85.84 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.005331/4.235, allocations: 3.103 MB / 1.439 GB, free: 82.88 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/4.236, allocations: 0.5722 MB / 1.44 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5448/4.781, allocations: 136.7 MB / 1.573 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.074e-05/4.781, allocations: 61.66 kB / 1.573 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000181/4.781, allocations: 55.34 kB / 1.573 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001383/4.782, allocations: 31.86 kB / 1.573 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6011/5.383, allocations: 206 MB / 1.775 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.818e-05/5.383, allocations: 7.469 kB / 1.775 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/5.384, allocations: 328.3 kB / 1.775 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07131/5.456, allocations: 33.44 MB / 1.808 GB, free: 131.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00185/5.458, allocations: 111.7 kB / 1.808 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4542/5.912, allocations: 186.2 MB / 1.99 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/5.912, allocations: 7.75 kB / 1.99 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5875/6.499, allocations: 152.6 MB / 2.139 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/6.501, allocations: 0.6268 MB / 2.139 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001664/6.503, allocations: 104 kB / 2.139 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008753/6.512, allocations: 1.487 MB / 2.141 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00351/6.515, allocations: 0.4894 MB / 2.141 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008206/6.516, allocations: 137 kB / 2.141 GB, free: 154.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004717/6.521, allocations: 3.468 MB / 2.145 GB, free: 153.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.71e-07/6.521, allocations: 0 / 2.145 GB, free: 153.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0138/6.534, allocations: 3.843 MB / 2.149 GB, free: 153.5 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.001633/6.536, allocations: 247.1 kB / 2.149 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05447/6.591, allocations: 33.82 MB / 2.182 GB, free: 141.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/6.591, allocations: 0 / 2.182 GB, free: 141.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03837/6.629, allocations: 20.56 MB / 2.202 GB, free: 125 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006573/6.636, allocations: 0.7739 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.03826/6.674, allocations: 27.09 MB / 2.229 GB, free: 100 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006956/6.681, allocations: 5.108 MB / 2.234 GB, free: 96.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004271/6.685, allocations: 2.046 MB / 2.236 GB, free: 94.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008621/6.686, allocations: 311.1 kB / 2.236 GB, free: 94.64 MB / 0.545 GB Notification: Performance of SimCode: time 6.71e-07/6.686, allocations: 0 / 2.236 GB, free: 94.64 MB / 0.545 GB Notification: Performance of Templates: time 0.586/7.272, allocations: 281.8 MB / 2.512 GB, free: 3.723 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches