Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.73/1.73, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003565, allocations: 11.98 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09736, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.5513, allocations: 98.17 MB / 370.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003404/0.5518, allocations: 94.77 kB / 370.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.235/1.787, allocations: 184.4 MB / 0.5423 GB, free: 8.496 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.787, allocations: 0 / 0.5423 GB, free: 8.496 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008634/1.788, allocations: 184 kB / 0.5424 GB, free: 8.316 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.6006/2.389, allocations: 10.3 MB / 0.5525 GB, free: 25.58 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.684e-05/2.389, allocations: 9.375 kB / 0.5525 GB, free: 25.58 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1215/2.51, allocations: 16.63 MB / 0.5687 GB, free: 24.97 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05023/2.56, allocations: 14.66 MB / 0.5831 GB, free: 24.12 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007795/2.561, allocations: 0.6265 MB / 0.5837 GB, free: 24.1 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004303/2.566, allocations: 0.8607 MB / 0.5845 GB, free: 24.08 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06771/2.633, allocations: 19.4 MB / 0.6035 GB, free: 20.43 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008023/2.634, allocations: 104.7 kB / 0.6036 GB, free: 20.42 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003845/2.638, allocations: 393.1 kB / 0.6039 GB, free: 20.42 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003637/2.642, allocations: 1.602 MB / 0.6055 GB, free: 20.4 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06504/2.707, allocations: 15.59 MB / 0.6207 GB, free: 16.75 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5027/3.21, allocations: 80.55 MB / 0.6994 GB, free: 63.28 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03849/3.248, allocations: 7.894 MB / 0.7071 GB, free: 62.57 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03549/3.284, allocations: 14.1 MB / 0.7209 GB, free: 59.13 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.682e-05/3.284, allocations: 77.55 kB / 0.7209 GB, free: 59.09 MB / 394.8 MB Notification: Performance of pre-optimization done (n=308): time 6.963e-06/3.284, allocations: 0 / 0.7209 GB, free: 59.09 MB / 394.8 MB Notification: Performance of matching and sorting (n=408): time 0.3339/3.618, allocations: 47.64 MB / 0.7675 GB, free: 53.33 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/3.618, allocations: 414.1 kB / 0.7679 GB, free: 52.89 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01971/3.638, allocations: 7.512 MB / 0.7752 GB, free: 52.21 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001094/3.639, allocations: 88.45 kB / 0.7753 GB, free: 52.18 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006273/3.645, allocations: 5.856 MB / 0.781 GB, free: 49.31 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002433/3.648, allocations: 1.481 MB / 0.7824 GB, free: 48.36 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001567/3.649, allocations: 185.8 kB / 0.7826 GB, free: 48.22 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0008846/3.65, allocations: 0.6974 MB / 0.7833 GB, free: 47.75 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01051/3.661, allocations: 4.182 MB / 0.7874 GB, free: 44.98 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01413/3.675, allocations: 9.192 MB / 0.7964 GB, free: 34.29 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01534/3.69, allocations: 6.088 MB / 0.8023 GB, free: 28.95 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002892/3.691, allocations: 48 kB / 0.8024 GB, free: 28.91 MB / 394.8 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.05983/3.75, allocations: 17.2 MB / 0.8192 GB, free: 14.8 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001449/3.751, allocations: 80 kB / 0.8192 GB, free: 14.73 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002869/3.751, allocations: 172 kB / 0.8194 GB, free: 14.56 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02601/3.777, allocations: 4.684 MB / 0.824 GB, free: 11.14 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01198/3.789, allocations: 1.959 MB / 0.8259 GB, free: 9.426 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4019/4.191, allocations: 26.2 MB / 0.8515 GB, free: 56.75 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/4.203, allocations: 0.5309 MB / 0.852 GB, free: 56.75 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002626/4.206, allocations: 0.5143 MB / 0.8525 GB, free: 56.75 MB / 394.8 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.01206/4.218, allocations: 4.089 MB / 0.8565 GB, free: 56.62 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002269/4.22, allocations: 0.7083 MB / 0.8572 GB, free: 56.62 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04322/4.263, allocations: 10.9 MB / 0.8678 GB, free: 56.34 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-05/4.264, allocations: 42.41 kB / 0.8679 GB, free: 56.34 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.126e-05/4.264, allocations: 21.81 kB / 0.8679 GB, free: 56.34 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.692e-05/4.264, allocations: 19.48 kB / 0.8679 GB, free: 56.34 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07956/4.343, allocations: 23.7 MB / 0.891 GB, free: 49.82 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.9e-05/4.343, allocations: 7.844 kB / 0.891 GB, free: 49.82 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004704/4.348, allocations: 0.526 MB / 0.8916 GB, free: 49.8 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02424/4.372, allocations: 4.107 MB / 0.8956 GB, free: 48.92 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001059/4.373, allocations: 79.64 kB / 0.8956 GB, free: 48.87 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08658/4.46, allocations: 22.86 MB / 0.918 GB, free: 38.91 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.861e-05/4.46, allocations: 16.25 kB / 0.918 GB, free: 38.91 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06057/4.521, allocations: 16.08 MB / 0.9337 GB, free: 32.58 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008208/4.529, allocations: 1.373 MB / 0.935 GB, free: 31.9 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003554/4.533, allocations: 73.39 kB / 0.9351 GB, free: 31.85 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009089/4.542, allocations: 243.4 kB / 0.9353 GB, free: 31.8 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002089/4.544, allocations: 287.5 kB / 0.9356 GB, free: 31.76 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006667/4.545, allocations: 113.1 kB / 0.9357 GB, free: 31.73 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01643/4.561, allocations: 4.803 MB / 0.9404 GB, free: 30.14 MB / 394.8 MB Notification: Performance of sort global known variables: time 9.12e-07/4.561, allocations: 0 / 0.9404 GB, free: 30.14 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01839/4.58, allocations: 2.2 MB / 0.9426 GB, free: 27.98 MB / 394.8 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.001648/4.581, allocations: 280.3 kB / 0.9428 GB, free: 27.77 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02425/4.606, allocations: 10.6 MB / 0.9532 GB, free: 18.87 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/4.606, allocations: 3.062 kB / 0.9532 GB, free: 18.87 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01009/4.616, allocations: 4.42 MB / 0.9575 GB, free: 15 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01043/4.626, allocations: 1.046 MB / 0.9585 GB, free: 14.15 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3812/5.007, allocations: 25.77 MB / 0.9837 GB, free: 69.62 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01884/5.026, allocations: 6.567 MB / 0.9901 GB, free: 68.7 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.01775/5.044, allocations: 2.935 MB / 0.993 GB, free: 68.63 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003286/5.048, allocations: 431.1 kB / 0.9934 GB, free: 68.62 MB / 410.8 MB Notification: Performance of SimCode: time 1.362e-06/5.048, allocations: 2.531 kB / 0.9934 GB, free: 68.62 MB / 410.8 MB Notification: Performance of Templates: time 0.2804/5.328, allocations: 93.14 MB / 1.084 GB, free: 36.45 MB / 410.8 MB