Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.2 MB / 187.3 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.0003648, allocations: 11.98 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08172/0.08212, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3722/0.4543, allocations: 84.99 MB / 357.5 MB, free: 5.273 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.4547, allocations: 90.39 kB / 357.6 MB, free: 5.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9043/1.359, allocations: 162 MB / 0.5075 GB, free: 43.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.697e-06/1.359, allocations: 0 / 0.5075 GB, free: 43.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008627/1.36, allocations: 152 kB / 0.5076 GB, free: 43.26 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03913/1.399, allocations: 8.974 MB / 0.5164 GB, free: 34.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.399, allocations: 12.03 kB / 0.5164 GB, free: 34.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1163/1.516, allocations: 16.46 MB / 0.5325 GB, free: 17.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04464/1.56, allocations: 13.55 MB / 0.5457 GB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006493/1.561, allocations: 0.5255 MB / 0.5462 GB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/1.565, allocations: 0.7182 MB / 0.5469 GB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5896/2.154, allocations: 16.43 MB / 0.563 GB, free: 42.05 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008408/2.155, allocations: 118.2 kB / 0.5631 GB, free: 42.05 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003418/2.159, allocations: 329.3 kB / 0.5634 GB, free: 42.05 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003668/2.162, allocations: 1.48 MB / 0.5648 GB, free: 42.03 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04906/2.212, allocations: 12.92 MB / 0.5774 GB, free: 41.98 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1402/2.352, allocations: 73.29 MB / 0.649 GB, free: 8.02 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03353/2.385, allocations: 7.487 MB / 0.6563 GB, free: 5.641 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03404/2.419, allocations: 11.61 MB / 0.6677 GB, free: 13.37 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.643e-05/2.42, allocations: 70.69 kB / 0.6677 GB, free: 13.3 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 7.464e-06/2.42, allocations: 3.469 kB / 0.6677 GB, free: 13.3 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.6865/3.106, allocations: 51.21 MB / 0.7177 GB, free: 86.98 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/3.106, allocations: 401.7 kB / 0.7181 GB, free: 86.54 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01986/3.126, allocations: 7.058 MB / 0.725 GB, free: 86.02 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/3.127, allocations: 78.2 kB / 0.7251 GB, free: 85.99 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004949/3.132, allocations: 4.872 MB / 0.7299 GB, free: 83.54 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002308/3.135, allocations: 1.247 MB / 0.7311 GB, free: 82.81 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001663/3.136, allocations: 168.3 kB / 0.7312 GB, free: 82.81 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0008118/3.137, allocations: 0.6565 MB / 0.7319 GB, free: 82.48 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009925/3.147, allocations: 3.789 MB / 0.7356 GB, free: 82.46 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01317/3.16, allocations: 8.477 MB / 0.7439 GB, free: 76.5 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01319/3.174, allocations: 5.506 MB / 0.7492 GB, free: 74.9 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002337/3.174, allocations: 49.38 kB / 0.7493 GB, free: 74.9 MB / 394.8 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05763/3.232, allocations: 16.32 MB / 0.7652 GB, free: 69.81 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/3.232, allocations: 79.5 kB / 0.7653 GB, free: 69.81 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002645/3.232, allocations: 167.3 kB / 0.7655 GB, free: 69.81 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03988/3.272, allocations: 5.486 MB / 0.7708 GB, free: 68.89 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01478/3.287, allocations: 1.787 MB / 0.7726 GB, free: 68.67 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07336/3.36, allocations: 28.95 MB / 0.8008 GB, free: 49.03 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/3.372, allocations: 0.5209 MB / 0.8013 GB, free: 48.61 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002273/3.374, allocations: 482.5 kB / 0.8018 GB, free: 48.14 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (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],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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.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 (944): * Single equations (assignments): 938 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01143/3.386, allocations: 3.472 MB / 0.8052 GB, free: 45.12 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002301/3.388, allocations: 0.6631 MB / 0.8058 GB, free: 44.46 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0429/3.431, allocations: 10.92 MB / 0.8165 GB, free: 36.1 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.155e-05/3.431, allocations: 36 kB / 0.8165 GB, free: 36.06 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.232e-05/3.431, allocations: 23.62 kB / 0.8166 GB, free: 36.04 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.813e-05/3.431, allocations: 22.8 kB / 0.8166 GB, free: 36.04 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07776/3.509, allocations: 23.97 MB / 0.84 GB, free: 14.18 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.548e-05/3.509, allocations: 4 kB / 0.84 GB, free: 14.17 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2978/3.807, allocations: 420.4 kB / 0.8404 GB, free: 79.07 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03015/3.837, allocations: 5.076 MB / 0.8453 GB, free: 79.04 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000992/3.838, allocations: 62.66 kB / 0.8454 GB, free: 79.04 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06368/3.902, allocations: 27.69 MB / 0.8724 GB, free: 75.1 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/3.902, allocations: 11.06 kB / 0.8725 GB, free: 75.1 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05112/3.953, allocations: 15.68 MB / 0.8878 GB, free: 70.67 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005408/3.959, allocations: 1.27 MB / 0.889 GB, free: 70.31 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003042/3.962, allocations: 62.3 kB / 0.8891 GB, free: 70.27 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006963/3.969, allocations: 252.1 kB / 0.8893 GB, free: 70.23 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001835/3.971, allocations: 245.8 kB / 0.8895 GB, free: 70.19 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006144/3.971, allocations: 86.56 kB / 0.8896 GB, free: 70.17 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01677/3.988, allocations: 4.52 MB / 0.894 GB, free: 68.71 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.974e-06/3.988, allocations: 0 / 0.894 GB, free: 68.71 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01871/4.007, allocations: 1.966 MB / 0.896 GB, free: 68.52 MB / 394.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001691/4.009, allocations: 223.8 kB / 0.8962 GB, free: 68.39 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.03676/4.045, allocations: 10.16 MB / 0.9061 GB, free: 64.9 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/4.045, allocations: 0 / 0.9061 GB, free: 64.9 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01494/4.06, allocations: 4.516 MB / 0.9105 GB, free: 63 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009401/4.07, allocations: 0.9888 MB / 0.9115 GB, free: 62.63 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06005/4.13, allocations: 22.49 MB / 0.9334 GB, free: 44.62 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0152/4.145, allocations: 5.713 MB / 0.939 GB, free: 40.49 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002584/4.148, allocations: 448.8 kB / 0.9394 GB, free: 40.06 MB / 394.8 MB Notification: Performance of SimCode: time 1.422e-06/4.148, allocations: 0 / 0.9394 GB, free: 40.06 MB / 394.8 MB Notification: Performance of Templates: time 0.7626/4.91, allocations: 195.6 MB / 1.131 GB, free: 15.94 MB / 442.8 MB