Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.199/2.199, allocations: 234.9 MB / 251.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004127/0.0004128, allocations: 15.98 kB / 314.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3233, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.4601, allocations: 80.01 MB / 449.8 MB, free: 10.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.4604, allocations: 63.97 kB / 449.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009343/0.4697, allocations: 2.291 MB / 452.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4698, allocations: 0 / 452.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.4698, allocations: 0 / 452.1 MB, free: 8.258 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.0003311/0.4701, allocations: 369 kB / 452.5 MB, free: 7.844 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4702, allocations: 8.031 kB / 452.5 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.4702, allocations: 3.953 kB / 452.5 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.4704, allocations: 163.1 kB / 452.7 MB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.4704, allocations: 7.938 kB / 452.7 MB, free: 7.625 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-06/0.4704, allocations: 0 / 452.7 MB, free: 7.625 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.933e-05/0.4705, allocations: 31.89 kB / 452.7 MB, free: 7.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.4705, allocations: 3.938 kB / 452.7 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.4706, allocations: 0 / 452.7 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.4706, allocations: 0 / 452.7 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.357e-05/0.4706, allocations: 7.953 kB / 452.7 MB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.4707, allocations: 145.7 kB / 452.9 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.291e-05/0.4708, allocations: 22.56 kB / 452.9 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-06/0.4708, allocations: 96 / 452.9 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.4709, allocations: 60.27 kB / 453 MB, free: 7.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.4709, allocations: 0 / 453 MB, free: 7.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.4711, allocations: 67.34 kB / 453 MB, free: 7.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.4711, allocations: 81.09 kB / 453.1 MB, free: 7.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.588e-05/0.4712, allocations: 93.77 kB / 453.2 MB, free: 7.004 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.4712, allocations: 29.83 kB / 453.2 MB, free: 6.969 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.195e-05/0.4713, allocations: 150.6 kB / 453.4 MB, free: 6.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.4713, allocations: 0 / 453.4 MB, free: 6.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-06/0.4713, allocations: 4 kB / 453.4 MB, free: 6.816 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4714, allocations: 318.7 kB / 453.7 MB, free: 6.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-06/0.4714, allocations: 0 / 453.7 MB, free: 6.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.4715, allocations: 0 / 453.7 MB, free: 6.496 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.481e-05/0.4715, allocations: 29.7 kB / 453.7 MB, free: 6.461 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.4715, allocations: 0 / 453.7 MB, free: 6.461 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.335e-05/0.4716, allocations: 71.39 kB / 453.8 MB, free: 6.379 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.4717, allocations: 33.7 kB / 453.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.4717, allocations: 0 / 453.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.4717, allocations: 0 / 453.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.4717, allocations: 0 / 453.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4717, allocations: 3.984 kB / 453.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.4717, allocations: 0 / 453.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.4718, allocations: 8 kB / 453.8 MB, free: 6.328 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 8.99e-05/0.4719, allocations: 135.5 kB / 454 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.4719, allocations: 8.016 kB / 454 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.406e-05/0.4719, allocations: 7.109 kB / 454 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.4719, allocations: 4 kB / 454 MB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4719, allocations: 0 / 454 MB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.4719, allocations: 0 / 454 MB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.4721, allocations: 149.6 kB / 454.1 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4721, allocations: 0 / 454.1 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.4721, allocations: 0 / 454.1 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4721, allocations: 0 / 454.1 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.4721, allocations: 11.92 kB / 454.1 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4721, allocations: 4 kB / 454.1 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4721, allocations: 0 / 454.1 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001161/0.4723, allocations: 94.73 kB / 454.2 MB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.4723, allocations: 81.09 kB / 454.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.4723, allocations: 0 / 454.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.4723, allocations: 0 / 454.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.4724, allocations: 0 / 454.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-06/0.4724, allocations: 4 kB / 454.3 MB, free: 5.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.841e-05/0.4724, allocations: 79.31 kB / 454.4 MB, free: 5.652 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4724, allocations: 0 / 454.4 MB, free: 5.652 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003304/0.4728, allocations: 43.92 kB / 454.4 MB, free: 5.609 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.0006974/0.4735, allocations: 278.1 kB / 454.7 MB, free: 5.383 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.4736, allocations: 63.34 kB / 454.8 MB, free: 5.309 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4736, allocations: 4 kB / 454.8 MB, free: 5.305 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.414e-05/0.4737, allocations: 59.39 kB / 454.8 MB, free: 5.234 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.98e-05/0.4738, allocations: 10.61 kB / 454.8 MB, free: 5.227 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001761/0.474, allocations: 96.47 kB / 454.9 MB, free: 5.098 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.4742, allocations: 0.677 MB / 455.6 MB, free: 4.395 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.187e-05/0.4743, allocations: 7.438 kB / 455.6 MB, free: 4.387 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4743, allocations: 0 / 455.6 MB, free: 4.387 MB / 378.7 MB Notification: Performance of Templates: time 0.003675/0.4779, allocations: 1.2 MB / 456.8 MB, free: 3.188 MB / 378.7 MB