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.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.63/1.63, allocations: 171.1 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003514, allocations: 8 kB / 233.2 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07017/0.07055, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.403, allocations: 98.17 MB / 370.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.4034, allocations: 92.77 kB / 370.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8199/1.223, allocations: 182.3 MB / 0.5397 GB, free: 11.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.852e-06/1.223, allocations: 4 kB / 0.5397 GB, free: 11.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007274/1.224, allocations: 184 kB / 0.5398 GB, free: 10.99 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03321/1.257, allocations: 10.31 MB / 0.5499 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/1.257, allocations: 8.031 kB / 0.5499 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3153/1.573, allocations: 16.62 MB / 0.5661 GB, free: 30.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04205/1.615, allocations: 14.66 MB / 0.5805 GB, free: 30.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007178/1.616, allocations: 0.6253 MB / 0.5811 GB, free: 30 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003586/1.619, allocations: 0.8607 MB / 0.5819 GB, free: 29.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05246/1.672, allocations: 19.4 MB / 0.6009 GB, free: 26.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006719/1.672, allocations: 109.2 kB / 0.601 GB, free: 26.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003293/1.676, allocations: 398.5 kB / 0.6013 GB, free: 26.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/1.679, allocations: 1.595 MB / 0.6029 GB, free: 26.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04293/1.722, allocations: 15.59 MB / 0.6181 GB, free: 23.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/1.85, allocations: 80.55 MB / 0.6968 GB, free: 2.496 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2762/2.126, allocations: 8.529 MB / 0.7051 GB, free: 71.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02881/2.155, allocations: 14.11 MB / 0.7189 GB, free: 67.76 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.94e-05/2.155, allocations: 73.33 kB / 0.719 GB, free: 67.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=308): time 8.306e-06/2.155, allocations: 0 / 0.719 GB, free: 67.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=408): time 0.2228/2.378, allocations: 47.59 MB / 0.7654 GB, free: 62.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/2.378, allocations: 404 kB / 0.7658 GB, free: 61.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01588/2.394, allocations: 6.646 MB / 0.7723 GB, free: 61.01 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008274/2.395, allocations: 91.36 kB / 0.7724 GB, free: 60.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006397/2.401, allocations: 5.493 MB / 0.7778 GB, free: 57.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002887/2.404, allocations: 1.48 MB / 0.7792 GB, free: 56.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001845/2.406, allocations: 184 kB / 0.7794 GB, free: 56.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.001085/2.407, allocations: 0.7068 MB / 0.7801 GB, free: 55.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009616/2.417, allocations: 4.178 MB / 0.7842 GB, free: 54.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01248/2.43, allocations: 9.195 MB / 0.7931 GB, free: 45.89 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/2.442, allocations: 6.093 MB / 0.7991 GB, free: 43.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001687/2.442, allocations: 50.16 kB / 0.7991 GB, free: 43.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04325/2.485, allocations: 16.9 MB / 0.8156 GB, free: 29.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/2.485, allocations: 83.59 kB / 0.8157 GB, free: 29.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002145/2.486, allocations: 172 kB / 0.8159 GB, free: 29.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01883/2.505, allocations: 4.728 MB / 0.8205 GB, free: 26.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008227/2.513, allocations: 1.964 MB / 0.8224 GB, free: 24.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3304/2.843, allocations: 26.27 MB / 0.8481 GB, free: 55.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0098/2.853, allocations: 0.5348 MB / 0.8486 GB, free: 55.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001936/2.855, allocations: 0.5092 MB / 0.8491 GB, free: 55.56 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01035/2.865, allocations: 4.095 MB / 0.8531 GB, free: 55.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001773/2.867, allocations: 0.7117 MB / 0.8538 GB, free: 55.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03139/2.899, allocations: 10.96 MB / 0.8645 GB, free: 55.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-05/2.899, allocations: 40 kB / 0.8645 GB, free: 55.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.857e-05/2.899, allocations: 26.94 kB / 0.8645 GB, free: 55.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.846e-05/2.899, allocations: 18.19 kB / 0.8646 GB, free: 55.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06299/2.962, allocations: 23.79 MB / 0.8878 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.397e-05/2.962, allocations: 7.094 kB / 0.8878 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003264/2.965, allocations: 0.5243 MB / 0.8883 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01836/2.984, allocations: 4.162 MB / 0.8924 GB, free: 52.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009283/2.985, allocations: 76.27 kB / 0.8924 GB, free: 52.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0798/3.064, allocations: 22.92 MB / 0.9148 GB, free: 42.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.869e-05/3.064, allocations: 14.41 kB / 0.9148 GB, free: 42.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0527/3.117, allocations: 17.65 MB / 0.9321 GB, free: 34.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004573/3.122, allocations: 1.373 MB / 0.9334 GB, free: 34.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002178/3.124, allocations: 77.27 kB / 0.9335 GB, free: 34.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005479/3.13, allocations: 249.1 kB / 0.9337 GB, free: 34.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001327/3.131, allocations: 292.9 kB / 0.934 GB, free: 34.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000455/3.131, allocations: 103.8 kB / 0.9341 GB, free: 34.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01099/3.142, allocations: 4.807 MB / 0.9388 GB, free: 32.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.2e-07/3.142, allocations: 0 / 0.9388 GB, free: 32.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01233/3.155, allocations: 2.201 MB / 0.9409 GB, free: 32.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001331/3.156, allocations: 262.5 kB / 0.9412 GB, free: 32.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01998/3.176, allocations: 10.61 MB / 0.9516 GB, free: 24.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/3.176, allocations: 3.75 kB / 0.9516 GB, free: 24.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008558/3.185, allocations: 4.431 MB / 0.9559 GB, free: 20.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006806/3.192, allocations: 1.051 MB / 0.9569 GB, free: 19.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06104/3.253, allocations: 25.74 MB / 0.982 GB, free: 12.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2629/3.516, allocations: 7.229 MB / 0.9891 GB, free: 71.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002473/3.518, allocations: 497.9 kB / 0.9896 GB, free: 71.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.736e-06/3.518, allocations: 0 / 0.9896 GB, free: 71.65 MB / 410.7 MB Notification: Performance of Templates: time 0.4953/4.014, allocations: 154.2 MB / 1.14 GB, free: 85.21 MB / 426.7 MB