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.001166/0.001166, allocations: 114.9 kB / 17.74 MB, free: 5.324 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.001076/0.001076, allocations: 188.4 kB / 18.67 MB, free: 4.398 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.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 47.94 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2884, allocations: 49.43 MB / 401.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02088/0.3093, allocations: 19.44 MB / 420.9 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01342/0.3228, allocations: 5.967 MB / 426.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003651/0.3265, allocations: 159.4 kB / 427 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.3374, allocations: 5.852 MB / 432.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009234/0.3467, allocations: 3.334 MB / 436.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003815/0.3506, allocations: 1.564 MB / 437.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01602/0.3666, allocations: 12.37 MB / 450.1 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01023/0.3769, allocations: 7.647 MB / 457.8 MB, free: 464 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006435/0.3834, allocations: 3.575 MB / 461.3 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007126/0.3905, allocations: 4.752 MB / 466.1 MB, free: 8.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002617/0.3932, allocations: 0.7109 MB / 466.8 MB, free: 7.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004683/0.3979, allocations: 1.69 MB / 468.5 MB, free: 5.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005578/0.4035, allocations: 4.275 MB / 472.8 MB, free: 1.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00714/0.4107, allocations: 4.472 MB / 477.2 MB, free: 12.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.4274, allocations: 13.65 MB / 490.9 MB, free: 15.22 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.4275, allocations: 0 / 490.9 MB, free: 15.22 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4275, allocations: 0 / 490.9 MB, free: 15.22 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004498/0.428, allocations: 3.984 kB / 490.9 MB, free: 15.21 MB / 414.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.023/0.451, allocations: 9.664 MB / 0.4888 GB, free: 5.465 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.451, allocations: 8.031 kB / 0.4888 GB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04584/0.4969, allocations: 5.24 MB / 0.4939 GB, free: 204 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01872/0.5156, allocations: 8.05 MB / 0.5018 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003673/0.516, allocations: 435.4 kB / 0.5022 GB, free: 7.656 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002021/0.5181, allocations: 0.5853 MB / 0.5028 GB, free: 7.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03001/0.5481, allocations: 16.55 MB / 0.519 GB, free: 5.465 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003871/0.5485, allocations: 103.1 kB / 0.5191 GB, free: 5.363 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001431/0.55, allocations: 267.8 kB / 0.5193 GB, free: 5.102 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004318/0.5543, allocations: 2.756 MB / 0.522 GB, free: 2.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02768/0.582, allocations: 13.63 MB / 0.5353 GB, free: 4.688 MB / 462.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.5201/1.102, allocations: 67.73 MB / 0.6015 GB, free: 70.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01823/1.12, allocations: 7.921 MB / 0.6092 GB, free: 62.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004771/1.125, allocations: 4.51 MB / 0.6136 GB, free: 57.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01711/1.142, allocations: 12.4 MB / 0.6257 GB, free: 45.13 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/1.142, allocations: 64.56 kB / 0.6258 GB, free: 45.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.741e-06/1.142, allocations: 2.344 kB / 0.6258 GB, free: 45.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1679/1.31, allocations: 50.13 MB / 0.6747 GB, free: 10.99 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001761/1.311, allocations: 398 kB / 0.6751 GB, free: 10.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/1.321, allocations: 7.123 MB / 0.6821 GB, free: 3.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008992/1.322, allocations: 81.61 kB / 0.6821 GB, free: 3.328 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003679/1.326, allocations: 5.025 MB / 0.687 GB, free: 14.24 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001709/1.327, allocations: 1.253 MB / 0.6883 GB, free: 12.97 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002945/1.33, allocations: 1.864 MB / 0.6901 GB, free: 11.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/1.33, allocations: 301.1 kB / 0.6904 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006511/1.337, allocations: 4.547 MB / 0.6948 GB, free: 6.238 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/1.347, allocations: 9.267 MB / 0.7039 GB, free: 10.68 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01765/1.365, allocations: 14.54 MB / 0.7181 GB, free: 9.859 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001401/1.365, allocations: 48 kB / 0.7181 GB, free: 9.812 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04264/1.408, allocations: 19.76 MB / 0.7374 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.408, allocations: 74.25 kB / 0.7375 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001935/1.408, allocations: 160 kB / 0.7376 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2736/1.681, allocations: 7.057 MB / 0.7445 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006389/1.688, allocations: 1.92 MB / 0.7464 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04108/1.729, allocations: 35.31 MB / 0.7809 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007923/1.737, allocations: 0.591 MB / 0.7815 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001625/1.739, allocations: 491.9 kB / 0.7819 GB, free: 165.9 MB / 0.5294 GB 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.005853/1.745, allocations: 3.47 MB / 0.7853 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.746, allocations: 0.6326 MB / 0.7859 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02557/1.771, allocations: 13.32 MB / 0.7989 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-05/1.772, allocations: 36 kB / 0.799 GB, free: 150 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.34e-05/1.772, allocations: 20 kB / 0.799 GB, free: 150 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.767e-05/1.772, allocations: 14.3 kB / 0.799 GB, free: 150 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04475/1.816, allocations: 26.56 MB / 0.825 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.275e-05/1.817, allocations: 11.98 kB / 0.825 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002023/1.819, allocations: 419.2 kB / 0.8254 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01874/1.837, allocations: 6.652 MB / 0.8319 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007969/1.838, allocations: 56 kB / 0.8319 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03894/1.877, allocations: 33.98 MB / 0.8651 GB, free: 81.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.877, allocations: 15.92 kB / 0.8651 GB, free: 81.92 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03283/1.91, allocations: 18.78 MB / 0.8834 GB, free: 63.18 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002287/1.912, allocations: 0.6894 MB / 0.8841 GB, free: 62.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002569/1.915, allocations: 60 kB / 0.8842 GB, free: 62.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005007/1.92, allocations: 303.5 kB / 0.8845 GB, free: 62.12 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001512/1.922, allocations: 250.6 kB / 0.8847 GB, free: 61.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006327/1.922, allocations: 91.83 kB / 0.8848 GB, free: 61.78 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007634/1.93, allocations: 4.555 MB / 0.8892 GB, free: 57.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/1.93, allocations: 1.969 kB / 0.8892 GB, free: 57.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009496/1.939, allocations: 2.142 MB / 0.8913 GB, free: 55.12 MB / 0.5294 GB 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.0008391/1.94, allocations: 210.6 kB / 0.8915 GB, free: 54.91 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0163/1.957, allocations: 11.62 MB / 0.9029 GB, free: 43.26 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/1.957, allocations: 0 / 0.9029 GB, free: 43.26 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007919/1.965, allocations: 5.007 MB / 0.9078 GB, free: 38.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006451/1.971, allocations: 0.9934 MB / 0.9087 GB, free: 37.22 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0327/2.004, allocations: 20.13 MB / 0.9284 GB, free: 17 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007041/2.011, allocations: 5.453 MB / 0.9337 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001759/2.013, allocations: 443.4 kB / 0.9342 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/2.013, allocations: 0 / 0.9342 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of Templates: time 0.6803/2.693, allocations: 207.5 MB / 1.137 GB, free: 179.3 MB / 0.545 GB 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 -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