Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 194.9 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004779, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.103, allocations: 44.5 MB / 309 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4915/0.5946, allocations: 71.4 MB / 380.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.595, allocations: 73.84 kB / 380.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006423/0.6015, allocations: 1.256 MB / 381.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.6015, allocations: 0 / 381.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.6015, allocations: 1.062 kB / 381.7 MB, free: 14.45 MB / 314.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.0007286/0.6023, allocations: 386.6 kB / 382.1 MB, free: 14.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.6024, allocations: 10.58 kB / 382.1 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.6024, allocations: 8.203 kB / 382.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.6026, allocations: 174.3 kB / 382.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.6026, allocations: 2.812 kB / 382.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.6026, allocations: 6.688 kB / 382.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.6032, allocations: 93.41 kB / 382.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.6032, allocations: 0 / 382.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.6032, allocations: 7.891 kB / 382.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.6033, allocations: 1.078 kB / 382.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007506/0.604, allocations: 102.5 kB / 382.5 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006599/0.6047, allocations: 313.1 kB / 382.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.6052, allocations: 90.41 kB / 382.9 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.6053, allocations: 5.125 kB / 382.9 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.6054, allocations: 31.44 kB / 382.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.044e-06/0.6054, allocations: 0 / 382.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.001248/0.6066, allocations: 184 kB / 383.1 MB, free: 13.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.6067, allocations: 51.41 kB / 383.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.6068, allocations: 119.3 kB / 383.2 MB, free: 13.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.6068, allocations: 26.7 kB / 383.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/0.6069, allocations: 156.8 kB / 383.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.607, allocations: 22.69 kB / 383.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.607, allocations: 5.188 kB / 383.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.573e-05/0.6071, allocations: 317.2 kB / 383.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.6075, allocations: 49.42 kB / 383.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.6078, allocations: 47.3 kB / 383.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.6082, allocations: 50.11 kB / 383.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.6082, allocations: 0 / 383.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0008076/0.6091, allocations: 128.6 kB / 384 MB, free: 12.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.6091, allocations: 5.531 kB / 384 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.6091, allocations: 1.219 kB / 384 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.6092, allocations: 1.406 kB / 384 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.6095, allocations: 33.22 kB / 384.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.6095, allocations: 0 / 384.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.6097, allocations: 21.58 kB / 384.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.6098, allocations: 2.281 kB / 384.1 MB, free: 12.7 MB / 314.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 (5): * Single equations (assignments): 5 * 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.0001056/0.6099, allocations: 117.5 kB / 384.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.61, allocations: 10.22 kB / 384.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008976/0.6109, allocations: 152.2 kB / 384.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.6109, allocations: 1.094 kB / 384.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.6109, allocations: 3.938 kB / 384.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.6109, allocations: 1.5 kB / 384.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.6113, allocations: 188.1 kB / 384.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.6113, allocations: 1.625 kB / 384.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.6116, allocations: 24.66 kB / 384.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.6116, allocations: 5.531 kB / 384.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.6116, allocations: 3.938 kB / 384.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.6117, allocations: 2.859 kB / 384.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.6117, allocations: 0 / 384.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008515/0.6125, allocations: 243.9 kB / 384.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.6126, allocations: 78.64 kB / 384.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.6126, allocations: 6.172 kB / 384.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.6129, allocations: 20.78 kB / 384.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.791e-05/0.613, allocations: 6.781 kB / 384.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.6131, allocations: 1.219 kB / 384.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.792e-05/0.6131, allocations: 93.75 kB / 385 MB, free: 12.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6132, allocations: 0 / 385 MB, free: 12.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005545/0.6137, allocations: 20.45 kB / 385 MB, free: 12.02 MB / 314.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 (7): * Single equations (assignments): 7 * 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.0001968/0.6139, allocations: 110.7 kB / 385.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009052/0.6149, allocations: 107.9 kB / 385.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6149, allocations: 0 / 385.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004335/0.6153, allocations: 55.05 kB / 385.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003693/0.6157, allocations: 19.36 kB / 385.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006071/0.6164, allocations: 195 kB / 385.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.6166, allocations: 0.6898 MB / 386.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.6167, allocations: 11.88 kB / 386.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6167, allocations: 4 kB / 386.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of Templates: time 0.004415/0.6211, allocations: 0.9483 MB / 387.2 MB, free: 10.97 MB / 314.7 MB