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.0009193/0.0009189, allocations: 92.5 kB / 16.95 MB, free: 6.082 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.0008803/0.0008805, allocations: 175.3 kB / 17.83 MB, free: 5.711 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.383/1.383, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004955/0.0004958, allocations: 8 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1023, allocations: 47.59 MB / 328.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2687/0.371, allocations: 93.89 MB / 422.3 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04875/0.4198, allocations: 19.13 MB / 441.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02122/0.441, allocations: 470.8 kB / 441.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01703/0.4581, allocations: 4.903 MB / 446.7 MB, free: 216 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04095/0.4991, allocations: 14.59 MB / 461.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006891/0.506, allocations: 1.404 MB / 462.7 MB, free: 160 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3374/0.8434, allocations: 98.22 MB / 0.5478 GB, free: 78.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01315/0.8566, allocations: 8.924 MB / 0.5565 GB, free: 77.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007483/0.8642, allocations: 2.942 MB / 0.5594 GB, free: 77.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008391/0.8726, allocations: 4.455 MB / 0.5638 GB, free: 76.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002729/0.8754, allocations: 280 kB / 0.564 GB, free: 76.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004061/0.8795, allocations: 1.117 MB / 0.5651 GB, free: 75.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005683/0.8852, allocations: 3.714 MB / 0.5687 GB, free: 72.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003809/0.889, allocations: 1.562 MB / 0.5703 GB, free: 72.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01206/0.9011, allocations: 10.6 MB / 0.5806 GB, free: 62.99 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.9011, allocations: 3.828 kB / 0.5806 GB, free: 62.99 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.9011, allocations: 0 / 0.5806 GB, free: 62.99 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007308/0.9019, allocations: 0 / 0.5806 GB, free: 62.99 MB / 430.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.0193/0.9212, allocations: 8.123 MB / 0.5886 GB, free: 55.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.9213, allocations: 10.28 kB / 0.5886 GB, free: 55.45 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03784/0.9591, allocations: 5.365 MB / 0.5938 GB, free: 50.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01916/0.9783, allocations: 8.025 MB / 0.6016 GB, free: 44.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004347/0.9788, allocations: 433.4 kB / 0.6021 GB, free: 44.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003413/0.9822, allocations: 0.5827 MB / 0.6026 GB, free: 43.87 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03686/1.019, allocations: 16.58 MB / 0.6188 GB, free: 30.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006408/1.02, allocations: 101.5 kB / 0.6189 GB, free: 30.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003197/1.023, allocations: 266.9 kB / 0.6192 GB, free: 30.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004508/1.028, allocations: 2.762 MB / 0.6219 GB, free: 28.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03063/1.058, allocations: 13.63 MB / 0.6352 GB, free: 18.69 MB / 430.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.1002/1.158, allocations: 68.01 MB / 0.7016 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02112/1.18, allocations: 7.929 MB / 0.7093 GB, free: 5.426 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006413/1.186, allocations: 4.501 MB / 0.7137 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.361/1.547, allocations: 12.42 MB / 0.7259 GB, free: 200 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/1.547, allocations: 73.45 kB / 0.7259 GB, free: 199.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 5.47e-06/1.547, allocations: 1.156 kB / 0.7259 GB, free: 199.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=340): time 0.1615/1.709, allocations: 50.11 MB / 0.7749 GB, free: 166.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.709, allocations: 402 kB / 0.7752 GB, free: 166.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/1.719, allocations: 7.149 MB / 0.7822 GB, free: 159.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009486/1.72, allocations: 77.7 kB / 0.7823 GB, free: 159.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00312/1.723, allocations: 5.024 MB / 0.7872 GB, free: 154.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001875/1.725, allocations: 1.264 MB / 0.7884 GB, free: 152.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000776/1.726, allocations: 182.2 kB / 0.7886 GB, free: 152.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000419/1.726, allocations: 0.6865 MB / 0.7893 GB, free: 152 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005889/1.732, allocations: 4.511 MB / 0.7937 GB, free: 147.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009469/1.742, allocations: 9.233 MB / 0.8027 GB, free: 136 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008845/1.751, allocations: 6.267 MB / 0.8088 GB, free: 129.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001508/1.751, allocations: 48 kB / 0.8089 GB, free: 129.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03886/1.79, allocations: 19.69 MB / 0.8281 GB, free: 109.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000194/1.79, allocations: 75.95 kB / 0.8282 GB, free: 109.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002408/1.79, allocations: 160 kB / 0.8283 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01899/1.809, allocations: 7.075 MB / 0.8352 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00657/1.816, allocations: 1.93 MB / 0.8371 GB, free: 100.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04277/1.859, allocations: 33.21 MB / 0.8696 GB, free: 67.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01132/1.87, allocations: 0.5928 MB / 0.8701 GB, free: 66.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00223/1.872, allocations: 0.4921 MB / 0.8706 GB, free: 65.96 MB / 494.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007885/1.88, allocations: 3.481 MB / 0.874 GB, free: 62.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002031/1.882, allocations: 0.6382 MB / 0.8746 GB, free: 61.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02808/1.91, allocations: 13.31 MB / 0.8876 GB, free: 48.43 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-05/1.91, allocations: 39.83 kB / 0.8877 GB, free: 48.39 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.131e-05/1.91, allocations: 16 kB / 0.8877 GB, free: 48.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.903e-05/1.911, allocations: 23.89 kB / 0.8877 GB, free: 48.36 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3018/2.212, allocations: 26.7 MB / 0.9138 GB, free: 177.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-05/2.212, allocations: 6.828 kB / 0.9138 GB, free: 177.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/2.215, allocations: 427.2 kB / 0.9142 GB, free: 177.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0196/2.234, allocations: 6.674 MB / 0.9207 GB, free: 177.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009488/2.235, allocations: 66.91 kB / 0.9208 GB, free: 177.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03919/2.275, allocations: 31.95 MB / 0.952 GB, free: 166.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/2.275, allocations: 15.73 kB / 0.952 GB, free: 166.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03141/2.306, allocations: 18.73 MB / 0.9703 GB, free: 156.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003976/2.31, allocations: 1.395 MB / 0.9716 GB, free: 155.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001852/2.312, allocations: 60 kB / 0.9717 GB, free: 155.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004122/2.316, allocations: 316.4 kB / 0.972 GB, free: 155.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/2.317, allocations: 242.4 kB / 0.9722 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003207/2.318, allocations: 92.69 kB / 0.9723 GB, free: 154.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009119/2.327, allocations: 4.56 MB / 0.9768 GB, free: 150.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.7e-07/2.327, allocations: 0 / 0.9768 GB, free: 150.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01071/2.337, allocations: 2.148 MB / 0.9789 GB, free: 148.1 MB / 494.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009046/2.338, allocations: 216.9 kB / 0.9791 GB, free: 147.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01657/2.355, allocations: 11.51 MB / 0.9903 GB, free: 136.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/2.355, allocations: 0 / 0.9903 GB, free: 136.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007857/2.363, allocations: 4.996 MB / 0.9952 GB, free: 131.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008132/2.371, allocations: 0.9354 MB / 0.9961 GB, free: 130.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03342/2.404, allocations: 22.55 MB / 1.018 GB, free: 108.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006851/2.411, allocations: 5.555 MB / 1.024 GB, free: 102.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006855/2.418, allocations: 2.613 MB / 1.026 GB, free: 100 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/2.42, allocations: 398.1 kB / 1.026 GB, free: 99.62 MB / 494.1 MB Notification: Performance of SimCode: time 8.31e-07/2.42, allocations: 0 / 1.026 GB, free: 99.62 MB / 494.1 MB Notification: Performance of Templates: time 0.3569/2.777, allocations: 91.44 MB / 1.116 GB, free: 168.4 MB / 494.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches