Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001404/0.001404, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001785/0.001785, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 64.78 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1069, allocations: 50.54 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1854/0.2923, allocations: 19.36 MB / 376.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.3042, allocations: 5.981 MB / 382.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003403/0.3076, allocations: 158.4 kB / 383 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009814/0.3175, allocations: 5.829 MB / 388.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007971/0.3255, allocations: 3.294 MB / 392.2 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003273/0.3288, allocations: 1.572 MB / 393.7 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01741/0.3462, allocations: 12.68 MB / 406.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01005/0.3563, allocations: 7.66 MB / 414.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007178/0.3635, allocations: 3.536 MB / 417.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007765/0.3713, allocations: 4.732 MB / 422.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0022/0.3735, allocations: 0.7109 MB / 423 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004342/0.3779, allocations: 1.666 MB / 424.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004952/0.3828, allocations: 4.181 MB / 428.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007005/0.3899, allocations: 4.441 MB / 433.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01639/0.4063, allocations: 13.28 MB / 446.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4063, allocations: 0 / 446.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4063, allocations: 0 / 446.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004618/0.4068, allocations: 0 / 446.6 MB, free: 2.125 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.02433/0.4311, allocations: 9.649 MB / 456.3 MB, free: 8.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4312, allocations: 12.03 kB / 456.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04786/0.4791, allocations: 5.232 MB / 461.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/0.4982, allocations: 7.71 MB / 469.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004382/0.4987, allocations: 431.5 kB / 469.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002347/0.501, allocations: 0.5892 MB / 470.2 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03142/0.5325, allocations: 16.55 MB / 486.8 MB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002813/0.5328, allocations: 99.11 kB / 486.9 MB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007013/0.5335, allocations: 271.8 kB / 487.1 MB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004713/0.5382, allocations: 2.764 MB / 489.9 MB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03224/0.5705, allocations: 13.62 MB / 0.4917 GB, free: 7.953 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.4243/0.9948, allocations: 68.04 MB / 0.5582 GB, free: 97.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01993/1.015, allocations: 7.902 MB / 0.5659 GB, free: 95.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004907/1.02, allocations: 4.516 MB / 0.5703 GB, free: 93.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0189/1.039, allocations: 12.41 MB / 0.5824 GB, free: 88.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/1.039, allocations: 71.66 kB / 0.5825 GB, free: 88.06 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.43e-06/1.039, allocations: 0 / 0.5825 GB, free: 88.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1731/1.212, allocations: 50.11 MB / 0.6314 GB, free: 46.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.296e-05/1.212, allocations: 398.1 kB / 0.6318 GB, free: 45.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009476/1.222, allocations: 7.11 MB / 0.6388 GB, free: 38.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008091/1.222, allocations: 81.64 kB / 0.6388 GB, free: 38.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002548/1.225, allocations: 5.008 MB / 0.6437 GB, free: 33.42 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001269/1.226, allocations: 1.263 MB / 0.645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002225/1.228, allocations: 1.864 MB / 0.6468 GB, free: 30.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.572e-05/1.228, allocations: 305.1 kB / 0.6471 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004874/1.233, allocations: 4.547 MB / 0.6515 GB, free: 25.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006551/1.24, allocations: 9.262 MB / 0.6605 GB, free: 13.94 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01412/1.254, allocations: 14.55 MB / 0.6748 GB, free: 13.11 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.693e-05/1.254, allocations: 48 kB / 0.6748 GB, free: 13.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04368/1.298, allocations: 19.74 MB / 0.6941 GB, free: 9.27 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001322/1.298, allocations: 72.94 kB / 0.6941 GB, free: 9.199 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/1.298, allocations: 164 kB / 0.6943 GB, free: 9.039 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02211/1.32, allocations: 7.078 MB / 0.7012 GB, free: 1.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006722/1.327, allocations: 1.918 MB / 0.7031 GB, free: 20 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2401/1.567, allocations: 35.32 MB / 0.7376 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007389/1.575, allocations: 0.5809 MB / 0.7382 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001444/1.576, allocations: 0.4977 MB / 0.7386 GB, free: 135.3 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.006261/1.582, allocations: 3.47 MB / 0.742 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.584, allocations: 0.6324 MB / 0.7426 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0254/1.609, allocations: 13.31 MB / 0.7556 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-05/1.61, allocations: 38.16 kB / 0.7557 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-05/1.61, allocations: 25.06 kB / 0.7557 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.218e-05/1.61, allocations: 15.94 kB / 0.7557 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04338/1.653, allocations: 26.7 MB / 0.7818 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.387e-05/1.653, allocations: 8 kB / 0.7818 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/1.655, allocations: 419.3 kB / 0.7822 GB, free: 101.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0188/1.674, allocations: 6.661 MB / 0.7887 GB, free: 95.23 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008352/1.675, allocations: 63.98 kB / 0.7888 GB, free: 95.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03882/1.714, allocations: 34 MB / 0.822 GB, free: 61.04 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.714, allocations: 11.94 kB / 0.822 GB, free: 61.03 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03116/1.745, allocations: 18.77 MB / 0.8403 GB, free: 42.33 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002091/1.747, allocations: 0.6864 MB / 0.841 GB, free: 41.62 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/1.748, allocations: 64.06 kB / 0.841 GB, free: 41.56 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003207/1.751, allocations: 303.5 kB / 0.8413 GB, free: 41.26 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008155/1.752, allocations: 249.6 kB / 0.8416 GB, free: 41.02 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002495/1.752, allocations: 93.02 kB / 0.8417 GB, free: 40.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005833/1.758, allocations: 4.551 MB / 0.8461 GB, free: 36.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.758, allocations: 0 / 0.8461 GB, free: 36.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008369/1.767, allocations: 2.118 MB / 0.8482 GB, free: 34.29 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.000672/1.767, allocations: 226.4 kB / 0.8484 GB, free: 34.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0216/1.789, allocations: 14.43 MB / 0.8625 GB, free: 19.65 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/1.789, allocations: 0 / 0.8625 GB, free: 19.65 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008343/1.797, allocations: 5 MB / 0.8674 GB, free: 14.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/1.804, allocations: 0.9885 MB / 0.8683 GB, free: 13.63 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2374/2.041, allocations: 19.73 MB / 0.8876 GB, free: 143.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01298/2.054, allocations: 5.526 MB / 0.893 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006983/2.061, allocations: 2.606 MB / 0.8955 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/2.063, allocations: 386.8 kB / 0.8959 GB, free: 142.3 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/2.063, allocations: 1.656 kB / 0.8959 GB, free: 142.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1564/2.219, allocations: 98.78 MB / 0.9924 GB, free: 59.8 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches