Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.921/1.921, allocations: 171.3 MB / 179.2 MB, free: 180 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.769e-05/1.774e-05, allocations: 0 / 222.5 MB, free: 4.77 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2095, allocations: 38.76 MB / 261.3 MB, free: 13.01 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.3122, allocations: 65.32 MB / 326.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.3125, allocations: 67.97 kB / 326.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004554/0.317, allocations: 1.223 MB / 327.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.898e-06/0.3171, allocations: 0 / 327.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.185e-06/0.3171, allocations: 0 / 327.9 MB, free: 10.96 MB / 282.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.0005908/0.3177, allocations: 374.3 kB / 328.2 MB, free: 10.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.3178, allocations: 8.031 kB / 328.2 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.3178, allocations: 11.89 kB / 328.3 MB, free: 10.53 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.318, allocations: 167 kB / 328.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.318, allocations: 0 / 328.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.318, allocations: 8 kB / 328.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001398/0.3182, allocations: 31.94 kB / 328.5 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.3184, allocations: 53.62 kB / 328.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.2e-06/0.3184, allocations: 0 / 328.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3184, allocations: 0 / 328.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.059e-06/0.3184, allocations: 8.641 kB / 328.5 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005229/0.3189, allocations: 281.2 kB / 328.8 MB, free: 9.906 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.3191, allocations: 42.56 kB / 328.8 MB, free: 9.855 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.421e-05/0.3192, allocations: 16.86 kB / 328.8 MB, free: 9.836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.3192, allocations: 0 / 328.8 MB, free: 9.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.3193, allocations: 30.56 kB / 328.9 MB, free: 9.797 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.889e-06/0.3193, allocations: 3.938 kB / 328.9 MB, free: 9.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002291/0.3195, allocations: 65.72 kB / 328.9 MB, free: 9.723 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.3196, allocations: 55.41 kB / 329 MB, free: 9.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.856e-05/0.3197, allocations: 97 kB / 329.1 MB, free: 9.555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3197, allocations: 25.7 kB / 329.1 MB, free: 9.523 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.3198, allocations: 162.5 kB / 329.3 MB, free: 9.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.3199, allocations: 11.81 kB / 329.3 MB, free: 9.352 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-06/0.3199, allocations: 0 / 329.3 MB, free: 9.352 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3201, allocations: 314.8 kB / 329.6 MB, free: 9.035 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.843e-05/0.3201, allocations: 8 kB / 329.6 MB, free: 9.027 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.42e-05/0.3202, allocations: 8 kB / 329.6 MB, free: 9.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.224e-05/0.3202, allocations: 19.98 kB / 329.6 MB, free: 9 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.402e-06/0.3202, allocations: 0 / 329.6 MB, free: 9 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001527/0.3204, allocations: 57.64 kB / 329.7 MB, free: 8.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3204, allocations: 4 kB / 329.7 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3204, allocations: 0 / 329.7 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3205, allocations: 0 / 329.7 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.3207, allocations: 27.92 kB / 329.7 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.895e-06/0.3207, allocations: 320 / 329.7 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.3208, allocations: 27.97 kB / 329.7 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.3208, allocations: 0 / 329.7 MB, free: 8.879 MB / 282.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 () * 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 9.141e-05/0.3209, allocations: 101 kB / 329.8 MB, free: 8.773 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.6e-05/0.321, allocations: 15.8 kB / 329.9 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002031/0.3212, allocations: 74.02 kB / 329.9 MB, free: 8.676 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.216e-06/0.3212, allocations: 0 / 329.9 MB, free: 8.676 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.568e-06/0.3212, allocations: 4 kB / 329.9 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.702e-06/0.3213, allocations: 0 / 329.9 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.3215, allocations: 162.3 kB / 330.1 MB, free: 8.477 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.92e-06/0.3215, allocations: 0 / 330.1 MB, free: 8.477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.3217, allocations: 27.92 kB / 330.1 MB, free: 8.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.946e-06/0.3217, allocations: 3.984 kB / 330.1 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3217, allocations: 3.953 kB / 330.1 MB, free: 8.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.3218, allocations: 3.984 kB / 330.1 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.051e-06/0.3218, allocations: 8 kB / 330.1 MB, free: 8.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.322, allocations: 155.5 kB / 330.3 MB, free: 8.262 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.238e-05/0.3221, allocations: 85.09 kB / 330.4 MB, free: 8.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.3221, allocations: 3.938 kB / 330.4 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.3223, allocations: 19.94 kB / 330.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/0.3224, allocations: 15.98 kB / 330.4 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.551e-06/0.3224, allocations: 0 / 330.4 MB, free: 8.121 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.476e-05/0.3224, allocations: 83.28 kB / 330.5 MB, free: 8.039 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.3225, allocations: 0 / 330.5 MB, free: 8.039 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003472/0.3228, allocations: 19.91 kB / 330.5 MB, free: 8.02 MB / 282.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 () * 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.0001759/0.323, allocations: 99.19 kB / 330.6 MB, free: 7.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001588/0.3232, allocations: 39.98 kB / 330.7 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.842e-06/0.3232, allocations: 0 / 330.7 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.984e-05/0.3233, allocations: 16 kB / 330.7 MB, free: 7.855 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.3235, allocations: 4 kB / 330.7 MB, free: 7.852 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003352/0.3238, allocations: 121.7 kB / 330.8 MB, free: 7.699 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.3242, allocations: 0.6885 MB / 331.5 MB, free: 6.984 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.3243, allocations: 15.38 kB / 331.5 MB, free: 6.969 MB / 282.7 MB Notification: Performance of SimCode: time 1.865e-06/0.3243, allocations: 4 kB / 331.5 MB, free: 6.965 MB / 282.7 MB Notification: Performance of Templates: time 0.002732/0.3271, allocations: 0.8836 MB / 332.4 MB, free: 6.082 MB / 282.7 MB