Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.00106/0.00106, allocations: 115.4 kB / 17.69 MB, free: 5.312 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.001024/0.001024, allocations: 191 kB / 18.63 MB, free: 4.379 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009278/0.0009279, allocations: 49.3 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1013, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02196/0.1233, allocations: 19.42 MB / 370.9 MB, free: 212 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1791/0.3025, allocations: 5.973 MB / 376.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.306, allocations: 157 kB / 377.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009905/0.3159, allocations: 5.853 MB / 382.9 MB, free: 8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009159/0.3251, allocations: 3.34 MB / 386.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004256/0.3294, allocations: 1.561 MB / 387.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01745/0.3469, allocations: 12.36 MB / 400.2 MB, free: 224 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009189/0.3561, allocations: 7.651 MB / 407.8 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006637/0.3628, allocations: 3.561 MB / 411.4 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006402/0.3692, allocations: 4.734 MB / 416.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.3709, allocations: 0.7109 MB / 416.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.3747, allocations: 1.682 MB / 418.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004863/0.3796, allocations: 4.19 MB / 422.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008661/0.3883, allocations: 4.47 MB / 427.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01459/0.4029, allocations: 13.65 MB / 440.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.403, allocations: 0 / 440.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.403, allocations: 0 / 440.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003199/0.4033, allocations: 0 / 440.8 MB, free: 8.902 MB / 350.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.02038/0.4237, allocations: 9.666 MB / 450.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.4237, allocations: 15.89 kB / 450.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03888/0.4626, allocations: 5.238 MB / 455.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01881/0.4815, allocations: 8.058 MB / 463.8 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004143/0.4819, allocations: 424 kB / 464.2 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002281/0.4842, allocations: 0.5874 MB / 464.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03011/0.5143, allocations: 16.56 MB / 481.4 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003044/0.5147, allocations: 91.17 kB / 481.4 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008902/0.5156, allocations: 269.1 kB / 481.7 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004173/0.5197, allocations: 2.772 MB / 484.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02759/0.5474, allocations: 13.63 MB / 498.1 MB, free: 14.91 MB / 414.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.4402/0.9876, allocations: 67.72 MB / 0.5526 GB, free: 102.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0193/1.007, allocations: 7.9 MB / 0.5603 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005203/1.012, allocations: 4.515 MB / 0.5647 GB, free: 99.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0179/1.03, allocations: 12.41 MB / 0.5768 GB, free: 94.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/1.03, allocations: 59.66 kB / 0.5769 GB, free: 94.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.54e-06/1.03, allocations: 0 / 0.5769 GB, free: 94.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1541/1.184, allocations: 50.12 MB / 0.6258 GB, free: 53.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/1.185, allocations: 397.4 kB / 0.6262 GB, free: 52.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008849/1.193, allocations: 7.127 MB / 0.6332 GB, free: 45.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00081/1.194, allocations: 85.53 kB / 0.6332 GB, free: 45.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002387/1.197, allocations: 5.01 MB / 0.6381 GB, free: 40.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001255/1.198, allocations: 1.262 MB / 0.6394 GB, free: 39.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002248/1.2, allocations: 1.856 MB / 0.6412 GB, free: 37.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.506e-05/1.2, allocations: 309 kB / 0.6415 GB, free: 37.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005195/1.205, allocations: 4.547 MB / 0.6459 GB, free: 32.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007161/1.213, allocations: 9.267 MB / 0.655 GB, free: 21.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01421/1.227, allocations: 14.55 MB / 0.6692 GB, free: 4.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.732e-05/1.227, allocations: 48 kB / 0.6692 GB, free: 4.453 MB / 446.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04051/1.267, allocations: 19.75 MB / 0.6885 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.268, allocations: 75.94 kB / 0.6886 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001613/1.268, allocations: 160 kB / 0.6887 GB, free: 432 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02088/1.289, allocations: 7.056 MB / 0.6956 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006289/1.295, allocations: 1.922 MB / 0.6975 GB, free: 7.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2353/1.53, allocations: 35.31 MB / 0.732 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00751/1.538, allocations: 0.5824 MB / 0.7325 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001554/1.539, allocations: 0.4933 MB / 0.733 GB, free: 142.8 MB / 478.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 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1048): * Single equations (assignments): 1042 * 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.005464/1.545, allocations: 3.477 MB / 0.7364 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/1.546, allocations: 0.6313 MB / 0.737 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02438/1.571, allocations: 13.31 MB / 0.75 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.896e-05/1.571, allocations: 34.66 kB / 0.7501 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.081e-05/1.571, allocations: 19.19 kB / 0.7501 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.716e-05/1.571, allocations: 20.67 kB / 0.7501 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0438/1.615, allocations: 26.56 MB / 0.776 GB, free: 114 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.452e-05/1.615, allocations: 4 kB / 0.7761 GB, free: 114 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/1.617, allocations: 427 kB / 0.7765 GB, free: 113.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01753/1.634, allocations: 6.652 MB / 0.783 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008221/1.635, allocations: 60.69 kB / 0.783 GB, free: 106.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03772/1.673, allocations: 33.99 MB / 0.8162 GB, free: 72.75 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.673, allocations: 13.91 kB / 0.8162 GB, free: 72.73 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02957/1.702, allocations: 18.78 MB / 0.8346 GB, free: 54.11 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0023/1.705, allocations: 0.685 MB / 0.8352 GB, free: 53.41 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001623/1.706, allocations: 63.98 kB / 0.8353 GB, free: 53.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00348/1.71, allocations: 303.5 kB / 0.8356 GB, free: 53.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009186/1.711, allocations: 246.4 kB / 0.8358 GB, free: 52.81 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002945/1.711, allocations: 88 kB / 0.8359 GB, free: 52.72 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005545/1.717, allocations: 4.555 MB / 0.8403 GB, free: 48.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.717, allocations: 0 / 0.8403 GB, free: 48.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007876/1.725, allocations: 2.142 MB / 0.8424 GB, free: 46.06 MB / 478.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 (214): * Single equations (assignments): 208 * 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.0007027/1.725, allocations: 210.4 kB / 0.8426 GB, free: 45.86 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01707/1.742, allocations: 11.63 MB / 0.854 GB, free: 34.26 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/1.742, allocations: 0 / 0.854 GB, free: 34.26 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007651/1.75, allocations: 5 MB / 0.8589 GB, free: 29.22 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006139/1.756, allocations: 0.9877 MB / 0.8598 GB, free: 28.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2262/1.983, allocations: 19.54 MB / 0.8789 GB, free: 146.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008647/1.991, allocations: 5.529 MB / 0.8843 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006574/1.998, allocations: 2.603 MB / 0.8869 GB, free: 145.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00124/1.999, allocations: 392 kB / 0.8872 GB, free: 145.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.213e-06/1.999, allocations: 0 / 0.8872 GB, free: 145.7 MB / 478.1 MB Notification: Performance of Templates: time 0.1332/2.132, allocations: 91.07 MB / 0.9762 GB, free: 76.66 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches