Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 106.2 kB / 18.25 MB, free: 4.77 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.001026/0.001026, allocations: 195.3 kB / 19.19 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 225 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 55.91 kB / 281.3 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09247/0.09397, allocations: 46.63 MB / 328 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02132/0.1153, allocations: 19.48 MB / 347.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.1291, allocations: 5.997 MB / 353.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00514/0.1343, allocations: 159.4 kB / 353.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01164/0.146, allocations: 5.86 MB / 359.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009668/0.1557, allocations: 3.358 MB / 362.8 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003739/0.1595, allocations: 1.568 MB / 364.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01662/0.1761, allocations: 11.39 MB / 375.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1836/0.3597, allocations: 7.679 MB / 383.4 MB, free: 16.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007595/0.3674, allocations: 3.567 MB / 387 MB, free: 16.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008931/0.3763, allocations: 4.768 MB / 391.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003941/0.3803, allocations: 0.714 MB / 392.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007043/0.3874, allocations: 1.673 MB / 394.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006983/0.3944, allocations: 4.229 MB / 398.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009765/0.4042, allocations: 4.482 MB / 402.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01657/0.4208, allocations: 13.36 MB / 416.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.4209, allocations: 0 / 416.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4209, allocations: 0 / 416.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007027/0.4216, allocations: 0 / 416.2 MB, free: 6.094 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02727/0.4489, allocations: 9.69 MB / 425.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.449, allocations: 8.031 kB / 425.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04859/0.4975, allocations: 5.241 MB / 431.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02151/0.5191, allocations: 8.19 MB / 439.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004432/0.5196, allocations: 426.4 kB / 439.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002716/0.5223, allocations: 0.587 MB / 440.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0372/0.5595, allocations: 16.56 MB / 456.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003944/0.56, allocations: 95.78 kB / 457 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001436/0.5614, allocations: 268 kB / 457.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004805/0.5662, allocations: 2.763 MB / 460 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03045/0.5967, allocations: 13.63 MB / 473.7 MB, free: 15.49 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09924/0.696, allocations: 67.97 MB / 0.529 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02143/0.7174, allocations: 7.884 MB / 0.5367 GB, free: 2.266 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2036/0.921, allocations: 4.499 MB / 0.5411 GB, free: 154.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02166/0.9428, allocations: 12.43 MB / 0.5532 GB, free: 149.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.479e-05/0.9429, allocations: 74.27 kB / 0.5533 GB, free: 149.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 8.045e-06/0.9429, allocations: 2.188 kB / 0.5533 GB, free: 149.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=340): time 0.1735/1.116, allocations: 49.28 MB / 0.6014 GB, free: 119 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/1.117, allocations: 402 kB / 0.6018 GB, free: 118.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009742/1.126, allocations: 7.187 MB / 0.6088 GB, free: 111.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009768/1.127, allocations: 77.7 kB / 0.6089 GB, free: 111.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002758/1.13, allocations: 5.023 MB / 0.6138 GB, free: 106.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.132, allocations: 1.267 MB / 0.615 GB, free: 105 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002551/1.134, allocations: 1.867 MB / 0.6168 GB, free: 103.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.079e-05/1.134, allocations: 301.1 kB / 0.6171 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005679/1.14, allocations: 4.547 MB / 0.6216 GB, free: 98.23 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007981/1.148, allocations: 9.271 MB / 0.6306 GB, free: 86.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01534/1.163, allocations: 14.54 MB / 0.6448 GB, free: 69.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/1.164, allocations: 48 kB / 0.6449 GB, free: 69.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04036/1.204, allocations: 19.77 MB / 0.6642 GB, free: 49.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001959/1.204, allocations: 72 kB / 0.6642 GB, free: 49.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002259/1.204, allocations: 160 kB / 0.6644 GB, free: 49.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02074/1.225, allocations: 7.055 MB / 0.6713 GB, free: 42.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006081/1.231, allocations: 1.934 MB / 0.6732 GB, free: 40.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2288/1.46, allocations: 35.3 MB / 0.7076 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008547/1.469, allocations: 0.5874 MB / 0.7082 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.47, allocations: 0.4922 MB / 0.7087 GB, free: 127.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1049): * Single equations (assignments): 1043 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006198/1.477, allocations: 3.489 MB / 0.7121 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001548/1.478, allocations: 0.6367 MB / 0.7127 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02721/1.505, allocations: 13.32 MB / 0.7257 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.007e-05/1.505, allocations: 34.5 kB / 0.7258 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.958e-05/1.505, allocations: 19.22 kB / 0.7258 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.054e-05/1.506, allocations: 14.62 kB / 0.7258 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04503/1.551, allocations: 26.74 MB / 0.7519 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-05/1.551, allocations: 7.625 kB / 0.7519 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.553, allocations: 419.8 kB / 0.7523 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01854/1.571, allocations: 6.655 MB / 0.7588 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000598/1.572, allocations: 67.61 kB / 0.7589 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03879/1.611, allocations: 34.01 MB / 0.7921 GB, free: 70.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/1.611, allocations: 11.94 kB / 0.7921 GB, free: 70.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03175/1.642, allocations: 18.76 MB / 0.8104 GB, free: 51.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00403/1.646, allocations: 1.392 MB / 0.8118 GB, free: 50.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002302/1.649, allocations: 60 kB / 0.8118 GB, free: 50.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005329/1.654, allocations: 307.5 kB / 0.8121 GB, free: 50.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001306/1.655, allocations: 242 kB / 0.8124 GB, free: 49.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004216/1.656, allocations: 92.53 kB / 0.8125 GB, free: 49.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007696/1.664, allocations: 4.607 MB / 0.817 GB, free: 45.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.014e-06/1.664, allocations: 0 / 0.817 GB, free: 45.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009853/1.674, allocations: 2.149 MB / 0.8191 GB, free: 43.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.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 (215): * Single equations (assignments): 209 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008172/1.674, allocations: 213.3 kB / 0.8193 GB, free: 42.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0223/1.697, allocations: 14.47 MB / 0.8334 GB, free: 28.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/1.697, allocations: 2.953 kB / 0.8334 GB, free: 28.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008074/1.705, allocations: 5.008 MB / 0.8383 GB, free: 23.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006412/1.711, allocations: 0.992 MB / 0.8392 GB, free: 22.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2241/1.935, allocations: 20.41 MB / 0.8592 GB, free: 131.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01321/1.949, allocations: 5.466 MB / 0.8645 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002041/1.951, allocations: 449 kB / 0.8649 GB, free: 130.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/1.951, allocations: 0 / 0.8649 GB, free: 130.2 MB / 446.1 MB Notification: Performance of Templates: time 0.4745/2.425, allocations: 207.1 MB / 1.067 GB, free: 108.8 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches