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.001256/0.001255, allocations: 115.6 kB / 17.74 MB, free: 5.203 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.001329/0.001329, allocations: 193.5 kB / 18.67 MB, free: 4.277 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.338/1.338, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 47.92 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3074, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01856/0.326, allocations: 19.42 MB / 420.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.3388, allocations: 5.969 MB / 426.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003787/0.3426, allocations: 159.4 kB / 427 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01024/0.3529, allocations: 5.852 MB / 432.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008087/0.361, allocations: 3.336 MB / 436.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0034/0.3644, allocations: 1.564 MB / 437.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01648/0.3809, allocations: 12.37 MB / 450.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01005/0.391, allocations: 7.64 MB / 457.7 MB, free: 292 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00677/0.3978, allocations: 3.579 MB / 461.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007435/0.4053, allocations: 4.748 MB / 466.1 MB, free: 7.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002411/0.4078, allocations: 0.7109 MB / 466.8 MB, free: 7.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0042/0.412, allocations: 1.697 MB / 468.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005323/0.4173, allocations: 4.271 MB / 472.7 MB, free: 1.242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007161/0.4245, allocations: 4.464 MB / 477.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01643/0.441, allocations: 13.66 MB / 490.9 MB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.4411, allocations: 3.938 kB / 490.9 MB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4411, allocations: 0 / 490.9 MB, free: 15.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005043/0.4416, allocations: 0 / 490.9 MB, free: 15.05 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.02531/0.4669, allocations: 9.672 MB / 0.4888 GB, free: 5.285 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.467, allocations: 8.031 kB / 0.4888 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04208/0.5091, allocations: 5.236 MB / 0.4939 GB, free: 24 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0213/0.5304, allocations: 8.054 MB / 0.5018 GB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004787/0.5309, allocations: 439.4 kB / 0.5022 GB, free: 7.473 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002451/0.5334, allocations: 0.5814 MB / 0.5028 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03268/0.5661, allocations: 16.55 MB / 0.519 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003579/0.5665, allocations: 103.1 kB / 0.5191 GB, free: 5.184 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001423/0.5679, allocations: 263.8 kB / 0.5193 GB, free: 4.926 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004333/0.5723, allocations: 2.764 MB / 0.522 GB, free: 2.156 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02833/0.6006, allocations: 13.63 MB / 0.5353 GB, free: 4.508 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.5005/1.101, allocations: 67.73 MB / 0.6014 GB, free: 69.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01729/1.119, allocations: 7.922 MB / 0.6092 GB, free: 61.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004663/1.123, allocations: 4.518 MB / 0.6136 GB, free: 57.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01703/1.14, allocations: 12.39 MB / 0.6257 GB, free: 44.79 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/1.14, allocations: 68.44 kB / 0.6258 GB, free: 44.72 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.931e-06/1.14, allocations: 0 / 0.6258 GB, free: 44.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1663/1.307, allocations: 50.14 MB / 0.6747 GB, free: 10.65 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001874/1.307, allocations: 394.1 kB / 0.6751 GB, free: 10.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/1.318, allocations: 7.119 MB / 0.682 GB, free: 3.074 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009164/1.319, allocations: 81.69 kB / 0.6821 GB, free: 2.988 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00425/1.324, allocations: 5.025 MB / 0.687 GB, free: 13.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001953/1.326, allocations: 1.257 MB / 0.6883 GB, free: 12.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003538/1.329, allocations: 1.864 MB / 0.6901 GB, free: 10.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.363e-05/1.329, allocations: 305.1 kB / 0.6904 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006759/1.336, allocations: 4.539 MB / 0.6948 GB, free: 5.902 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01091/1.347, allocations: 9.267 MB / 0.7039 GB, free: 10.34 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01943/1.366, allocations: 14.55 MB / 0.7181 GB, free: 9.516 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001553/1.367, allocations: 52 kB / 0.7181 GB, free: 9.465 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04652/1.413, allocations: 19.74 MB / 0.7374 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002045/1.413, allocations: 82.64 kB / 0.7375 GB, free: 5.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002749/1.414, allocations: 160 kB / 0.7376 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.269/1.683, allocations: 7.054 MB / 0.7445 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00636/1.689, allocations: 1.922 MB / 0.7464 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04158/1.731, allocations: 35.31 MB / 0.7809 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008438/1.739, allocations: 0.5852 MB / 0.7814 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001683/1.741, allocations: 0.4939 MB / 0.7819 GB, free: 165.6 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.006448/1.747, allocations: 3.479 MB / 0.7853 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001608/1.749, allocations: 0.63 MB / 0.7859 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02518/1.774, allocations: 13.31 MB / 0.7989 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.068e-05/1.774, allocations: 39.94 kB / 0.799 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.178e-05/1.774, allocations: 20 kB / 0.799 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.629e-05/1.774, allocations: 15.94 kB / 0.799 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04503/1.819, allocations: 26.56 MB / 0.8249 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-05/1.819, allocations: 8 kB / 0.825 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/1.821, allocations: 423.1 kB / 0.8254 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01784/1.839, allocations: 6.646 MB / 0.8318 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009148/1.84, allocations: 60 kB / 0.8319 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03757/1.878, allocations: 33.99 MB / 0.8651 GB, free: 81.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/1.878, allocations: 11.94 kB / 0.8651 GB, free: 81.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03054/1.908, allocations: 18.78 MB / 0.8834 GB, free: 62.71 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002148/1.911, allocations: 0.6943 MB / 0.8841 GB, free: 62 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002178/1.913, allocations: 67.34 kB / 0.8842 GB, free: 61.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004423/1.917, allocations: 307.5 kB / 0.8845 GB, free: 61.64 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001329/1.919, allocations: 242.5 kB / 0.8847 GB, free: 61.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004341/1.919, allocations: 96.19 kB / 0.8848 GB, free: 61.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00734/1.926, allocations: 4.555 MB / 0.8892 GB, free: 56.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.21e-07/1.927, allocations: 0 / 0.8892 GB, free: 56.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009989/1.937, allocations: 2.138 MB / 0.8913 GB, free: 54.64 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.001015/1.938, allocations: 217.2 kB / 0.8915 GB, free: 54.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01752/1.955, allocations: 11.61 MB / 0.9029 GB, free: 42.79 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/1.955, allocations: 0 / 0.9029 GB, free: 42.79 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008113/1.963, allocations: 5.016 MB / 0.9078 GB, free: 37.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008068/1.971, allocations: 0.9851 MB / 0.9087 GB, free: 36.76 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03722/2.009, allocations: 20.14 MB / 0.9284 GB, free: 16.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009384/2.018, allocations: 5.461 MB / 0.9337 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/2.02, allocations: 443.4 kB / 0.9342 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of SimCode: time 1.132e-06/2.02, allocations: 0 / 0.9342 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of Templates: time 0.7337/2.754, allocations: 208.6 MB / 1.138 GB, free: 179.9 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