Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.597/1.597, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.000357, allocations: 11.98 kB / 233.2 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1128, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2941/0.4069, allocations: 84.75 MB / 356.7 MB, free: 8.586 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05197/0.4589, allocations: 19.31 MB / 376 MB, free: 5.223 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0192/0.4782, allocations: 442.8 kB / 376.4 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.4921, allocations: 4.351 MB / 380.8 MB, free: 428 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04176/0.5339, allocations: 12.29 MB / 393.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006537/0.5404, allocations: 1.409 MB / 394.5 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1442/0.6847, allocations: 50.32 MB / 444.8 MB, free: 328 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2464/0.9311, allocations: 8.843 MB / 453.6 MB, free: 50.46 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005133/0.9363, allocations: 2.459 MB / 456.1 MB, free: 50.46 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00542/0.9417, allocations: 3.173 MB / 459.3 MB, free: 50.44 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00165/0.9434, allocations: 276.4 kB / 459.5 MB, free: 50.44 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003799/0.9472, allocations: 1.158 MB / 460.7 MB, free: 50.44 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004571/0.9519, allocations: 3.422 MB / 464.1 MB, free: 50.44 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003008/0.9549, allocations: 1.591 MB / 465.7 MB, free: 50.41 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.9683, allocations: 11.28 MB / 477 MB, free: 45.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.593e-06/0.9684, allocations: 0 / 477 MB, free: 45.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.784e-06/0.9684, allocations: 6.062 kB / 477 MB, free: 45.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003331/0.9687, allocations: 0 / 477 MB, free: 45.97 MB / 362.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.02595/0.9947, allocations: 8.958 MB / 485.9 MB, free: 40.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.9947, allocations: 10.69 kB / 486 MB, free: 40.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3239/1.319, allocations: 29.79 MB / 0.5037 GB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02211/1.341, allocations: 9.172 MB / 0.5126 GB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004258/1.341, allocations: 425.6 kB / 0.513 GB, free: 6.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002109/1.343, allocations: 0.581 MB / 0.5136 GB, free: 6.047 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03841/1.382, allocations: 16.48 MB / 0.5297 GB, free: 9.164 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004235/1.382, allocations: 100.2 kB / 0.5298 GB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001519/1.384, allocations: 266.3 kB / 0.53 GB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005201/1.389, allocations: 2.648 MB / 0.5326 GB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03577/1.425, allocations: 13.11 MB / 0.5454 GB, free: 13.76 MB / 394.7 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.3323/1.757, allocations: 66.7 MB / 0.6106 GB, free: 135 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02595/1.783, allocations: 7.702 MB / 0.6181 GB, free: 134.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0238/1.807, allocations: 11.88 MB / 0.6297 GB, free: 131.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.036e-05/1.807, allocations: 69.62 kB / 0.6298 GB, free: 131.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.057e-06/1.807, allocations: 0 / 0.6298 GB, free: 131.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.2591/2.066, allocations: 50.34 MB / 0.6789 GB, free: 98.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/2.066, allocations: 405.6 kB / 0.6793 GB, free: 97.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01411/2.081, allocations: 7.926 MB / 0.687 GB, free: 89.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007211/2.081, allocations: 77.7 kB / 0.6871 GB, free: 89.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003551/2.085, allocations: 4.815 MB / 0.6918 GB, free: 84.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00159/2.087, allocations: 1.248 MB / 0.693 GB, free: 83.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007527/2.087, allocations: 160.5 kB / 0.6932 GB, free: 83.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004551/2.088, allocations: 0.6642 MB / 0.6938 GB, free: 82.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007454/2.095, allocations: 3.924 MB / 0.6977 GB, free: 78.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009787/2.105, allocations: 8.531 MB / 0.706 GB, free: 68.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009974/2.115, allocations: 5.623 MB / 0.7115 GB, free: 62.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001166/2.115, allocations: 44 kB / 0.7115 GB, free: 62.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.0411/2.156, allocations: 16.73 MB / 0.7279 GB, free: 46.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/2.157, allocations: 78.06 kB / 0.7279 GB, free: 46.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001757/2.157, allocations: 160 kB / 0.7281 GB, free: 45.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02103/2.178, allocations: 5.821 MB / 0.7338 GB, free: 40.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007034/2.185, allocations: 1.755 MB / 0.7355 GB, free: 38.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05222/2.237, allocations: 30.67 MB / 0.7654 GB, free: 7.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008942/2.246, allocations: 0.5305 MB / 0.766 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/2.248, allocations: 472 kB / 0.7664 GB, free: 6.238 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * 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 (932): * Single equations (assignments): 926 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007799/2.256, allocations: 3.474 MB / 0.7698 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001625/2.257, allocations: 0.6556 MB / 0.7704 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2434/2.501, allocations: 11.46 MB / 0.7816 GB, free: 157.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-05/2.501, allocations: 39.47 kB / 0.7817 GB, free: 157.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.827e-05/2.501, allocations: 17.66 kB / 0.7817 GB, free: 157.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.365e-05/2.501, allocations: 19.03 kB / 0.7817 GB, free: 157.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06047/2.561, allocations: 24.93 MB / 0.8061 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-05/2.562, allocations: 13.28 kB / 0.8061 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002576/2.564, allocations: 421.1 kB / 0.8065 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02199/2.586, allocations: 5.402 MB / 0.8117 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007583/2.587, allocations: 61 kB / 0.8118 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05121/2.638, allocations: 29.39 MB / 0.8405 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/2.638, allocations: 11.94 kB / 0.8405 GB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03597/2.674, allocations: 16.44 MB / 0.8566 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004235/2.679, allocations: 1.355 MB / 0.8579 GB, free: 106.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002002/2.681, allocations: 64.69 kB / 0.8579 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005112/2.686, allocations: 272.8 kB / 0.8582 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001255/2.687, allocations: 238.6 kB / 0.8584 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005168/2.688, allocations: 95.95 kB / 0.8585 GB, free: 105.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01075/2.698, allocations: 5.211 MB / 0.8636 GB, free: 100.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.148e-06/2.698, allocations: 3.75 kB / 0.8636 GB, free: 100.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01051/2.709, allocations: 2.007 MB / 0.8656 GB, free: 98.65 MB / 426.7 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 (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.001157/2.71, allocations: 228.5 kB / 0.8658 GB, free: 98.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02008/2.73, allocations: 10.41 MB / 0.876 GB, free: 88.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/2.73, allocations: 3.938 kB / 0.876 GB, free: 88.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009979/2.74, allocations: 4.675 MB / 0.8805 GB, free: 83.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00608/2.746, allocations: 0.9797 MB / 0.8815 GB, free: 82.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04373/2.79, allocations: 22.65 MB / 0.9036 GB, free: 59.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0108/2.801, allocations: 5.719 MB / 0.9092 GB, free: 54.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002052/2.803, allocations: 459.4 kB / 0.9096 GB, free: 53.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.726e-06/2.803, allocations: 0 / 0.9096 GB, free: 53.73 MB / 426.7 MB Notification: Performance of Templates: time 0.6927/3.496, allocations: 197.6 MB / 1.103 GB, free: 146.4 MB / 426.7 MB