Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 119.5 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 214.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.438/1.438, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 59.91 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2706, allocations: 50.55 MB / 410.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01904/0.2896, allocations: 15.92 MB / 426.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.3018, allocations: 5.12 MB / 431.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003234/0.305, allocations: 119.6 kB / 431.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009127/0.3141, allocations: 4.473 MB / 435.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007547/0.3217, allocations: 2.571 MB / 438.4 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003022/0.3247, allocations: 1.151 MB / 439.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.3372, allocations: 8.103 MB / 447.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006356/0.3436, allocations: 4.53 MB / 452.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005285/0.3489, allocations: 2.465 MB / 454.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00568/0.3546, allocations: 3.361 MB / 458 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001688/0.3562, allocations: 0.5039 MB / 458.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003671/0.3599, allocations: 1.494 MB / 460 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004002/0.3639, allocations: 3.027 MB / 463 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004817/0.3687, allocations: 3.329 MB / 466.4 MB, free: 9.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.3826, allocations: 10.33 MB / 476.7 MB, free: 14.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3826, allocations: 0 / 476.7 MB, free: 14.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3826, allocations: 4 kB / 476.7 MB, free: 14.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003785/0.383, allocations: 0 / 476.7 MB, free: 14.63 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.02088/0.4039, allocations: 7.833 MB / 484.5 MB, free: 6.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.4039, allocations: 8.031 kB / 484.6 MB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01615/0.4201, allocations: 3.335 MB / 487.9 MB, free: 3.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.4315, allocations: 4.768 MB / 492.7 MB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000323/0.4318, allocations: 333.1 kB / 493 MB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/0.4334, allocations: 471.6 kB / 493.4 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02936/0.4628, allocations: 14.56 MB / 0.4961 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002382/0.463, allocations: 75.42 kB / 0.4962 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006895/0.4637, allocations: 215.8 kB / 0.4964 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005744/0.4694, allocations: 2.836 MB / 0.4991 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/0.4979, allocations: 13.22 MB / 0.5121 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3055/0.8034, allocations: 58.36 MB / 0.569 GB, free: 86.37 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01653/0.8199, allocations: 7.375 MB / 0.5762 GB, free: 83.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004902/0.8248, allocations: 4.543 MB / 0.5807 GB, free: 82.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01879/0.8436, allocations: 12.82 MB / 0.5932 GB, free: 72.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.472e-05/0.8437, allocations: 69.36 kB / 0.5933 GB, free: 72.07 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.753e-06/0.8437, allocations: 2.312 kB / 0.5933 GB, free: 72.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.118/2.962, allocations: 411.6 MB / 0.9952 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/2.962, allocations: 261.7 kB / 0.9955 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006244/2.968, allocations: 5.458 MB / 1.001 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001561/2.969, allocations: 111.5 kB / 1.001 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001796/2.971, allocations: 4.078 MB / 1.005 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002225/2.973, allocations: 2.118 MB / 1.007 GB, free: 137 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003637/2.977, allocations: 2.179 MB / 1.009 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.855e-05/2.977, allocations: 307.1 kB / 1.009 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01121/2.988, allocations: 11.06 MB / 1.02 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01467/3.003, allocations: 15.24 MB / 1.035 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0269/3.03, allocations: 27.44 MB / 1.062 GB, free: 77.03 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.713e-05/3.03, allocations: 43.94 kB / 1.062 GB, free: 76.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.552/3.582, allocations: 140.8 MB / 1.199 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.733e-05/3.582, allocations: 64.62 kB / 1.2 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/3.582, allocations: 136 kB / 1.2 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07692/3.659, allocations: 34.71 MB / 1.234 GB, free: 93.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/3.664, allocations: 1.567 MB / 1.235 GB, free: 92.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4532/4.117, allocations: 203.7 MB / 1.434 GB, free: 87.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01263/4.129, allocations: 1.719 MB / 1.436 GB, free: 86.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002195/4.132, allocations: 0.5334 MB / 1.436 GB, free: 86.46 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.006643/4.138, allocations: 3.103 MB / 1.439 GB, free: 83.58 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002364/4.141, allocations: 0.5986 MB / 1.44 GB, free: 83.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5383/4.679, allocations: 136.4 MB / 1.573 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.466e-05/4.679, allocations: 57.22 kB / 1.573 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001325/4.679, allocations: 57.91 kB / 1.573 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001055/4.679, allocations: 34.7 kB / 1.573 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6066/5.286, allocations: 205.7 MB / 1.774 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.367e-05/5.286, allocations: 3.969 kB / 1.774 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/5.288, allocations: 328 kB / 1.774 GB, free: 155.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07066/5.358, allocations: 33.45 MB / 1.807 GB, free: 132.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001448/5.36, allocations: 106.2 kB / 1.807 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4743/5.834, allocations: 186.3 MB / 1.989 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/5.834, allocations: 7.656 kB / 1.989 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5768/6.411, allocations: 152.3 MB / 2.138 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/6.412, allocations: 0.6573 MB / 2.138 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002751/6.415, allocations: 95.44 kB / 2.138 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01019/6.425, allocations: 1.489 MB / 2.14 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003818/6.429, allocations: 0.4907 MB / 2.14 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001103/6.43, allocations: 140.6 kB / 2.141 GB, free: 154.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005043/6.435, allocations: 3.462 MB / 2.144 GB, free: 154.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/6.435, allocations: 0 / 2.144 GB, free: 154.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01376/6.449, allocations: 3.84 MB / 2.148 GB, free: 154.1 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.001748/6.451, allocations: 249.2 kB / 2.148 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05626/6.507, allocations: 32.75 MB / 2.18 GB, free: 143.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/6.507, allocations: 0 / 2.18 GB, free: 143.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.04004/6.547, allocations: 19.6 MB / 2.199 GB, free: 128.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01037/6.557, allocations: 0.7676 MB / 2.2 GB, free: 128.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04443/6.602, allocations: 27.32 MB / 2.226 GB, free: 103.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007679/6.61, allocations: 5.105 MB / 2.231 GB, free: 99.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004698/6.614, allocations: 2.05 MB / 2.233 GB, free: 98.54 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/6.615, allocations: 307 kB / 2.234 GB, free: 98.25 MB / 0.545 GB Notification: Performance of SimCode: time 1.543e-06/6.615, allocations: 0 / 2.234 GB, free: 98.25 MB / 0.545 GB Notification: Performance of Templates: time 0.5578/7.173, allocations: 278 MB / 2.505 GB, free: 12.18 MB / 0.545 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches