Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006229/0.0006231, allocations: 11.98 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1362, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.3587/0.4951, allocations: 84.75 MB / 393.1 MB, free: 7.125 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04438/0.5395, allocations: 19.34 MB / 412.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01985/0.5594, allocations: 444.3 kB / 412.9 MB, free: 4.574 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01221/0.5716, allocations: 4.356 MB / 417.2 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04093/0.6126, allocations: 12.3 MB / 429.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00668/0.6193, allocations: 1.387 MB / 430.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1074/0.7267, allocations: 50.32 MB / 481.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01694/0.7437, allocations: 8.865 MB / 490.1 MB, free: 1.641 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005699/0.7495, allocations: 2.449 MB / 492.5 MB, free: 15.18 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00627/0.7558, allocations: 3.175 MB / 495.7 MB, free: 12 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00172/0.7576, allocations: 280 kB / 496 MB, free: 11.73 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003986/0.7616, allocations: 1.147 MB / 497.1 MB, free: 10.58 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0054/0.767, allocations: 3.421 MB / 0.4888 GB, free: 7.148 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003238/0.7703, allocations: 1.59 MB / 0.4904 GB, free: 5.547 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01717/0.7875, allocations: 11.29 MB / 0.5014 GB, free: 10.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.102e-06/0.7876, allocations: 0 / 0.5014 GB, free: 10.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.318e-06/0.7876, allocations: 0 / 0.5014 GB, free: 10.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002714/0.7879, allocations: 0 / 0.5014 GB, free: 10.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02828/0.8161, allocations: 8.96 MB / 0.5102 GB, free: 1.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.8162, allocations: 8.031 kB / 0.5102 GB, free: 1.168 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.757/1.573, allocations: 29.79 MB / 0.5393 GB, free: 158.3 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02243/1.596, allocations: 9.172 MB / 0.5482 GB, free: 153.2 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004048/1.596, allocations: 425 kB / 0.5486 GB, free: 152.8 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001867/1.598, allocations: 0.5833 MB / 0.5492 GB, free: 152.3 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03359/1.632, allocations: 16.49 MB / 0.5653 GB, free: 135 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004091/1.632, allocations: 91.8 kB / 0.5654 GB, free: 134.9 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001557/1.634, allocations: 267.4 kB / 0.5656 GB, free: 134.7 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004074/1.638, allocations: 2.649 MB / 0.5682 GB, free: 132.1 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03142/1.669, allocations: 13.11 MB / 0.581 GB, free: 119 MB / 426.8 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.08565/1.755, allocations: 66.72 MB / 0.6462 GB, free: 50.75 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0238/1.779, allocations: 7.696 MB / 0.6537 GB, free: 42.92 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02185/1.801, allocations: 11.88 MB / 0.6653 GB, free: 30.91 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/1.801, allocations: 64.5 kB / 0.6654 GB, free: 30.84 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 7.196e-06/1.801, allocations: 0 / 0.6654 GB, free: 30.84 MB / 426.8 MB Notification: Performance of matching and sorting (n=340): time 0.4543/2.255, allocations: 50.34 MB / 0.7145 GB, free: 141.2 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/2.255, allocations: 396 kB / 0.7149 GB, free: 140.7 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01628/2.272, allocations: 7.918 MB / 0.7226 GB, free: 138 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007696/2.272, allocations: 80.42 kB / 0.7227 GB, free: 138 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003802/2.276, allocations: 4.817 MB / 0.7274 GB, free: 134.1 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001676/2.278, allocations: 1.246 MB / 0.7286 GB, free: 133.2 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009667/2.279, allocations: 170.9 kB / 0.7288 GB, free: 133 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005869/2.28, allocations: 0.6499 MB / 0.7294 GB, free: 132.6 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007913/2.288, allocations: 3.922 MB / 0.7333 GB, free: 131.2 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01022/2.298, allocations: 8.534 MB / 0.7416 GB, free: 123.1 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/2.308, allocations: 5.62 MB / 0.7471 GB, free: 118.4 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001291/2.308, allocations: 44 kB / 0.7471 GB, free: 118.3 MB / 426.8 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.04138/2.35, allocations: 16.74 MB / 0.7635 GB, free: 101.7 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001396/2.35, allocations: 72 kB / 0.7635 GB, free: 101.6 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000179/2.35, allocations: 160 kB / 0.7637 GB, free: 101.5 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02077/2.371, allocations: 5.813 MB / 0.7694 GB, free: 95.64 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006818/2.378, allocations: 1.758 MB / 0.7711 GB, free: 93.88 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05333/2.431, allocations: 30.66 MB / 0.801 GB, free: 62.84 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009054/2.44, allocations: 0.5344 MB / 0.8016 GB, free: 62.3 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/2.442, allocations: 465 kB / 0.802 GB, free: 61.85 MB / 426.8 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.007553/2.449, allocations: 3.469 MB / 0.8054 GB, free: 58.38 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/2.451, allocations: 0.6567 MB / 0.806 GB, free: 57.71 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03028/2.481, allocations: 11.46 MB / 0.8172 GB, free: 46.18 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.373e-05/2.481, allocations: 36 kB / 0.8173 GB, free: 46.14 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.809e-05/2.481, allocations: 16 kB / 0.8173 GB, free: 46.13 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.28e-05/2.481, allocations: 19.94 kB / 0.8173 GB, free: 46.11 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05734/2.539, allocations: 24.94 MB / 0.8417 GB, free: 20.7 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.674e-05/2.539, allocations: 4.562 kB / 0.8417 GB, free: 20.7 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002494/2.541, allocations: 423.3 kB / 0.8421 GB, free: 20.29 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3089/2.85, allocations: 5.394 MB / 0.8473 GB, free: 131.6 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007469/2.851, allocations: 65.48 kB / 0.8474 GB, free: 131.6 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06301/2.914, allocations: 29.39 MB / 0.8761 GB, free: 120.1 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.536e-05/2.914, allocations: 11.41 kB / 0.8761 GB, free: 120.1 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04549/2.96, allocations: 16.43 MB / 0.8921 GB, free: 113 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008673/2.968, allocations: 1.358 MB / 0.8935 GB, free: 112 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003786/2.972, allocations: 67.94 kB / 0.8935 GB, free: 111.9 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0106/2.983, allocations: 264.5 kB / 0.8938 GB, free: 111.7 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002302/2.985, allocations: 244.8 kB / 0.894 GB, free: 111.4 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009925/2.986, allocations: 93.16 kB / 0.8941 GB, free: 111.3 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.021/3.007, allocations: 5.218 MB / 0.8992 GB, free: 106.2 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.833e-06/3.007, allocations: 0 / 0.8992 GB, free: 106.2 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.02271/3.03, allocations: 2.001 MB / 0.9012 GB, free: 104.2 MB / 426.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 (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.002084/3.032, allocations: 224.5 kB / 0.9014 GB, free: 104 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02585/3.058, allocations: 10.41 MB / 0.9115 GB, free: 93.6 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/3.058, allocations: 3.156 kB / 0.9115 GB, free: 93.6 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01002/3.068, allocations: 4.688 MB / 0.9161 GB, free: 88.9 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006469/3.075, allocations: 0.9766 MB / 0.9171 GB, free: 87.95 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04462/3.12, allocations: 22.65 MB / 0.9392 GB, free: 65.45 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01141/3.131, allocations: 5.711 MB / 0.9448 GB, free: 59.7 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002048/3.133, allocations: 467.4 kB / 0.9452 GB, free: 59.24 MB / 426.8 MB Notification: Performance of SimCode: time 2.118e-06/3.133, allocations: 0 / 0.9452 GB, free: 59.24 MB / 426.8 MB Notification: Performance of Templates: time 0.5206/3.654, allocations: 197.6 MB / 1.138 GB, free: 13.64 MB / 442.8 MB