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.00142/0.00142, allocations: 106.3 kB / 17.06 MB, free: 6.102 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.001236/0.001236, allocations: 194.9 kB / 18 MB, free: 5.176 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000951/0.000951, allocations: 43.92 kB / 351.3 MB, free: 3.164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2805, allocations: 49.43 MB / 400.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02081/0.3013, allocations: 20.53 MB / 421.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01427/0.3156, allocations: 6.179 MB / 427.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004229/0.3199, allocations: 171.4 kB / 427.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01141/0.3313, allocations: 6.347 MB / 434 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009586/0.341, allocations: 3.547 MB / 437.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004435/0.3455, allocations: 1.658 MB / 439.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01868/0.3641, allocations: 12.66 MB / 451.9 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.3747, allocations: 8.058 MB / 459.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007564/0.3823, allocations: 3.751 MB / 463.7 MB, free: 9.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007183/0.3896, allocations: 4.974 MB / 468.6 MB, free: 4.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002092/0.3917, allocations: 0.7461 MB / 469.4 MB, free: 3.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003912/0.3956, allocations: 1.717 MB / 471.1 MB, free: 2.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004811/0.4004, allocations: 4.462 MB / 475.6 MB, free: 13.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006368/0.4068, allocations: 4.662 MB / 480.2 MB, free: 9.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01586/0.4227, allocations: 14.18 MB / 494.4 MB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4227, allocations: 4 kB / 494.4 MB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4227, allocations: 4 kB / 494.4 MB, free: 10.83 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004574/0.4232, allocations: 0 / 494.4 MB, free: 10.83 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02405/0.4473, allocations: 10.02 MB / 0.4926 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.4473, allocations: 8.031 kB / 0.4926 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03873/0.4861, allocations: 5.275 MB / 0.4978 GB, free: 11.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/0.5045, allocations: 8.251 MB / 0.5058 GB, free: 3.102 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004583/0.505, allocations: 448 kB / 0.5063 GB, free: 2.664 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002393/0.5074, allocations: 0.6165 MB / 0.5069 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03091/0.5383, allocations: 17.13 MB / 0.5236 GB, free: 15.86 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002802/0.5386, allocations: 103 kB / 0.5237 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007806/0.5394, allocations: 271.8 kB / 0.5239 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00408/0.5435, allocations: 2.87 MB / 0.5267 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4643/1.008, allocations: 14.03 MB / 0.5404 GB, free: 118.3 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.08116/1.089, allocations: 69.68 MB / 0.6085 GB, free: 61.47 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0187/1.108, allocations: 8.225 MB / 0.6165 GB, free: 53.15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004776/1.113, allocations: 4.633 MB / 0.621 GB, free: 48.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01642/1.129, allocations: 12.77 MB / 0.6335 GB, free: 35.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/1.129, allocations: 68.5 kB / 0.6336 GB, free: 35.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.771e-06/1.129, allocations: 0 / 0.6336 GB, free: 35.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1733/1.302, allocations: 52.52 MB / 0.6849 GB, free: 15.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/1.303, allocations: 398.2 kB / 0.6853 GB, free: 14.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0129/1.316, allocations: 7.276 MB / 0.6924 GB, free: 7.352 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008914/1.316, allocations: 85.61 kB / 0.6924 GB, free: 7.266 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004147/1.321, allocations: 5.2 MB / 0.6975 GB, free: 2.004 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002057/1.323, allocations: 1.334 MB / 0.6988 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005115/1.328, allocations: 1.912 MB / 0.7007 GB, free: 14.73 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 8.935e-05/1.328, allocations: 301.1 kB / 0.701 GB, free: 14.43 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007554/1.335, allocations: 4.711 MB / 0.7056 GB, free: 9.711 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01171/1.347, allocations: 9.546 MB / 0.7149 GB, free: 13.82 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02146/1.369, allocations: 15 MB / 0.7295 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001655/1.369, allocations: 52 kB / 0.7296 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.3158/1.685, allocations: 20.46 MB / 0.7496 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.685, allocations: 74.72 kB / 0.7496 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002403/1.685, allocations: 165.2 kB / 0.7498 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02018/1.705, allocations: 7.31 MB / 0.7569 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006309/1.712, allocations: 2.008 MB / 0.7589 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04155/1.753, allocations: 36.53 MB / 0.7946 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008142/1.761, allocations: 0.6086 MB / 0.7952 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001624/1.763, allocations: 0.4999 MB / 0.7957 GB, free: 149.8 MB / 0.5294 GB 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.005967/1.769, allocations: 3.599 MB / 0.7992 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001596/1.771, allocations: 0.6532 MB / 0.7998 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02581/1.796, allocations: 13.94 MB / 0.8134 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.526e-05/1.797, allocations: 36 kB / 0.8135 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.035e-05/1.797, allocations: 24.86 kB / 0.8135 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.293e-05/1.797, allocations: 23.09 kB / 0.8135 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04936/1.846, allocations: 27.68 MB / 0.8405 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.35e-05/1.846, allocations: 4.688 kB / 0.8405 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/1.848, allocations: 485.8 kB / 0.841 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01889/1.867, allocations: 6.964 MB / 0.8478 GB, free: 96.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000876/1.868, allocations: 60.25 kB / 0.8479 GB, free: 96.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04304/1.911, allocations: 35.35 MB / 0.8824 GB, free: 61.03 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.017e-05/1.911, allocations: 8 kB / 0.8824 GB, free: 61.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0349/1.946, allocations: 19.71 MB / 0.9016 GB, free: 41.49 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004458/1.951, allocations: 1.423 MB / 0.903 GB, free: 40.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003073/1.954, allocations: 71.92 kB / 0.9031 GB, free: 40.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005354/1.959, allocations: 317.2 kB / 0.9034 GB, free: 39.71 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001543/1.961, allocations: 254.9 kB / 0.9036 GB, free: 39.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007347/1.962, allocations: 99.42 kB / 0.9037 GB, free: 39.37 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00925/1.971, allocations: 4.646 MB / 0.9083 GB, free: 34.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.01e-07/1.971, allocations: 4 kB / 0.9083 GB, free: 34.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01118/1.982, allocations: 2.217 MB / 0.9104 GB, free: 32.54 MB / 0.5294 GB 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.001125/1.983, allocations: 229.3 kB / 0.9107 GB, free: 32.31 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.019/2.002, allocations: 12.03 MB / 0.9224 GB, free: 20.25 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.892e-05/2.002, allocations: 0.9375 kB / 0.9224 GB, free: 20.25 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00958/2.012, allocations: 5.296 MB / 0.9276 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00974/2.022, allocations: 1.02 MB / 0.9286 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3225/2.344, allocations: 20.29 MB / 0.9484 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008472/2.353, allocations: 5.732 MB / 0.954 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005871/2.359, allocations: 2.703 MB / 0.9566 GB, free: 173 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/2.36, allocations: 401.9 kB / 0.957 GB, free: 173 MB / 0.5294 GB Notification: Performance of SimCode: time 9.01e-07/2.36, allocations: 3.5 kB / 0.957 GB, free: 173 MB / 0.5294 GB Notification: Performance of Templates: time 0.141/2.501, allocations: 98.3 MB / 1.053 GB, free: 84.4 MB / 0.5294 GB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/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