Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 101.6 kB / 17.59 MB, free: 5.426 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.001056/0.001056, allocations: 191.6 kB / 18.51 MB, free: 4.504 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.368/1.368, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 50.52 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09216, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.188/0.2802, allocations: 20.5 MB / 371.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01352/0.2937, allocations: 6.188 MB / 377.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005594/0.2994, allocations: 172.7 kB / 377.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01206/0.3115, allocations: 6.349 MB / 383.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009938/0.3215, allocations: 3.429 MB / 387.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004327/0.3259, allocations: 1.668 MB / 389 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01764/0.3435, allocations: 12.66 MB / 401.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01075/0.3543, allocations: 8.068 MB / 409.8 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007653/0.362, allocations: 3.74 MB / 413.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007712/0.3698, allocations: 4.964 MB / 418.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0026/0.3724, allocations: 0.7422 MB / 419.2 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005255/0.3777, allocations: 1.713 MB / 420.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006006/0.3837, allocations: 4.357 MB / 425.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008879/0.3926, allocations: 4.659 MB / 429.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01652/0.4092, allocations: 13.85 MB / 443.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4092, allocations: 4 kB / 443.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4093, allocations: 0 / 443.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005271/0.4098, allocations: 0 / 443.8 MB, free: 5.77 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.0266/0.4364, allocations: 10.04 MB / 453.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.4365, allocations: 8.031 kB / 453.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04708/0.4836, allocations: 5.281 MB / 459.1 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01938/0.503, allocations: 8.055 MB / 467.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004469/0.5035, allocations: 448.2 kB / 467.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00279/0.5063, allocations: 0.6137 MB / 468.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03592/0.5422, allocations: 17.12 MB / 485.4 MB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004255/0.5427, allocations: 107.1 kB / 485.5 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001724/0.5445, allocations: 279.3 kB / 485.7 MB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004805/0.5493, allocations: 2.858 MB / 488.6 MB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03184/0.5811, allocations: 14.03 MB / 0.4908 GB, free: 10.27 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.4415/1.023, allocations: 70.01 MB / 0.5592 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02152/1.044, allocations: 8.231 MB / 0.5672 GB, free: 99.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005456/1.05, allocations: 4.637 MB / 0.5718 GB, free: 97.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01976/1.07, allocations: 12.77 MB / 0.5843 GB, free: 91.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/1.07, allocations: 67.28 kB / 0.5843 GB, free: 91.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=294): time 7.154e-06/1.07, allocations: 3.969 kB / 0.5843 GB, free: 91.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.1877/1.257, allocations: 52.5 MB / 0.6356 GB, free: 47.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/1.257, allocations: 394.2 kB / 0.636 GB, free: 46.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/1.268, allocations: 7.276 MB / 0.6431 GB, free: 39.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/1.269, allocations: 85.27 kB / 0.6431 GB, free: 39.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00319/1.272, allocations: 5.205 MB / 0.6482 GB, free: 34.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001909/1.274, allocations: 1.336 MB / 0.6495 GB, free: 32.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002923/1.277, allocations: 1.904 MB / 0.6514 GB, free: 30.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.823e-05/1.277, allocations: 308.9 kB / 0.6517 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005942/1.283, allocations: 4.711 MB / 0.6563 GB, free: 25.92 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008626/1.292, allocations: 9.542 MB / 0.6656 GB, free: 14.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01703/1.309, allocations: 15.01 MB / 0.6803 GB, free: 12.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000156/1.309, allocations: 48 kB / 0.6803 GB, free: 12.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.05313/1.362, allocations: 20.47 MB / 0.7003 GB, free: 8.199 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002411/1.362, allocations: 72 kB / 0.7004 GB, free: 8.129 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000309/1.363, allocations: 164.9 kB / 0.7005 GB, free: 7.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02425/1.387, allocations: 7.327 MB / 0.7077 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2081/1.595, allocations: 2 MB / 0.7096 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04879/1.644, allocations: 36.55 MB / 0.7453 GB, free: 139.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009213/1.653, allocations: 0.6084 MB / 0.7459 GB, free: 139.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001952/1.655, allocations: 0.5037 MB / 0.7464 GB, free: 139.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006572/1.662, allocations: 3.591 MB / 0.7499 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/1.663, allocations: 0.6521 MB / 0.7506 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02768/1.691, allocations: 13.94 MB / 0.7642 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.954e-05/1.691, allocations: 36 kB / 0.7642 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.374e-05/1.691, allocations: 23.94 kB / 0.7642 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.882e-05/1.691, allocations: 19.53 kB / 0.7643 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05806/1.75, allocations: 27.86 MB / 0.7915 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.99e-05/1.75, allocations: 4 kB / 0.7915 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002408/1.752, allocations: 474.5 kB / 0.7919 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02069/1.773, allocations: 6.977 MB / 0.7987 GB, free: 94.58 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001171/1.774, allocations: 63.98 kB / 0.7988 GB, free: 94.52 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04444/1.818, allocations: 35.36 MB / 0.8333 GB, free: 59.05 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.848e-06/1.818, allocations: 10.78 kB / 0.8333 GB, free: 59.04 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03729/1.856, allocations: 19.71 MB / 0.8526 GB, free: 39.45 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004458/1.86, allocations: 1.423 MB / 0.854 GB, free: 38.01 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002433/1.863, allocations: 67.84 kB / 0.854 GB, free: 37.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00507/1.868, allocations: 323.5 kB / 0.8543 GB, free: 37.63 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001397/1.869, allocations: 258.8 kB / 0.8546 GB, free: 37.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006185/1.87, allocations: 95.28 kB / 0.8547 GB, free: 37.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008396/1.878, allocations: 4.65 MB / 0.8592 GB, free: 32.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.878, allocations: 0 / 0.8592 GB, free: 32.67 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01119/1.89, allocations: 2.217 MB / 0.8614 GB, free: 30.45 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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,90,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.001269/1.891, allocations: 231.4 kB / 0.8616 GB, free: 30.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2133/2.104, allocations: 15.33 MB / 0.8766 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.605e-05/2.104, allocations: 1.844 kB / 0.8766 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01159/2.116, allocations: 5.278 MB / 0.8817 GB, free: 152.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007681/2.124, allocations: 1.022 MB / 0.8827 GB, free: 152.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04116/2.165, allocations: 21.13 MB / 0.9034 GB, free: 145.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009291/2.174, allocations: 5.658 MB / 0.9089 GB, free: 143.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/2.176, allocations: 460.5 kB / 0.9093 GB, free: 143.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/2.176, allocations: 0 / 0.9093 GB, free: 143.3 MB / 478.1 MB Notification: Performance of Templates: time 0.4544/2.63, allocations: 214.5 MB / 1.119 GB, free: 97.12 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches