Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003651/0.0003653, allocations: 4 kB / 233.8 MB, free: 3.094 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/0.08694, allocations: 38.77 MB / 272.5 MB, free: 12.25 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3412/0.4282, allocations: 66.06 MB / 338.6 MB, free: 7.922 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.4285, allocations: 68.34 kB / 338.7 MB, free: 7.891 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005247/0.4338, allocations: 1.241 MB / 339.9 MB, free: 6.797 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4338, allocations: 0 / 339.9 MB, free: 6.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.4339, allocations: 4 kB / 339.9 MB, free: 6.793 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006443/0.4345, allocations: 382.7 kB / 340.3 MB, free: 6.375 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.4346, allocations: 10.55 kB / 340.3 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.814e-05/0.4346, allocations: 11.89 kB / 340.3 MB, free: 6.355 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.4348, allocations: 159.1 kB / 340.5 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.4348, allocations: 7.25 kB / 340.5 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.4348, allocations: 7.75 kB / 340.5 MB, free: 6.152 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.4352, allocations: 99.66 kB / 340.6 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.4353, allocations: 0 / 340.6 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.4353, allocations: 3.625 kB / 340.6 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.4353, allocations: 4 kB / 340.6 MB, free: 6.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005795/0.4359, allocations: 94.67 kB / 340.7 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005672/0.4365, allocations: 319.3 kB / 341 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/0.4369, allocations: 67.48 kB / 341 MB, free: 5.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.4369, allocations: 7.078 kB / 341.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.437, allocations: 34.56 kB / 341.1 MB, free: 5.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.545e-06/0.437, allocations: 4 kB / 341.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0009777/0.438, allocations: 172.8 kB / 341.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.438, allocations: 51.41 kB / 341.3 MB, free: 5.293 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.4382, allocations: 115.9 kB / 341.4 MB, free: 5.176 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.4382, allocations: 25.7 kB / 341.4 MB, free: 5.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.964e-05/0.4383, allocations: 157.1 kB / 341.6 MB, free: 4.992 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.4383, allocations: 18.94 kB / 341.6 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.4383, allocations: 3.938 kB / 341.6 MB, free: 4.973 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4385, allocations: 314.8 kB / 341.9 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.4388, allocations: 48.17 kB / 342 MB, free: 4.613 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.439, allocations: 46.95 kB / 342 MB, free: 4.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002783/0.4393, allocations: 45.66 kB / 342.1 MB, free: 4.535 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4394, allocations: 0 / 342.1 MB, free: 4.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0006277/0.44, allocations: 128.2 kB / 342.2 MB, free: 4.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.44, allocations: 9.078 kB / 342.2 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.44, allocations: 3.938 kB / 342.2 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.4401, allocations: 0 / 342.2 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.4403, allocations: 27.98 kB / 342.2 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.4404, allocations: 0 / 342.2 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.4405, allocations: 15.98 kB / 342.2 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.4406, allocations: 0 / 342.2 MB, free: 4.359 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.4407, allocations: 120.5 kB / 342.4 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.4407, allocations: 3.906 kB / 342.4 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006894/0.4414, allocations: 150.3 kB / 342.5 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.4415, allocations: 3.938 kB / 342.5 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4415, allocations: 0 / 342.5 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4415, allocations: 0 / 342.5 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.4417, allocations: 183.8 kB / 342.7 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4417, allocations: 0 / 342.7 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.442, allocations: 23.97 kB / 342.7 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.442, allocations: 4 kB / 342.7 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.442, allocations: 4 kB / 342.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.442, allocations: 0 / 342.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.442, allocations: 0 / 342.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006773/0.4427, allocations: 233.4 kB / 343 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/0.4428, allocations: 85.06 kB / 343 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.4428, allocations: 2.5 kB / 343 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.443, allocations: 15.98 kB / 343.1 MB, free: 3.492 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.655e-05/0.4431, allocations: 15.92 kB / 343.1 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.4431, allocations: 3.312 kB / 343.1 MB, free: 3.477 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.529e-05/0.4432, allocations: 82.59 kB / 343.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4432, allocations: 4 kB / 343.2 MB, free: 3.395 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003104/0.4435, allocations: 19.92 kB / 343.2 MB, free: 3.375 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000177/0.4437, allocations: 110.9 kB / 343.3 MB, free: 3.258 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006623/0.4444, allocations: 102 kB / 343.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4444, allocations: 0 / 343.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.4447, allocations: 58.83 kB / 343.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.445, allocations: 7.984 kB / 343.5 MB, free: 3.113 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.4455, allocations: 198.1 kB / 343.6 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.4458, allocations: 0.6887 MB / 344.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.4458, allocations: 7.438 kB / 344.3 MB, free: 2.168 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4459, allocations: 0 / 344.3 MB, free: 2.168 MB / 266.7 MB Notification: Performance of Templates: time 0.003122/0.449, allocations: 0.8958 MB / 345.2 MB, free: 1.285 MB / 266.7 MB