Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001133/0.001133, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001108/0.001109, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 43.94 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.09986, allocations: 46.63 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2977/0.3976, allocations: 103.4 MB / 430 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05835/0.456, allocations: 19.96 MB / 450 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03096/0.487, allocations: 474.8 kB / 450.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01168/0.4988, allocations: 5.852 MB / 456.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.509, allocations: 3.18 MB / 459.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.5127, allocations: 1.467 MB / 460.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02109/0.5338, allocations: 15.89 MB / 476.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01067/0.5445, allocations: 7.497 MB / 484.3 MB, free: 8.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006684/0.5512, allocations: 3.22 MB / 487.5 MB, free: 5.047 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008387/0.5597, allocations: 5.094 MB / 492.6 MB, free: 15.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002445/0.5621, allocations: 484 kB / 493.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004496/0.5667, allocations: 1.494 MB / 494.6 MB, free: 13.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005421/0.5721, allocations: 4.037 MB / 498.6 MB, free: 9.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008535/0.5807, allocations: 4.233 MB / 0.4911 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01575/0.5964, allocations: 13.15 MB / 0.5039 GB, free: 8.469 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.5965, allocations: 0 / 0.5039 GB, free: 8.469 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5965, allocations: 0 / 0.5039 GB, free: 8.469 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005022/0.597, allocations: 0 / 0.5039 GB, free: 8.469 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.02968/0.6267, allocations: 9.695 MB / 0.5134 GB, free: 14.68 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.6268, allocations: 8.031 kB / 0.5134 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04175/0.6685, allocations: 5.248 MB / 0.5185 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01955/0.6881, allocations: 8.183 MB / 0.5265 GB, free: 1.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004013/0.6885, allocations: 431.6 kB / 0.5269 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002344/0.6909, allocations: 0.5853 MB / 0.5275 GB, free: 156 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3551/1.046, allocations: 16.55 MB / 0.5437 GB, free: 158.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004594/1.047, allocations: 100.6 kB / 0.5438 GB, free: 158.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001792/1.048, allocations: 266.9 kB / 0.544 GB, free: 158.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005633/1.054, allocations: 2.763 MB / 0.5467 GB, free: 158.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03233/1.086, allocations: 13.63 MB / 0.56 GB, free: 154.2 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.08988/1.176, allocations: 67.99 MB / 0.6264 GB, free: 91.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/1.194, allocations: 7.892 MB / 0.6341 GB, free: 83.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00481/1.199, allocations: 4.504 MB / 0.6385 GB, free: 78.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01659/1.216, allocations: 12.43 MB / 0.6507 GB, free: 66.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/1.216, allocations: 72.56 kB / 0.6507 GB, free: 65.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 4.809e-06/1.216, allocations: 0 / 0.6507 GB, free: 65.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=340): time 0.159/1.375, allocations: 49.26 MB / 0.6988 GB, free: 16.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/1.375, allocations: 404.4 kB / 0.6992 GB, free: 16.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009579/1.385, allocations: 7.183 MB / 0.7062 GB, free: 9.105 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009953/1.386, allocations: 77.7 kB / 0.7063 GB, free: 9.023 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002736/1.388, allocations: 5.025 MB / 0.7112 GB, free: 3.938 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/1.39, allocations: 1.268 MB / 0.7125 GB, free: 2.652 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002395/1.392, allocations: 1.868 MB / 0.7143 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.35e-05/1.393, allocations: 305.1 kB / 0.7146 GB, free: 480 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2064/1.599, allocations: 4.544 MB / 0.719 GB, free: 147.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0108/1.61, allocations: 9.266 MB / 0.7281 GB, free: 139.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01649/1.626, allocations: 14.54 MB / 0.7423 GB, free: 129.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000216/1.627, allocations: 50.91 kB / 0.7423 GB, free: 129.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04301/1.67, allocations: 19.76 MB / 0.7616 GB, free: 123.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003675/1.67, allocations: 75.69 kB / 0.7617 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004616/1.67, allocations: 159.5 kB / 0.7618 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02053/1.691, allocations: 7.032 MB / 0.7687 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006217/1.697, allocations: 1.934 MB / 0.7706 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04225/1.74, allocations: 33.15 MB / 0.803 GB, free: 82.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009519/1.749, allocations: 0.5807 MB / 0.8035 GB, free: 82.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001891/1.751, allocations: 0.4922 MB / 0.804 GB, free: 81.54 MB / 446.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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1049): * Single equations (assignments): 1043 * 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.006477/1.758, allocations: 3.488 MB / 0.8074 GB, free: 78.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/1.759, allocations: 0.6376 MB / 0.808 GB, free: 77.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02381/1.783, allocations: 13.32 MB / 0.821 GB, free: 64.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.775e-05/1.783, allocations: 39.98 kB / 0.8211 GB, free: 64.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.465e-05/1.783, allocations: 20 kB / 0.8211 GB, free: 64.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.022e-05/1.783, allocations: 15.89 kB / 0.8211 GB, free: 64.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04571/1.829, allocations: 26.73 MB / 0.8472 GB, free: 37.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.085e-05/1.829, allocations: 8 kB / 0.8472 GB, free: 37.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/1.831, allocations: 423.3 kB / 0.8476 GB, free: 36.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01807/1.849, allocations: 6.668 MB / 0.8541 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008701/1.85, allocations: 67.92 kB / 0.8542 GB, free: 30.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2489/2.099, allocations: 31.91 MB / 0.8854 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/2.099, allocations: 5.906 kB / 0.8854 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03157/2.13, allocations: 18.77 MB / 0.9037 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004091/2.135, allocations: 1.388 MB / 0.9051 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001846/2.136, allocations: 70.98 kB / 0.9051 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004184/2.141, allocations: 305.6 kB / 0.9054 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/2.142, allocations: 243.3 kB / 0.9056 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002941/2.142, allocations: 86.84 kB / 0.9057 GB, free: 124.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007107/2.149, allocations: 4.604 MB / 0.9102 GB, free: 123.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/2.149, allocations: 0 / 0.9102 GB, free: 123.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0111/2.16, allocations: 2.148 MB / 0.9123 GB, free: 123.1 MB / 446.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 (215): * Single equations (assignments): 209 * 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.0007903/2.161, allocations: 213 kB / 0.9125 GB, free: 122.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01716/2.178, allocations: 11.58 MB / 0.9238 GB, free: 116.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/2.178, allocations: 4 kB / 0.9238 GB, free: 116.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008081/2.186, allocations: 5.01 MB / 0.9287 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008211/2.195, allocations: 0.9337 MB / 0.9296 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03561/2.23, allocations: 23.42 MB / 0.9525 GB, free: 87.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006474/2.237, allocations: 5.559 MB / 0.9579 GB, free: 81.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006388/2.243, allocations: 2.605 MB / 0.9605 GB, free: 79.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/2.244, allocations: 395.3 kB / 0.9609 GB, free: 78.88 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/2.244, allocations: 0 / 0.9609 GB, free: 78.88 MB / 446.1 MB Notification: Performance of Templates: time 0.3415/2.586, allocations: 95.46 MB / 1.054 GB, free: 125.1 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches