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.001167/0.001167, allocations: 112.6 kB / 17.06 MB, free: 5.973 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.001289/0.001289, allocations: 200 kB / 18 MB, free: 5.055 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 47.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2448, allocations: 49.44 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01924/0.264, allocations: 19.44 MB / 420.2 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.2765, allocations: 5.963 MB / 426.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003652/0.2802, allocations: 159.4 kB / 426.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0113/0.2915, allocations: 5.852 MB / 432.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.3027, allocations: 3.44 MB / 435.6 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003912/0.3066, allocations: 1.564 MB / 437.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0162/0.3228, allocations: 12.37 MB / 449.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.3331, allocations: 7.643 MB / 457.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00612/0.3392, allocations: 3.571 MB / 460.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006952/0.3462, allocations: 4.756 MB / 465.5 MB, free: 7.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002329/0.3486, allocations: 0.7148 MB / 466.2 MB, free: 7.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004848/0.3535, allocations: 1.686 MB / 467.9 MB, free: 5.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006465/0.36, allocations: 4.275 MB / 472.2 MB, free: 1.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009592/0.3696, allocations: 4.464 MB / 476.6 MB, free: 12.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01637/0.386, allocations: 13.66 MB / 490.3 MB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.386, allocations: 0 / 490.3 MB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.386, allocations: 0 / 490.3 MB, free: 14.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004437/0.3865, allocations: 0 / 490.3 MB, free: 14.98 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.0223/0.4088, allocations: 9.664 MB / 500 MB, free: 5.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.4089, allocations: 12.02 kB / 500 MB, free: 5.211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04761/0.4565, allocations: 5.236 MB / 0.4934 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0192/0.4757, allocations: 8.058 MB / 0.5012 GB, free: 7.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000338/0.4761, allocations: 431.4 kB / 0.5017 GB, free: 7.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001753/0.4778, allocations: 0.5892 MB / 0.5022 GB, free: 6.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03268/0.5105, allocations: 16.56 MB / 0.5184 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003451/0.5109, allocations: 99.11 kB / 0.5185 GB, free: 5.109 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001149/0.5121, allocations: 263.8 kB / 0.5187 GB, free: 4.852 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004535/0.5166, allocations: 2.764 MB / 0.5214 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03003/0.5467, allocations: 13.62 MB / 0.5347 GB, free: 4.445 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.4454/0.9922, allocations: 67.74 MB / 0.6009 GB, free: 69.76 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.018/1.01, allocations: 7.909 MB / 0.6086 GB, free: 61.76 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004592/1.015, allocations: 4.515 MB / 0.613 GB, free: 57.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/1.031, allocations: 12.4 MB / 0.6251 GB, free: 44.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/1.031, allocations: 60.56 kB / 0.6252 GB, free: 44.69 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 6.182e-06/1.031, allocations: 1.969 kB / 0.6252 GB, free: 44.69 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1721/1.203, allocations: 50.15 MB / 0.6742 GB, free: 10.61 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/1.203, allocations: 402.1 kB / 0.6745 GB, free: 10.13 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/1.214, allocations: 7.119 MB / 0.6815 GB, free: 3.027 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001072/1.215, allocations: 77.7 kB / 0.6816 GB, free: 2.945 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00402/1.219, allocations: 5.013 MB / 0.6865 GB, free: 13.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002031/1.221, allocations: 1.265 MB / 0.6877 GB, free: 12.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002825/1.224, allocations: 1.852 MB / 0.6895 GB, free: 10.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.027e-05/1.224, allocations: 313.1 kB / 0.6898 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006632/1.231, allocations: 4.543 MB / 0.6942 GB, free: 5.867 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/1.241, allocations: 9.267 MB / 0.7033 GB, free: 10.31 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01977/1.26, allocations: 14.54 MB / 0.7175 GB, free: 9.496 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001876/1.261, allocations: 48 kB / 0.7175 GB, free: 9.449 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04779/1.309, allocations: 19.75 MB / 0.7368 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002358/1.309, allocations: 79.92 kB / 0.7369 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003052/1.309, allocations: 164 kB / 0.7371 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2696/1.579, allocations: 7.051 MB / 0.7439 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006441/1.585, allocations: 1.926 MB / 0.7458 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04515/1.63, allocations: 35.32 MB / 0.7803 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007264/1.638, allocations: 0.5787 MB / 0.7809 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009719/1.639, allocations: 498.3 kB / 0.7814 GB, free: 165.5 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.004402/1.643, allocations: 3.466 MB / 0.7847 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/1.644, allocations: 0.6313 MB / 0.7854 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02555/1.67, allocations: 13.32 MB / 0.7984 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.778e-05/1.67, allocations: 39.83 kB / 0.7984 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.953e-05/1.67, allocations: 20 kB / 0.7984 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.905e-05/1.67, allocations: 11.95 kB / 0.7984 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04227/1.712, allocations: 26.56 MB / 0.8244 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-05/1.712, allocations: 11.98 kB / 0.8244 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001883/1.714, allocations: 411.4 kB / 0.8248 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01885/1.733, allocations: 6.649 MB / 0.8313 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006499/1.734, allocations: 60 kB / 0.8313 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03814/1.772, allocations: 34 MB / 0.8645 GB, free: 81.42 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/1.772, allocations: 8 kB / 0.8645 GB, free: 81.41 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03054/1.802, allocations: 18.79 MB / 0.8829 GB, free: 62.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/1.804, allocations: 0.6903 MB / 0.8836 GB, free: 61.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.805, allocations: 65.98 kB / 0.8836 GB, free: 61.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003457/1.809, allocations: 303.5 kB / 0.8839 GB, free: 61.63 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008819/1.81, allocations: 243.6 kB / 0.8841 GB, free: 61.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002732/1.81, allocations: 88.19 kB / 0.8842 GB, free: 61.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006035/1.816, allocations: 4.559 MB / 0.8887 GB, free: 56.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/1.816, allocations: 0 / 0.8887 GB, free: 56.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008761/1.825, allocations: 2.137 MB / 0.8908 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.0007109/1.825, allocations: 224.8 kB / 0.891 GB, free: 54.42 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01726/1.843, allocations: 11.62 MB / 0.9023 GB, free: 42.77 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/1.843, allocations: 0 / 0.9023 GB, free: 42.77 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007969/1.851, allocations: 5 MB / 0.9072 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.006258/1.857, allocations: 0.9919 MB / 0.9082 GB, free: 36.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03495/1.892, allocations: 19.54 MB / 0.9273 GB, free: 17.12 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007434/1.899, allocations: 5.531 MB / 0.9327 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005913/1.905, allocations: 2.597 MB / 0.9352 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.907, allocations: 395.4 kB / 0.9356 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/1.907, allocations: 0 / 0.9356 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of Templates: time 0.364/2.271, allocations: 93.94 MB / 1.027 GB, free: 104.5 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/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