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.001388/0.001388, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.001494/0.001494, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.358/1.358, allocations: 222.9 MB / 241.8 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 51.14 kB / 300.6 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.09189, allocations: 49.44 MB / 350.1 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2698/0.3617, allocations: 103.3 MB / 453.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04554/0.4073, allocations: 19.94 MB / 473.3 MB, free: 9.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02306/0.4304, allocations: 474.8 kB / 473.8 MB, free: 8.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.4412, allocations: 5.86 MB / 479.7 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008231/0.4495, allocations: 3.158 MB / 482.8 MB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00334/0.4529, allocations: 1.455 MB / 484.3 MB, free: 14.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02144/0.4743, allocations: 17.32 MB / 0.4898 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01025/0.4846, allocations: 7.477 MB / 0.4971 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006738/0.4914, allocations: 3.196 MB / 0.5002 GB, free: 2.285 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007763/0.4992, allocations: 5.059 MB / 0.5052 GB, free: 13.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002299/0.5015, allocations: 480 kB / 0.5056 GB, free: 12.74 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004024/0.5055, allocations: 1.518 MB / 0.5071 GB, free: 11.22 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005205/0.5108, allocations: 4.013 MB / 0.511 GB, free: 7.199 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008281/0.5191, allocations: 4.218 MB / 0.5152 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.5312, allocations: 10.83 MB / 0.5257 GB, free: 8.102 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.5312, allocations: 0 / 0.5257 GB, free: 8.102 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5312, allocations: 0 / 0.5257 GB, free: 8.102 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000491/0.5317, allocations: 0 / 0.5257 GB, free: 8.102 MB / 446.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.3685/0.9002, allocations: 9.659 MB / 0.5352 GB, free: 153.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.734e-05/0.9004, allocations: 9.562 kB / 0.5352 GB, free: 153.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06323/0.9636, allocations: 5.235 MB / 0.5403 GB, free: 152.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0196/0.9833, allocations: 7.876 MB / 0.548 GB, free: 148.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005146/0.9838, allocations: 427.3 kB / 0.5484 GB, free: 148.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002379/0.9862, allocations: 0.5893 MB / 0.549 GB, free: 148.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02962/1.016, allocations: 16.55 MB / 0.5651 GB, free: 135.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000296/1.016, allocations: 95.17 kB / 0.5652 GB, free: 135 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001053/1.017, allocations: 267.8 kB / 0.5655 GB, free: 134.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003582/1.021, allocations: 2.773 MB / 0.5682 GB, free: 132 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/1.046, allocations: 13.63 MB / 0.5815 GB, free: 118.4 MB / 446.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.07885/1.125, allocations: 68.05 MB / 0.648 GB, free: 48.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01754/1.143, allocations: 7.914 MB / 0.6557 GB, free: 40.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004545/1.147, allocations: 4.518 MB / 0.6601 GB, free: 35.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01658/1.164, allocations: 12.4 MB / 0.6722 GB, free: 23.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/1.164, allocations: 68.56 kB / 0.6723 GB, free: 23.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 6.121e-06/1.164, allocations: 0 / 0.6723 GB, free: 23.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.3762/1.54, allocations: 50.11 MB / 0.7212 GB, free: 152.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001751/1.54, allocations: 401.6 kB / 0.7216 GB, free: 152.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01283/1.553, allocations: 7.13 MB / 0.7286 GB, free: 150.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001029/1.554, allocations: 74.8 kB / 0.7286 GB, free: 150.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003658/1.558, allocations: 5.022 MB / 0.7335 GB, free: 146.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001928/1.56, allocations: 1.261 MB / 0.7348 GB, free: 145.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003025/1.563, allocations: 1.856 MB / 0.7366 GB, free: 144.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.655e-05/1.563, allocations: 304.5 kB / 0.7369 GB, free: 144.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006113/1.569, allocations: 4.544 MB / 0.7413 GB, free: 142.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009019/1.578, allocations: 9.27 MB / 0.7504 GB, free: 134.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01575/1.594, allocations: 14.53 MB / 0.7645 GB, free: 122.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001806/1.594, allocations: 44 kB / 0.7646 GB, free: 122.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03875/1.633, allocations: 19.76 MB / 0.7839 GB, free: 102.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/1.633, allocations: 76.03 kB / 0.784 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/1.633, allocations: 160 kB / 0.7841 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01898/1.652, allocations: 7.055 MB / 0.791 GB, free: 95.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005578/1.658, allocations: 1.93 MB / 0.7929 GB, free: 93.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03832/1.696, allocations: 33.15 MB / 0.8253 GB, free: 59.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008072/1.704, allocations: 0.5888 MB / 0.8258 GB, free: 59.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001736/1.706, allocations: 496 kB / 0.8263 GB, free: 58.92 MB / 462.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.006192/1.712, allocations: 3.467 MB / 0.8297 GB, free: 55.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001662/1.714, allocations: 0.6364 MB / 0.8303 GB, free: 54.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02482/1.739, allocations: 13.31 MB / 0.8433 GB, free: 41.41 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.849e-05/1.739, allocations: 43.94 kB / 0.8434 GB, free: 41.37 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.812e-05/1.739, allocations: 20 kB / 0.8434 GB, free: 41.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.608e-05/1.739, allocations: 18.38 kB / 0.8434 GB, free: 41.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04627/1.785, allocations: 26.71 MB / 0.8695 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-05/1.785, allocations: 4.75 kB / 0.8695 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.787, allocations: 427.3 kB / 0.8699 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2178/2.005, allocations: 6.663 MB / 0.8764 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008187/2.006, allocations: 63.55 kB / 0.8764 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04144/2.048, allocations: 31.9 MB / 0.9076 GB, free: 126.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/2.048, allocations: 9.594 kB / 0.9076 GB, free: 126.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03202/2.08, allocations: 18.77 MB / 0.9259 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002404/2.082, allocations: 0.6858 MB / 0.9266 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002244/2.084, allocations: 67.92 kB / 0.9267 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004556/2.089, allocations: 307.2 kB / 0.927 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/2.09, allocations: 242.4 kB / 0.9272 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003471/2.091, allocations: 91.98 kB / 0.9273 GB, free: 116.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007069/2.098, allocations: 4.552 MB / 0.9317 GB, free: 112.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.51e-07/2.098, allocations: 0 / 0.9317 GB, free: 112.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009889/2.108, allocations: 2.137 MB / 0.9338 GB, free: 110.1 MB / 462.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.0009468/2.109, allocations: 217 kB / 0.934 GB, free: 109.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01638/2.125, allocations: 11.58 MB / 0.9453 GB, free: 98.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/2.125, allocations: 0 / 0.9453 GB, free: 98.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007862/2.133, allocations: 4.995 MB / 0.9502 GB, free: 93.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007982/2.141, allocations: 0.9363 MB / 0.9511 GB, free: 92.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03814/2.179, allocations: 23.79 MB / 0.9744 GB, free: 68.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009363/2.188, allocations: 5.457 MB / 0.9797 GB, free: 63.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001877/2.19, allocations: 447.4 kB / 0.9801 GB, free: 62.77 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/2.19, allocations: 0 / 0.9801 GB, free: 62.77 MB / 462.1 MB Notification: Performance of Templates: time 0.4129/2.603, allocations: 206.4 MB / 1.182 GB, free: 6.766 MB / 462.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 -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