Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 112.4 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 50.45 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.09925, allocations: 49.44 MB / 350.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01626/0.1156, allocations: 15.91 MB / 366 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1988/0.3144, allocations: 5.101 MB / 371.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00355/0.318, allocations: 113.3 kB / 371.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008874/0.3269, allocations: 4.444 MB / 375.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007167/0.3341, allocations: 2.534 MB / 378.2 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002668/0.3368, allocations: 1.149 MB / 379.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.3486, allocations: 7.966 MB / 387.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006479/0.3552, allocations: 5.323 MB / 392.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00471/0.3599, allocations: 2.454 MB / 395.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004958/0.3649, allocations: 3.366 MB / 398.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001655/0.3666, allocations: 0.5039 MB / 398.9 MB, free: 260 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004699/0.3713, allocations: 1.504 MB / 400.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004664/0.376, allocations: 2.949 MB / 403.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006981/0.383, allocations: 3.35 MB / 406.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.3966, allocations: 10.06 MB / 416.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3966, allocations: 0 / 416.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3966, allocations: 0 / 416.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003599/0.397, allocations: 0 / 416.8 MB, free: 14.67 MB / 334.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.02101/0.418, allocations: 7.607 MB / 424.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.4181, allocations: 12.03 kB / 424.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01482/0.4329, allocations: 3.186 MB / 427.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/0.4437, allocations: 4.723 MB / 432.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002879/0.444, allocations: 336.5 kB / 432.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001588/0.4456, allocations: 463.1 kB / 433.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02806/0.4737, allocations: 14.57 MB / 447.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003296/0.474, allocations: 67.42 kB / 447.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001795/0.4759, allocations: 222.3 kB / 447.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006085/0.482, allocations: 2.828 MB / 450.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02844/0.5104, allocations: 13.21 MB / 464 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0803/0.5908, allocations: 58.52 MB / 0.5103 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/0.6093, allocations: 7.728 MB / 0.5178 GB, free: 11.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007019/0.6163, allocations: 5.048 MB / 0.5227 GB, free: 6.117 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.224/0.8403, allocations: 12.8 MB / 0.5352 GB, free: 143.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.8404, allocations: 70.47 kB / 0.5353 GB, free: 143.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.873e-06/0.8405, allocations: 0 / 0.5353 GB, free: 143.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.947/2.787, allocations: 411.4 MB / 0.9371 GB, free: 77.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.44e-05/2.787, allocations: 262.9 kB / 0.9373 GB, free: 77.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006067/2.794, allocations: 5.449 MB / 0.9426 GB, free: 72.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001636/2.795, allocations: 114.6 kB / 0.9428 GB, free: 72.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/2.797, allocations: 3.944 MB / 0.9466 GB, free: 68.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002384/2.799, allocations: 2.011 MB / 0.9486 GB, free: 66.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003931/2.803, allocations: 2.175 MB / 0.9507 GB, free: 64.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.428e-05/2.803, allocations: 310.6 kB / 0.951 GB, free: 64.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01249/2.816, allocations: 11.06 MB / 0.9618 GB, free: 53.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01538/2.831, allocations: 15.24 MB / 0.9767 GB, free: 36.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03025/2.862, allocations: 27.45 MB / 1.003 GB, free: 6.938 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001676/2.862, allocations: 40 kB / 1.004 GB, free: 6.898 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5405/3.402, allocations: 141.1 MB / 1.141 GB, free: 44.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001706/3.403, allocations: 67.98 kB / 1.141 GB, free: 44.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/3.403, allocations: 140 kB / 1.141 GB, free: 44.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07623/3.479, allocations: 34.72 MB / 1.175 GB, free: 9.359 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2234/3.703, allocations: 1.565 MB / 1.177 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4511/4.154, allocations: 203.6 MB / 1.376 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01377/4.168, allocations: 1.726 MB / 1.377 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002311/4.17, allocations: 0.5392 MB / 1.378 GB, free: 110.1 MB / 462.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.005988/4.176, allocations: 3.088 MB / 1.381 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/4.178, allocations: 0.5714 MB / 1.382 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4737/4.651, allocations: 136.7 MB / 1.515 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.979e-05/4.651, allocations: 58.03 kB / 1.515 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001445/4.652, allocations: 60.39 kB / 1.515 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.651e-05/4.652, allocations: 26.22 kB / 1.515 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5547/5.206, allocations: 206.2 MB / 1.717 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-05/5.207, allocations: 11.64 kB / 1.717 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/5.208, allocations: 331.8 kB / 1.717 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06933/5.277, allocations: 33.46 MB / 1.75 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001821/5.279, allocations: 104 kB / 1.75 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3874/5.667, allocations: 186.2 MB / 1.931 GB, free: 105.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/5.667, allocations: 11.75 kB / 1.931 GB, free: 105.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4982/6.165, allocations: 152.5 MB / 2.08 GB, free: 118.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/6.167, allocations: 0.6234 MB / 2.081 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002435/6.169, allocations: 98.66 kB / 2.081 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009645/6.179, allocations: 1.489 MB / 2.083 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005445/6.184, allocations: 0.4903 MB / 2.083 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001697/6.186, allocations: 141.3 kB / 2.083 GB, free: 117.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00511/6.191, allocations: 3.467 MB / 2.087 GB, free: 117.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/6.191, allocations: 0 / 2.087 GB, free: 117.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01368/6.205, allocations: 3.855 MB / 2.09 GB, free: 114 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.001627/6.206, allocations: 245.3 kB / 2.091 GB, free: 113.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.06082/6.267, allocations: 38.87 MB / 2.129 GB, free: 75.62 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/6.267, allocations: 0 / 2.129 GB, free: 75.62 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03875/6.306, allocations: 20.55 MB / 2.149 GB, free: 55.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007888/6.314, allocations: 0.7849 MB / 2.149 GB, free: 54.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03864/6.353, allocations: 27.25 MB / 2.176 GB, free: 27.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007144/6.36, allocations: 5.108 MB / 2.181 GB, free: 21.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005228/6.365, allocations: 2.056 MB / 2.183 GB, free: 19.92 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/6.366, allocations: 303.4 kB / 2.183 GB, free: 19.62 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/6.366, allocations: 0 / 2.183 GB, free: 19.62 MB / 478.1 MB Notification: Performance of Templates: time 0.6755/7.042, allocations: 279.3 MB / 2.456 GB, free: 81.2 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches