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.001297/0.001297, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.4 MB / 246.9 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 62.7 kB / 306.9 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1007, allocations: 50.53 MB / 357.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2387/0.3394, allocations: 74.84 MB / 432.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03647/0.3759, allocations: 14.74 MB / 447 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0157/0.3917, allocations: 339.1 kB / 447.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008362/0.4002, allocations: 4.424 MB / 451.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00658/0.4068, allocations: 2.343 MB / 454.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002864/0.4097, allocations: 1.057 MB / 455.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01289/0.4226, allocations: 11.32 MB / 466.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007235/0.4299, allocations: 5.193 MB / 471.7 MB, free: 9.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00414/0.4341, allocations: 2.191 MB / 473.9 MB, free: 6.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005091/0.4392, allocations: 3.575 MB / 477.4 MB, free: 3.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.441, allocations: 356 kB / 477.8 MB, free: 3.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003852/0.4449, allocations: 1.4 MB / 479.2 MB, free: 1.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003777/0.4487, allocations: 2.813 MB / 482 MB, free: 14.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00534/0.4541, allocations: 3.18 MB / 485.2 MB, free: 11.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008555/0.4627, allocations: 8.077 MB / 493.3 MB, free: 3.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.4627, allocations: 0 / 493.3 MB, free: 3.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4627, allocations: 0 / 493.3 MB, free: 3.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003718/0.4631, allocations: 0 / 493.3 MB, free: 3.516 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.02013/0.4833, allocations: 7.633 MB / 0.4892 GB, free: 11.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.4833, allocations: 12.03 kB / 0.4892 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01506/0.4984, allocations: 3.299 MB / 0.4924 GB, free: 8.473 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01061/0.5091, allocations: 4.633 MB / 0.4969 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003431/0.5094, allocations: 345.2 kB / 0.4972 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00187/0.5113, allocations: 471.5 kB / 0.4977 GB, free: 2.957 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02841/0.5397, allocations: 14.55 MB / 0.5119 GB, free: 3.473 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000352/0.5401, allocations: 75.27 kB / 0.512 GB, free: 3.398 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001659/0.5418, allocations: 215.8 kB / 0.5122 GB, free: 3.188 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005407/0.5472, allocations: 2.836 MB / 0.515 GB, free: 348 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02607/0.5733, allocations: 13.22 MB / 0.5279 GB, free: 3.094 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2576/0.8309, allocations: 58.5 MB / 0.585 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01676/0.8478, allocations: 7.738 MB / 0.5926 GB, free: 98.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005576/0.8534, allocations: 5.049 MB / 0.5975 GB, free: 93.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02084/0.8743, allocations: 12.8 MB / 0.61 GB, free: 81.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.904e-05/0.8744, allocations: 60.7 kB / 0.61 GB, free: 80.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.931e-06/0.8744, allocations: 7.938 kB / 0.61 GB, free: 80.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.953/2.827, allocations: 411.6 MB / 1.012 GB, free: 33.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/2.827, allocations: 269.3 kB / 1.012 GB, free: 33.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009296/2.836, allocations: 5.437 MB / 1.018 GB, free: 27.74 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002187/2.839, allocations: 113.7 kB / 1.018 GB, free: 27.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002715/2.841, allocations: 3.941 MB / 1.022 GB, free: 23.69 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003534/2.845, allocations: 2.009 MB / 1.023 GB, free: 21.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008937/2.854, allocations: 2.178 MB / 1.026 GB, free: 19.51 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.156e-05/2.854, allocations: 305.1 kB / 1.026 GB, free: 19.21 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2121/3.066, allocations: 11.06 MB / 1.037 GB, free: 142.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01956/3.086, allocations: 15.24 MB / 1.052 GB, free: 132.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03244/3.118, allocations: 27.45 MB / 1.078 GB, free: 117.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002188/3.118, allocations: 40.94 kB / 1.078 GB, free: 117.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5035/3.622, allocations: 141.1 MB / 1.216 GB, free: 124.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001733/3.622, allocations: 72.08 kB / 1.216 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002577/3.622, allocations: 140.4 kB / 1.216 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07999/3.702, allocations: 34.7 MB / 1.25 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005117/3.708, allocations: 1.568 MB / 1.252 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.439/4.147, allocations: 190.7 MB / 1.438 GB, free: 107.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01329/4.16, allocations: 1.72 MB / 1.44 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002948/4.163, allocations: 0.5397 MB / 1.44 GB, free: 106.4 MB / 478.1 MB 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.009012/4.172, allocations: 3.103 MB / 1.443 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002812/4.175, allocations: 0.5713 MB / 1.444 GB, free: 103.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5079/4.683, allocations: 136.7 MB / 1.577 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.903e-05/4.683, allocations: 59.66 kB / 1.577 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001648/4.683, allocations: 60.25 kB / 1.578 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001215/4.683, allocations: 27.89 kB / 1.578 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5583/5.241, allocations: 206.3 MB / 1.779 GB, free: 106.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.558e-05/5.242, allocations: 4.75 kB / 1.779 GB, free: 106.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/5.243, allocations: 326.4 kB / 1.779 GB, free: 106.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07385/5.317, allocations: 33.87 MB / 1.812 GB, free: 77.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002347/5.319, allocations: 103.4 kB / 1.812 GB, free: 77.22 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4353/5.755, allocations: 173.5 MB / 1.982 GB, free: 77.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/5.755, allocations: 13.53 kB / 1.982 GB, free: 77.18 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5194/6.274, allocations: 152.6 MB / 2.131 GB, free: 95.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001692/6.276, allocations: 0.6324 MB / 2.132 GB, free: 95.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003108/6.279, allocations: 95.91 kB / 2.132 GB, free: 95.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009604/6.289, allocations: 1.489 MB / 2.133 GB, free: 93.86 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004512/6.293, allocations: 0.495 MB / 2.134 GB, free: 93.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001537/6.295, allocations: 139.2 kB / 2.134 GB, free: 93.33 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006177/6.301, allocations: 3.463 MB / 2.137 GB, free: 90.85 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.91e-07/6.301, allocations: 0 / 2.137 GB, free: 90.85 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01608/6.317, allocations: 3.837 MB / 2.141 GB, free: 87.34 MB / 478.1 MB 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.002057/6.319, allocations: 246.9 kB / 2.141 GB, free: 87.17 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05388/6.373, allocations: 33.72 MB / 2.174 GB, free: 54.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/6.373, allocations: 0 / 2.174 GB, free: 54.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03852/6.412, allocations: 20.53 MB / 2.194 GB, free: 33.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009818/6.421, allocations: 0.7462 MB / 2.195 GB, free: 32.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2472/6.669, allocations: 30.97 MB / 2.225 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008932/6.678, allocations: 5.061 MB / 2.23 GB, free: 122.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/6.679, allocations: 351.7 kB / 2.23 GB, free: 122.3 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/6.679, allocations: 0 / 2.23 GB, free: 122.3 MB / 478.1 MB Notification: Performance of Templates: time 0.5282/7.207, allocations: 255.3 MB / 2.48 GB, free: 89.67 MB / 494.1 MB 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