Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 122.6 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 207.7 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 227.7 MB / 247.9 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 71.88 kB / 359.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2479, allocations: 50.53 MB / 410.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02207/0.27, allocations: 19.44 MB / 429.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01352/0.2835, allocations: 5.993 MB / 435.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.2865, allocations: 155.4 kB / 435.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.297, allocations: 5.883 MB / 441.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007532/0.3045, allocations: 3.397 MB / 445.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.3075, allocations: 1.572 MB / 446.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01733/0.3248, allocations: 12.66 MB / 459.3 MB, free: 192 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008351/0.3332, allocations: 6.409 MB / 465.7 MB, free: 9.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006504/0.3397, allocations: 3.579 MB / 469.3 MB, free: 6.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007917/0.3476, allocations: 4.74 MB / 474.1 MB, free: 1.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00173/0.3493, allocations: 0.7148 MB / 474.8 MB, free: 0.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.3529, allocations: 1.674 MB / 476.4 MB, free: 14.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004345/0.3573, allocations: 4.305 MB / 480.8 MB, free: 10.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004841/0.3621, allocations: 4.445 MB / 485.2 MB, free: 6.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.3772, allocations: 13.65 MB / 498.8 MB, free: 8.461 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3772, allocations: 0 / 498.8 MB, free: 8.461 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3772, allocations: 0 / 498.8 MB, free: 8.461 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003231/0.3775, allocations: 0 / 498.8 MB, free: 8.461 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.02147/0.399, allocations: 9.914 MB / 0.4968 GB, free: 14.44 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.3991, allocations: 8.031 kB / 0.4968 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04582/0.4449, allocations: 5.285 MB / 0.502 GB, free: 9.137 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01927/0.4641, allocations: 7.933 MB / 0.5098 GB, free: 1.145 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003481/0.4645, allocations: 423.4 kB / 0.5102 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001507/0.466, allocations: 0.5932 MB / 0.5107 GB, free: 140 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0295/0.4955, allocations: 16.55 MB / 0.5269 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002348/0.4957, allocations: 99.3 kB / 0.527 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006924/0.4964, allocations: 263.8 kB / 0.5272 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004763/0.5012, allocations: 2.768 MB / 0.53 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3963/0.8975, allocations: 13.62 MB / 0.5433 GB, free: 112.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.06791/0.9654, allocations: 67.84 MB / 0.6095 GB, free: 56.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01787/0.9833, allocations: 7.672 MB / 0.617 GB, free: 48.83 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004283/0.9875, allocations: 4.233 MB / 0.6211 GB, free: 44.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01742/1.005, allocations: 12.42 MB / 0.6333 GB, free: 32.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/1.005, allocations: 64.56 kB / 0.6333 GB, free: 32.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 4.669e-06/1.005, allocations: 3.938 kB / 0.6333 GB, free: 32.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1747/1.18, allocations: 50.45 MB / 0.6826 GB, free: 14.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002332/1.18, allocations: 394.1 kB / 0.683 GB, free: 13.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/1.19, allocations: 7.127 MB / 0.6899 GB, free: 6.641 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008152/1.191, allocations: 77.7 kB / 0.69 GB, free: 6.559 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004482/1.196, allocations: 5.199 MB / 0.6951 GB, free: 1.496 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001871/1.198, allocations: 1.31 MB / 0.6964 GB, free: 180 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002941/1.201, allocations: 1.877 MB / 0.6982 GB, free: 14.29 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001285/1.201, allocations: 305.1 kB / 0.6985 GB, free: 13.98 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007024/1.208, allocations: 4.551 MB / 0.7029 GB, free: 9.426 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01114/1.219, allocations: 9.267 MB / 0.712 GB, free: 13.87 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02001/1.239, allocations: 14.54 MB / 0.7262 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001486/1.239, allocations: 44 kB / 0.7262 GB, free: 13 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.2544/1.493, allocations: 19.71 MB / 0.7455 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.262e-05/1.494, allocations: 74.91 kB / 0.7455 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/1.494, allocations: 159.6 kB / 0.7457 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01911/1.513, allocations: 7.057 MB / 0.7526 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005503/1.518, allocations: 1.927 MB / 0.7545 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03915/1.557, allocations: 35.32 MB / 0.789 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007621/1.565, allocations: 0.5871 MB / 0.7895 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/1.566, allocations: 0.4903 MB / 0.79 GB, free: 147.1 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.005146/1.572, allocations: 3.47 MB / 0.7934 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.573, allocations: 0.6693 MB / 0.7941 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02474/1.598, allocations: 13.24 MB / 0.807 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-05/1.598, allocations: 39.98 kB / 0.807 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/1.598, allocations: 20 kB / 0.807 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.425e-05/1.598, allocations: 19.53 kB / 0.8071 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0418/1.64, allocations: 26.5 MB / 0.8329 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-05/1.64, allocations: 8 kB / 0.8329 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/1.642, allocations: 415.4 kB / 0.8333 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01979/1.661, allocations: 6.648 MB / 0.8398 GB, free: 96.29 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000897/1.662, allocations: 64 kB / 0.8399 GB, free: 96.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03894/1.701, allocations: 34 MB / 0.8731 GB, free: 62.03 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.701, allocations: 11.88 kB / 0.8731 GB, free: 62.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03153/1.733, allocations: 18.73 MB / 0.8914 GB, free: 43.47 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001936/1.735, allocations: 0.7287 MB / 0.8921 GB, free: 42.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001755/1.737, allocations: 67.92 kB / 0.8922 GB, free: 42.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004081/1.741, allocations: 303.5 kB / 0.8925 GB, free: 42.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009079/1.741, allocations: 238.6 kB / 0.8927 GB, free: 42.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002628/1.742, allocations: 88 kB / 0.8928 GB, free: 42.04 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005193/1.747, allocations: 4.551 MB / 0.8972 GB, free: 37.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.747, allocations: 0 / 0.8972 GB, free: 37.52 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007711/1.755, allocations: 2.123 MB / 0.8993 GB, free: 35.41 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.0005593/1.755, allocations: 217 kB / 0.8995 GB, free: 35.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01469/1.77, allocations: 11.1 MB / 0.9103 GB, free: 24.06 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/1.77, allocations: 4 kB / 0.9103 GB, free: 24.05 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007063/1.777, allocations: 4.667 MB / 0.9149 GB, free: 19.34 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005593/1.783, allocations: 0.999 MB / 0.9159 GB, free: 18.35 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03171/1.814, allocations: 19.79 MB / 0.9352 GB, free: 14.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2231/2.037, allocations: 5.527 MB / 0.9406 GB, free: 181.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005495/2.043, allocations: 2.603 MB / 0.9431 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009418/2.044, allocations: 391 kB / 0.9435 GB, free: 181.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/2.044, allocations: 2.844 kB / 0.9435 GB, free: 181.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1303/2.174, allocations: 94.52 MB / 1.036 GB, free: 108 MB / 0.545 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches