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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.7 MB / 245.5 MB, free: 7.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 109.8 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.00102, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2209, allocations: 50.46 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05794/0.2789, allocations: 75.32 MB / 482.4 MB, free: 220 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02844/0.3073, allocations: 14.98 MB / 497.4 MB, free: 1.188 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01142/0.3188, allocations: 343.1 kB / 497.7 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008043/0.3269, allocations: 4.422 MB / 0.4903 GB, free: 12.42 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006135/0.3331, allocations: 2.359 MB / 0.4927 GB, free: 10.05 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002307/0.3354, allocations: 1.057 MB / 0.4937 GB, free: 8.992 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2037/0.5392, allocations: 11.38 MB / 0.5048 GB, free: 4.664 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00674/0.5459, allocations: 5.199 MB / 0.5099 GB, free: 4.117 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004928/0.5509, allocations: 2.21 MB / 0.512 GB, free: 4.113 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006571/0.5575, allocations: 3.59 MB / 0.5155 GB, free: 4.066 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002006/0.5596, allocations: 353.8 kB / 0.5159 GB, free: 4.066 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003645/0.5632, allocations: 1.395 MB / 0.5172 GB, free: 4.062 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003352/0.5666, allocations: 2.831 MB / 0.52 GB, free: 3.777 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004491/0.5711, allocations: 3.202 MB / 0.5231 GB, free: 2.625 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.5816, allocations: 9.919 MB / 0.5328 GB, free: 300 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.5817, allocations: 0 / 0.5328 GB, free: 300 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5817, allocations: 0 / 0.5328 GB, free: 300 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004067/0.5821, allocations: 0 / 0.5328 GB, free: 300 kB / 378.7 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.0224/0.6045, allocations: 7.675 MB / 0.5403 GB, free: 12.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.6046, allocations: 10.69 kB / 0.5403 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01571/0.6203, allocations: 3.297 MB / 0.5435 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.6314, allocations: 4.644 MB / 0.5481 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/0.6317, allocations: 340.7 kB / 0.5484 GB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001852/0.6335, allocations: 459 kB / 0.5488 GB, free: 8.953 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02908/0.6626, allocations: 14.57 MB / 0.5631 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003078/0.663, allocations: 76.02 kB / 0.5631 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001355/0.6643, allocations: 211 kB / 0.5633 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005816/0.6702, allocations: 2.829 MB / 0.5661 GB, free: 7.531 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0275/0.6977, allocations: 13.23 MB / 0.579 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07862/0.7764, allocations: 58.52 MB / 0.6362 GB, free: 15.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/0.794, allocations: 7.729 MB / 0.6437 GB, free: 7.352 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006159/0.8002, allocations: 5.057 MB / 0.6487 GB, free: 2.289 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02316/0.8234, allocations: 12.81 MB / 0.6612 GB, free: 5.434 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/0.8235, allocations: 67.14 kB / 0.6612 GB, free: 5.359 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=326): time 6.102e-06/0.8235, allocations: 0 / 0.6612 GB, free: 5.359 MB / 0.4948 GB Notification: Performance of matching and sorting (n=572): time 1.991/2.814, allocations: 411.6 MB / 1.063 GB, free: 69.05 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/2.814, allocations: 265.7 kB / 1.063 GB, free: 68.74 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007234/2.821, allocations: 5.444 MB / 1.069 GB, free: 63.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001807/2.823, allocations: 114.8 kB / 1.069 GB, free: 63.21 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002179/2.826, allocations: 3.943 MB / 1.073 GB, free: 59.26 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002545/2.828, allocations: 2.011 MB / 1.075 GB, free: 57.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004556/2.833, allocations: 2.174 MB / 1.077 GB, free: 55.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 4.03e-05/2.833, allocations: 305.1 kB / 1.077 GB, free: 54.78 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0127/2.845, allocations: 11.07 MB / 1.088 GB, free: 43.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01444/2.86, allocations: 15.23 MB / 1.103 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2409/3.101, allocations: 27.45 MB / 1.13 GB, free: 183.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/3.101, allocations: 42.34 kB / 1.13 GB, free: 183.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.338/3.439, allocations: 141.1 MB / 1.267 GB, free: 65.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.671e-05/3.439, allocations: 64 kB / 1.268 GB, free: 65.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/3.439, allocations: 136 kB / 1.268 GB, free: 65.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1202/3.559, allocations: 34.7 MB / 1.302 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004901/3.564, allocations: 1.571 MB / 1.303 GB, free: 28.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.511/4.075, allocations: 190.7 MB / 1.489 GB, free: 46.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01373/4.089, allocations: 1.72 MB / 1.491 GB, free: 44.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002573/4.092, allocations: 0.5379 MB / 1.491 GB, free: 43.85 MB / 0.5105 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.007965/4.1, allocations: 3.102 MB / 1.494 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002211/4.102, allocations: 0.5693 MB / 1.495 GB, free: 40.58 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5069/4.609, allocations: 136.7 MB / 1.629 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.167e-05/4.609, allocations: 61.97 kB / 1.629 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001429/4.609, allocations: 56 kB / 1.629 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.449e-05/4.609, allocations: 36.17 kB / 1.629 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6092/5.218, allocations: 206.3 MB / 1.83 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.87e-05/5.219, allocations: 8 kB / 1.83 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001472/5.22, allocations: 333.1 kB / 1.83 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07075/5.291, allocations: 33.86 MB / 1.864 GB, free: 95.08 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001556/5.292, allocations: 104 kB / 1.864 GB, free: 94.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4232/5.716, allocations: 173.5 MB / 2.033 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/5.716, allocations: 7.75 kB / 2.033 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.547/14.26, allocations: 2.486 GB / 4.52 GB, free: 132 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/14.26, allocations: 0.6332 MB / 4.52 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002361/14.27, allocations: 97.81 kB / 4.52 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009773/14.28, allocations: 1.487 MB / 4.522 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003904/14.28, allocations: 498.8 kB / 4.522 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008913/14.28, allocations: 148.1 kB / 4.522 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004714/14.29, allocations: 3.47 MB / 4.526 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.4e-07/14.29, allocations: 1.625 kB / 4.526 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.022/14.31, allocations: 7.01 MB / 4.533 GB, free: 131.4 MB / 0.5105 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.001534/14.31, allocations: 249.3 kB / 4.533 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05123/14.36, allocations: 33.72 MB / 4.566 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/14.36, allocations: 4.156 kB / 4.566 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03825/14.4, allocations: 20.53 MB / 4.586 GB, free: 95.48 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006122/14.41, allocations: 0.7356 MB / 4.587 GB, free: 94.84 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1592/14.57, allocations: 70.44 MB / 4.655 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.224/14.79, allocations: 5.457 MB / 4.661 GB, free: 139 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005863/14.8, allocations: 2.077 MB / 4.663 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009558/14.8, allocations: 316.8 kB / 4.663 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of SimCode: time 8.71e-07/14.8, allocations: 0 / 4.663 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.9684/15.76, allocations: 0.5118 GB / 5.175 GB, free: 26.34 MB / 0.5105 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches