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.406/2.406, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004352/0.0004353, allocations: 16 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2825, allocations: 54.85 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4317, allocations: 80.01 MB / 449.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.432, allocations: 63.97 kB / 449.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008963/0.441, allocations: 2.303 MB / 451.6 MB, free: 8.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.438e-06/0.441, allocations: 0 / 451.6 MB, free: 8.211 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.903e-06/0.441, allocations: 0 / 451.6 MB, free: 8.211 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.0003656/0.4414, allocations: 365 kB / 452 MB, free: 7.801 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4415, allocations: 12.03 kB / 452 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.4415, allocations: 7.953 kB / 452 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.4416, allocations: 159.1 kB / 452.2 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.4417, allocations: 7.938 kB / 452.2 MB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-06/0.4417, allocations: 0 / 452.2 MB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.76e-05/0.4418, allocations: 29.7 kB / 452.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.031e-06/0.4418, allocations: 0 / 452.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.112e-06/0.4418, allocations: 0 / 452.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.77e-06/0.4418, allocations: 0 / 452.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.933e-05/0.4418, allocations: 3.953 kB / 452.2 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.442, allocations: 153.7 kB / 452.4 MB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.576e-05/0.4421, allocations: 24.61 kB / 452.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.482e-06/0.4421, allocations: 0 / 452.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.27e-05/0.4422, allocations: 60.36 kB / 452.4 MB, free: 7.234 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.719e-06/0.4422, allocations: 0 / 452.4 MB, free: 7.234 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002108/0.4424, allocations: 71.38 kB / 452.5 MB, free: 7.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.4425, allocations: 77.11 kB / 452.6 MB, free: 7.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.789e-05/0.4426, allocations: 88.91 kB / 452.7 MB, free: 6.965 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.4426, allocations: 25.7 kB / 452.7 MB, free: 6.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.348e-05/0.4427, allocations: 154.7 kB / 452.8 MB, free: 6.781 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.4427, allocations: 0 / 452.8 MB, free: 6.781 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.448e-06/0.4428, allocations: 0 / 452.8 MB, free: 6.781 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.4429, allocations: 322.7 kB / 453.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.344e-05/0.4429, allocations: 3.938 kB / 453.2 MB, free: 6.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.954e-06/0.443, allocations: 0 / 453.2 MB, free: 6.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.479e-05/0.443, allocations: 25.7 kB / 453.2 MB, free: 6.422 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.291e-06/0.443, allocations: 4 kB / 453.2 MB, free: 6.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.913e-05/0.4431, allocations: 67.45 kB / 453.3 MB, free: 6.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.263e-05/0.4432, allocations: 33.7 kB / 453.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.816e-06/0.4432, allocations: 0 / 453.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.4432, allocations: 0 / 453.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.538e-06/0.4432, allocations: 0 / 453.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.791e-06/0.4433, allocations: 0 / 453.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.4433, allocations: 0 / 453.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.817e-06/0.4433, allocations: 0 / 453.3 MB, free: 6.301 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 () * Number of clocked 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.000115/0.4434, allocations: 143.5 kB / 453.4 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-06/0.4434, allocations: 4.031 kB / 453.4 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.372e-05/0.4435, allocations: 3.125 kB / 453.4 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4435, allocations: 3.938 kB / 453.4 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.015e-06/0.4435, allocations: 4 kB / 453.4 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.4435, allocations: 0 / 453.4 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000146/0.4437, allocations: 153.6 kB / 453.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-06/0.4437, allocations: 3.938 kB / 453.6 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.178e-06/0.4437, allocations: 0 / 453.6 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.694e-06/0.4437, allocations: 0 / 453.6 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.953e-06/0.4437, allocations: 4 kB / 453.6 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.758e-06/0.4437, allocations: 0 / 453.6 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.759e-06/0.4437, allocations: 4 kB / 453.6 MB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.4439, allocations: 90.78 kB / 453.7 MB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.4439, allocations: 81.11 kB / 453.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.444, allocations: 0 / 453.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.205e-05/0.444, allocations: 0 / 453.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.07e-05/0.444, allocations: 7.984 kB / 453.8 MB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-06/0.444, allocations: 0 / 453.8 MB, free: 5.699 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.122e-05/0.4441, allocations: 83.31 kB / 453.9 MB, free: 5.617 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.4441, allocations: 0 / 453.9 MB, free: 5.617 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003567/0.4445, allocations: 39.92 kB / 453.9 MB, free: 5.578 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) * Number of clocked states: 0 () * 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.0007141/0.4452, allocations: 278.5 kB / 454.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.4453, allocations: 63.39 kB / 454.2 MB, free: 5.273 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.787e-06/0.4453, allocations: 0 / 454.2 MB, free: 5.273 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.642e-05/0.4454, allocations: 55.41 kB / 454.3 MB, free: 5.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/0.4455, allocations: 11.94 kB / 454.3 MB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001993/0.4457, allocations: 100.4 kB / 454.4 MB, free: 5.062 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.4461, allocations: 0.677 MB / 455.1 MB, free: 4.359 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.228e-05/0.4461, allocations: 7.438 kB / 455.1 MB, free: 4.352 MB / 378.7 MB Notification: Performance of SimCode: time 1.365e-06/0.4461, allocations: 0 / 455.1 MB, free: 4.352 MB / 378.7 MB Notification: Performance of Templates: time 0.004996/0.4511, allocations: 1.199 MB / 456.3 MB, free: 3.152 MB / 378.7 MB