Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStreams.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadModel(ModelicaTest): time 2.355/2.355, allocations: 235 MB / 248.1 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.86e-05, allocations: 4 kB / 309.7 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4148/0.4149, allocations: 54.85 MB / 364.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.5637, allocations: 79.93 MB / 444.5 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.5641, allocations: 60.59 kB / 444.5 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01457/0.5787, allocations: 2.291 MB / 446.8 MB, free: 14.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.579e-06/0.5788, allocations: 0 / 446.8 MB, free: 14.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.306e-06/0.5788, allocations: 0 / 446.8 MB, free: 14.26 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004823/0.5793, allocations: 356.7 kB / 447.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.5794, allocations: 16.45 kB / 447.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.5794, allocations: 3.953 kB / 447.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.5796, allocations: 159.1 kB / 447.3 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.5797, allocations: 5.031 kB / 447.3 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.5797, allocations: 7.938 kB / 447.3 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.5798, allocations: 25.7 kB / 447.4 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.486e-06/0.5799, allocations: 0 / 447.4 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.5799, allocations: 0 / 447.4 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.5799, allocations: 4 kB / 447.4 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.218e-05/0.58, allocations: 7.953 kB / 447.4 MB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.5802, allocations: 145.7 kB / 447.5 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.535e-05/0.5803, allocations: 24.7 kB / 447.5 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.581e-05/0.5803, allocations: 8.797 kB / 447.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.5804, allocations: 0 / 447.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8e-05/0.5805, allocations: 64.89 kB / 447.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 3.461e-06/0.5805, allocations: 4.062 kB / 447.6 MB, free: 13.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002232/0.5807, allocations: 63.39 kB / 447.7 MB, free: 13.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.5808, allocations: 77.11 kB / 447.8 MB, free: 13.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.603e-05/0.5809, allocations: 89.03 kB / 447.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.581, allocations: 29.7 kB / 447.9 MB, free: 12.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.198e-05/0.5811, allocations: 150.6 kB / 448 MB, free: 12.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.5811, allocations: 1.031 kB / 448 MB, free: 12.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-06/0.5812, allocations: 0 / 448 MB, free: 12.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.5814, allocations: 314.8 kB / 448.3 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.5814, allocations: 0 / 448.3 MB, free: 12.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.993e-05/0.5815, allocations: 7.938 kB / 448.3 MB, free: 12.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.124e-05/0.5815, allocations: 33.77 kB / 448.4 MB, free: 12.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.06e-06/0.5816, allocations: 0 / 448.4 MB, free: 12.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001706/0.5818, allocations: 63.39 kB / 448.4 MB, free: 12.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.5818, allocations: 29.7 kB / 448.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.076e-06/0.5819, allocations: 3.938 kB / 448.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.5819, allocations: 0 / 448.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.28e-06/0.5819, allocations: 5.906 kB / 448.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.149e-06/0.5819, allocations: 0 / 448.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.879e-05/0.582, allocations: 0 / 448.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.582, allocations: 0 / 448.5 MB, free: 12.36 MB / 378.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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001404/0.5822, allocations: 138.7 kB / 448.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.5822, allocations: 0 / 448.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.351e-05/0.5823, allocations: 11.06 kB / 448.6 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.839e-06/0.5823, allocations: 0 / 448.6 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5823, allocations: 0 / 448.6 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.242e-06/0.5823, allocations: 0 / 448.6 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.5825, allocations: 157.6 kB / 448.8 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.039e-06/0.5826, allocations: 3.938 kB / 448.8 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-06/0.5826, allocations: 0 / 448.8 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.313e-06/0.5826, allocations: 7.938 kB / 448.8 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.5826, allocations: 3.984 kB / 448.8 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.103e-06/0.5827, allocations: 0 / 448.8 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.597e-06/0.5827, allocations: 0 / 448.8 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.5829, allocations: 90.8 kB / 448.9 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.81e-05/0.583, allocations: 81.09 kB / 449 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.583, allocations: 4 kB / 449 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.364e-05/0.5831, allocations: 0 / 449 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.476e-05/0.5831, allocations: 4.031 kB / 449 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.5831, allocations: 0 / 449 MB, free: 11.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.204e-05/0.5832, allocations: 75.28 kB / 449 MB, free: 11.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.061e-06/0.5832, allocations: 0 / 449 MB, free: 11.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006235/0.5838, allocations: 32 kB / 449.1 MB, free: 11.65 MB / 378.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001102/0.585, allocations: 291.3 kB / 449.3 MB, free: 11.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.5851, allocations: 55.41 kB / 449.4 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.836e-06/0.5852, allocations: 3.938 kB / 449.4 MB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.104e-05/0.5853, allocations: 55.41 kB / 449.5 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.5854, allocations: 7.953 kB / 449.5 MB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002183/0.5857, allocations: 74.75 kB / 449.5 MB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.5861, allocations: 0.6692 MB / 450.2 MB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.136e-05/0.5862, allocations: 11.56 kB / 450.2 MB, free: 10.47 MB / 378.7 MB Notification: Performance of SimCode: time 5.43e-06/0.5862, allocations: 3.938 kB / 450.2 MB, free: 10.46 MB / 378.7 MB Notification: Performance of Templates: time 0.003322/0.5896, allocations: 1.195 MB / 451.4 MB, free: 9.27 MB / 378.7 MB