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.001307/0.001307, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2888, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01606/0.3049, allocations: 15.86 MB / 425.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.3165, allocations: 5.124 MB / 430.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003705/0.3203, allocations: 115.6 kB / 430.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008623/0.329, allocations: 4.427 MB / 434.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008198/0.3372, allocations: 2.572 MB / 437.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003058/0.3403, allocations: 1.151 MB / 438.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.3515, allocations: 8.108 MB / 446.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007462/0.359, allocations: 5.315 MB / 451.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004528/0.3636, allocations: 2.461 MB / 454.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004943/0.3686, allocations: 3.357 MB / 457.7 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001701/0.3703, allocations: 0.5039 MB / 458.2 MB, free: 380 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003716/0.374, allocations: 1.494 MB / 459.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003916/0.378, allocations: 2.969 MB / 462.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005677/0.3836, allocations: 3.329 MB / 466 MB, free: 8.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01418/0.3978, allocations: 10.3 MB / 476.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.826e-06/0.3979, allocations: 0 / 476.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3979, allocations: 3.938 kB / 476.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004405/0.3983, allocations: 0 / 476.3 MB, free: 14.21 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.02181/0.4202, allocations: 7.629 MB / 484 MB, free: 6.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.4202, allocations: 16.03 kB / 484 MB, free: 6.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01602/0.4363, allocations: 3.296 MB / 487.3 MB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01539/0.4517, allocations: 4.739 MB / 492 MB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004789/0.4522, allocations: 341.1 kB / 492.4 MB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002532/0.4548, allocations: 471.3 kB / 492.8 MB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03862/0.4934, allocations: 14.56 MB / 0.4955 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003417/0.4938, allocations: 71.42 kB / 0.4956 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001818/0.4956, allocations: 211.8 kB / 0.4958 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005993/0.5016, allocations: 2.836 MB / 0.4985 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02824/0.5299, allocations: 13.22 MB / 0.5114 GB, free: 13.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3008/0.8307, allocations: 58.25 MB / 0.5683 GB, free: 86.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02237/0.8531, allocations: 7.731 MB / 0.5759 GB, free: 84.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00906/0.8622, allocations: 5.042 MB / 0.5808 GB, free: 81.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02769/0.89, allocations: 12.8 MB / 0.5933 GB, free: 71.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.066e-05/0.8901, allocations: 69.98 kB / 0.5934 GB, free: 71.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 1.062e-05/0.8901, allocations: 0 / 0.5934 GB, free: 71.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.071/2.961, allocations: 411.6 MB / 0.9953 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.962, allocations: 265.5 kB / 0.9956 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008232/2.97, allocations: 5.436 MB / 1.001 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001805/2.972, allocations: 113.7 kB / 1.001 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002092/2.974, allocations: 3.941 MB / 1.005 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002653/2.976, allocations: 2.013 MB / 1.007 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006434/2.983, allocations: 2.178 MB / 1.009 GB, free: 134 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.562e-05/2.983, allocations: 301.1 kB / 1.009 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01299/2.996, allocations: 11.07 MB / 1.02 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01503/3.011, allocations: 15.24 MB / 1.035 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02935/3.04, allocations: 27.45 MB / 1.062 GB, free: 76.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001719/3.041, allocations: 40 kB / 1.062 GB, free: 76.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5625/3.603, allocations: 141.1 MB / 1.2 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001537/3.603, allocations: 64 kB / 1.2 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/3.603, allocations: 140 kB / 1.2 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07406/3.677, allocations: 34.7 MB / 1.234 GB, free: 92.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004773/3.682, allocations: 1.568 MB / 1.235 GB, free: 91.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4627/4.145, allocations: 203.6 MB / 1.434 GB, free: 87.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01257/4.158, allocations: 1.718 MB / 1.436 GB, free: 86.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002535/4.16, allocations: 0.5358 MB / 1.436 GB, free: 85.82 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.007982/4.168, allocations: 3.102 MB / 1.439 GB, free: 82.86 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002744/4.171, allocations: 0.5699 MB / 1.44 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5893/4.76, allocations: 136.8 MB / 1.573 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.388e-05/4.76, allocations: 58.78 kB / 1.573 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002109/4.761, allocations: 58.75 kB / 1.574 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001443/4.761, allocations: 27.89 kB / 1.574 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5802/5.341, allocations: 206 MB / 1.775 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.874e-05/5.341, allocations: 7.812 kB / 1.775 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/5.343, allocations: 325.5 kB / 1.775 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06749/5.41, allocations: 33.44 MB / 1.808 GB, free: 131.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001599/5.412, allocations: 99.94 kB / 1.808 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5047/5.916, allocations: 186.3 MB / 1.99 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/5.916, allocations: 11.66 kB / 1.99 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5672/6.484, allocations: 152.6 MB / 2.139 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/6.486, allocations: 0.6303 MB / 2.139 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002336/6.488, allocations: 99.7 kB / 2.139 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009057/6.497, allocations: 1.489 MB / 2.141 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003798/6.501, allocations: 0.4892 MB / 2.141 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009989/6.502, allocations: 143 kB / 2.142 GB, free: 155 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004771/6.507, allocations: 3.464 MB / 2.145 GB, free: 153.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/6.507, allocations: 0 / 2.145 GB, free: 153.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01442/6.521, allocations: 3.843 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.001604/6.523, allocations: 241.3 kB / 2.149 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05734/6.58, allocations: 33.82 MB / 2.182 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/6.58, allocations: 7.125 kB / 2.182 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03998/6.62, allocations: 20.56 MB / 2.202 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.01218/6.632, allocations: 0.78 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.04497/6.677, allocations: 27.09 MB / 2.229 GB, free: 100.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0104/6.688, allocations: 5.095 MB / 2.234 GB, free: 96.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005925/6.694, allocations: 2.051 MB / 2.236 GB, free: 95.06 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/6.695, allocations: 308.5 kB / 2.236 GB, free: 94.77 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/6.695, allocations: 0 / 2.236 GB, free: 94.77 MB / 0.545 GB Notification: Performance of Templates: time 0.5569/7.252, allocations: 276.4 MB / 2.506 GB, free: 9.262 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