Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009869/0.0009868, allocations: 200.1 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 102.9 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002335/0.0002336, allocations: 7.984 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1954, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.05432/0.2498, allocations: 68.59 MB / 480.6 MB, free: 5.133 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0302/0.28, allocations: 17.95 MB / 498.6 MB, free: 2.387 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01012/0.2902, allocations: 339.1 kB / 498.9 MB, free: 2.055 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00176/0.292, allocations: 0.5984 MB / 499.5 MB, free: 1.453 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005155/0.2972, allocations: 2.363 MB / 0.4901 GB, free: 15.08 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.299, allocations: 1.061 MB / 0.4912 GB, free: 14.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01178/0.3108, allocations: 11.38 MB / 0.5023 GB, free: 2.617 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2065/0.5174, allocations: 8.901 MB / 0.511 GB, free: 7.926 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004722/0.5221, allocations: 2.057 MB / 0.513 GB, free: 7.922 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005338/0.5275, allocations: 3.152 MB / 0.516 GB, free: 7.914 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001049/0.5286, allocations: 219.9 kB / 0.5163 GB, free: 7.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002995/0.5316, allocations: 1.238 MB / 0.5175 GB, free: 7.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002471/0.5341, allocations: 2.608 MB / 0.52 GB, free: 7.738 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002472/0.5366, allocations: 2.966 MB / 0.5229 GB, free: 6.559 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008855/0.5454, allocations: 9.641 MB / 0.5323 GB, free: 3.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.5455, allocations: 3.062 kB / 0.5323 GB, free: 3.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5455, allocations: 0 / 0.5323 GB, free: 3.453 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003298/0.5458, allocations: 0 / 0.5323 GB, free: 3.453 MB / 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.01368/0.5595, allocations: 6.361 MB / 0.5385 GB, free: 15.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.5596, allocations: 10.5 kB / 0.5385 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01431/0.5739, allocations: 3.359 MB / 0.5418 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.584, allocations: 4.648 MB / 0.5464 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.5843, allocations: 337.5 kB / 0.5467 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001592/0.5859, allocations: 469 kB / 0.5471 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02522/0.6111, allocations: 14.56 MB / 0.5613 GB, free: 4.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001963/0.6114, allocations: 70.31 kB / 0.5614 GB, free: 4.461 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005922/0.612, allocations: 214.2 kB / 0.5616 GB, free: 4.398 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0049/0.6169, allocations: 2.837 MB / 0.5644 GB, free: 2.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02526/0.6421, allocations: 13.18 MB / 0.5773 GB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07452/0.7167, allocations: 58.51 MB / 0.6344 GB, free: 6.191 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0174/0.7342, allocations: 7.716 MB / 0.6419 GB, free: 14.34 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006766/0.741, allocations: 5.041 MB / 0.6469 GB, free: 9.293 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02127/0.7623, allocations: 12.81 MB / 0.6594 GB, free: 12.42 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.925e-05/0.7624, allocations: 67.8 kB / 0.6594 GB, free: 12.35 MB / 490.7 MB Notification: Performance of pre-optimization done (n=326): time 7.274e-06/0.7624, allocations: 0 / 0.6594 GB, free: 12.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=572): time 1.835/2.598, allocations: 407.3 MB / 1.057 GB, free: 44.89 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.193e-05/2.598, allocations: 262.9 kB / 1.057 GB, free: 44.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006722/2.604, allocations: 5.404 MB / 1.063 GB, free: 39.21 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001686/2.606, allocations: 113.7 kB / 1.063 GB, free: 39.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002054/2.608, allocations: 3.942 MB / 1.067 GB, free: 35.15 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00266/2.611, allocations: 2.008 MB / 1.069 GB, free: 33.16 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009497/2.612, allocations: 200 kB / 1.069 GB, free: 32.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003525/2.612, allocations: 0.7151 MB / 1.07 GB, free: 32.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1934/2.806, allocations: 11.03 MB / 1.08 GB, free: 185.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01574/2.821, allocations: 15.2 MB / 1.095 GB, free: 175.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02995/2.851, allocations: 27.38 MB / 1.122 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.313e-05/2.851, allocations: 38.19 kB / 1.122 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3032/3.155, allocations: 141.1 MB / 1.26 GB, free: 30.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000105/3.155, allocations: 65 kB / 1.26 GB, free: 30.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/3.155, allocations: 140 kB / 1.26 GB, free: 30.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2832/3.438, allocations: 34.8 MB / 1.294 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/3.443, allocations: 1.572 MB / 1.295 GB, free: 165.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.461/3.904, allocations: 190.5 MB / 1.481 GB, free: 152.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01327/3.918, allocations: 1.72 MB / 1.483 GB, free: 152.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002632/3.92, allocations: 0.5398 MB / 1.484 GB, free: 152.5 MB / 0.4948 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%), (17,101,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.007591/3.928, allocations: 3.095 MB / 1.487 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/3.93, allocations: 0.5715 MB / 1.487 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2949/4.224, allocations: 136.7 MB / 1.621 GB, free: 42.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.042e-05/4.225, allocations: 59.94 kB / 1.621 GB, free: 42.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001688/4.225, allocations: 63.38 kB / 1.621 GB, free: 42.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.962e-05/4.225, allocations: 23.91 kB / 1.621 GB, free: 42.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5354/4.76, allocations: 206.2 MB / 1.822 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.734e-05/4.76, allocations: 9.281 kB / 1.822 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/4.762, allocations: 327.3 kB / 1.823 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2687/5.031, allocations: 33.92 MB / 1.856 GB, free: 159.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001408/5.032, allocations: 99.83 kB / 1.856 GB, free: 159.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2094/5.241, allocations: 173.5 MB / 2.025 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/5.241, allocations: 11.94 kB / 2.025 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5455/5.787, allocations: 152.6 MB / 2.174 GB, free: 59.53 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/5.789, allocations: 0.629 MB / 2.175 GB, free: 59.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002435/5.791, allocations: 107.9 kB / 2.175 GB, free: 59.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009062/5.8, allocations: 1.491 MB / 2.176 GB, free: 57.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004516/5.805, allocations: 491.1 kB / 2.177 GB, free: 57.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001202/5.806, allocations: 147.2 kB / 2.177 GB, free: 56.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005364/5.811, allocations: 3.424 MB / 2.18 GB, free: 53.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.21e-07/5.811, allocations: 4 kB / 2.18 GB, free: 53.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01602/5.827, allocations: 3.855 MB / 2.184 GB, free: 49.67 MB / 0.4948 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.002384/5.83, allocations: 253.3 kB / 2.184 GB, free: 49.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2613/6.091, allocations: 33.66 MB / 2.217 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/6.091, allocations: 0 / 2.217 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.05857/6.15, allocations: 20.52 MB / 2.237 GB, free: 163.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01566/6.166, allocations: 0.7504 MB / 2.238 GB, free: 163.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05896/6.225, allocations: 30.43 MB / 2.268 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009521/6.234, allocations: 5.09 MB / 2.273 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008411/6.243, allocations: 2.06 MB / 2.275 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/6.244, allocations: 311.2 kB / 2.275 GB, free: 139.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/6.244, allocations: 0 / 2.275 GB, free: 139.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.5789/6.823, allocations: 262 MB / 2.531 GB, free: 40.1 MB / 0.4948 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches