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.002134/0.002134, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002831/0.002831, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.488/1.488, allocations: 227.7 MB / 247.7 MB, free: 10.3 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.001933/0.001933, allocations: 64.72 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1104, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2165/0.3269, allocations: 19.36 MB / 377.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01291/0.3399, allocations: 5.976 MB / 383.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004878/0.3448, allocations: 157.8 kB / 383.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01095/0.3558, allocations: 5.834 MB / 389.8 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009112/0.365, allocations: 3.303 MB / 393.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003621/0.3686, allocations: 1.568 MB / 394.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01884/0.3875, allocations: 12.68 MB / 407.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01157/0.3991, allocations: 7.668 MB / 415 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008213/0.4073, allocations: 3.536 MB / 418.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008632/0.416, allocations: 4.736 MB / 423.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003083/0.4191, allocations: 0.7109 MB / 424 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005894/0.4251, allocations: 1.662 MB / 425.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006957/0.4321, allocations: 4.17 MB / 429.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009665/0.4418, allocations: 4.452 MB / 434.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0204/0.4622, allocations: 13.28 MB / 447.5 MB, free: 2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.435e-06/0.4623, allocations: 3.984 kB / 447.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4623, allocations: 0 / 447.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005291/0.4628, allocations: 0 / 447.5 MB, free: 1.996 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03055/0.4934, allocations: 9.641 MB / 457.2 MB, free: 8.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.4934, allocations: 12.03 kB / 457.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04695/0.5404, allocations: 5.236 MB / 462.4 MB, free: 3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02108/0.5615, allocations: 7.707 MB / 470.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004755/0.562, allocations: 431.6 kB / 470.5 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002437/0.5645, allocations: 0.5814 MB / 471.1 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03686/0.6014, allocations: 16.56 MB / 487.7 MB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003766/0.6018, allocations: 103.1 kB / 487.8 MB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001477/0.6033, allocations: 271.8 kB / 488 MB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004977/0.6082, allocations: 2.756 MB / 490.8 MB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03063/0.6389, allocations: 13.63 MB / 0.4926 GB, free: 7.824 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.4529/1.092, allocations: 68.03 MB / 0.559 GB, free: 97.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/1.112, allocations: 7.913 MB / 0.5668 GB, free: 95.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005118/1.117, allocations: 4.507 MB / 0.5712 GB, free: 93.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01758/1.135, allocations: 12.41 MB / 0.5833 GB, free: 88.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/1.135, allocations: 66.11 kB / 0.5834 GB, free: 87.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.671e-06/1.135, allocations: 7.922 kB / 0.5834 GB, free: 87.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1992/1.334, allocations: 50.1 MB / 0.6323 GB, free: 45.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/1.335, allocations: 402.1 kB / 0.6327 GB, free: 45.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009813/1.344, allocations: 7.12 MB / 0.6396 GB, free: 38.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009305/1.345, allocations: 77.7 kB / 0.6397 GB, free: 38.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002996/1.348, allocations: 5.008 MB / 0.6446 GB, free: 33.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001708/1.35, allocations: 1.265 MB / 0.6458 GB, free: 31.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003083/1.353, allocations: 1.856 MB / 0.6476 GB, free: 30.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/1.353, allocations: 305.1 kB / 0.6479 GB, free: 29.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005711/1.359, allocations: 4.547 MB / 0.6524 GB, free: 25.26 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008587/1.368, allocations: 9.263 MB / 0.6614 GB, free: 13.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.384, allocations: 14.55 MB / 0.6756 GB, free: 12.94 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001604/1.384, allocations: 44 kB / 0.6757 GB, free: 12.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.048/1.432, allocations: 19.75 MB / 0.695 GB, free: 9.094 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.432, allocations: 77 kB / 0.695 GB, free: 9.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002136/1.433, allocations: 160 kB / 0.6952 GB, free: 8.863 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02266/1.455, allocations: 7.073 MB / 0.7021 GB, free: 1.773 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1876/1.643, allocations: 1.927 MB / 0.704 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04627/1.689, allocations: 35.32 MB / 0.7385 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008192/1.697, allocations: 0.5944 MB / 0.739 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001992/1.699, allocations: 499.1 kB / 0.7395 GB, free: 135.2 MB / 478.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.006228/1.706, allocations: 3.465 MB / 0.7429 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/1.707, allocations: 0.6366 MB / 0.7435 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02591/1.733, allocations: 13.32 MB / 0.7565 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.16e-05/1.733, allocations: 39.56 kB / 0.7566 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.156e-05/1.733, allocations: 23.75 kB / 0.7566 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-05/1.733, allocations: 18.28 kB / 0.7566 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0468/1.78, allocations: 26.71 MB / 0.7827 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.209e-05/1.78, allocations: 4 kB / 0.7827 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/1.782, allocations: 419.4 kB / 0.7831 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01869/1.801, allocations: 6.662 MB / 0.7896 GB, free: 94.97 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009186/1.802, allocations: 60 kB / 0.7896 GB, free: 94.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03855/1.84, allocations: 34 MB / 0.8229 GB, free: 60.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/1.84, allocations: 11.94 kB / 0.8229 GB, free: 60.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03207/1.873, allocations: 18.77 MB / 0.8412 GB, free: 42.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002096/1.875, allocations: 0.6846 MB / 0.8419 GB, free: 41.37 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002242/1.877, allocations: 60 kB / 0.8419 GB, free: 41.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004657/1.882, allocations: 307.6 kB / 0.8422 GB, free: 41.01 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001353/1.883, allocations: 250.5 kB / 0.8425 GB, free: 40.76 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003425/1.883, allocations: 90.42 kB / 0.8425 GB, free: 40.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007275/1.891, allocations: 4.551 MB / 0.847 GB, free: 36.15 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.61e-07/1.891, allocations: 4.031 kB / 0.847 GB, free: 36.15 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01079/1.901, allocations: 2.119 MB / 0.8491 GB, free: 34.04 MB / 478.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.001181/1.903, allocations: 221.3 kB / 0.8493 GB, free: 33.83 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02301/1.926, allocations: 14.42 MB / 0.8633 GB, free: 19.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/1.926, allocations: 4 kB / 0.8634 GB, free: 19.39 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008456/1.934, allocations: 5.003 MB / 0.8682 GB, free: 14.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007361/1.942, allocations: 0.9891 MB / 0.8692 GB, free: 13.37 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2187/2.16, allocations: 20.32 MB / 0.8891 GB, free: 143.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0113/2.172, allocations: 5.463 MB / 0.8944 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001761/2.173, allocations: 446.5 kB / 0.8948 GB, free: 142.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/2.173, allocations: 2.719 kB / 0.8948 GB, free: 142.6 MB / 478.1 MB Notification: Performance of Templates: time 0.4446/2.618, allocations: 206.2 MB / 1.096 GB, free: 119.1 MB / 478.1 MB 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 -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