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.309/2.309, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004327/0.0004329, allocations: 8 kB / 314.3 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3316, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005657/0.3323, allocations: 216.5 kB / 369.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007741/0.3331, allocations: 281.3 kB / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.404e-05/0.3331, allocations: 0 / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.143e-05/0.3331, allocations: 0 / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.466e-06/0.3331, allocations: 0 / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.3336, allocations: 67.8 kB / 369.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.811e-05/0.3336, allocations: 3.984 kB / 369.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.175e-05/0.3336, allocations: 0 / 369.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.617e-05/0.3337, allocations: 3.984 kB / 369.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.443e-05/0.3337, allocations: 4 kB / 369.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.917e-06/0.3337, allocations: 4 kB / 369.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.3339, allocations: 87.84 kB / 369.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.758e-06/0.334, allocations: 3.938 kB / 369.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.06e-05/0.334, allocations: 29.7 kB / 369.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.3341, allocations: 51.91 kB / 369.9 MB, free: 9.988 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.278e-06/0.3342, allocations: 0 / 369.9 MB, free: 9.988 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.146e-06/0.3342, allocations: 7.938 kB / 369.9 MB, free: 9.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.3342, allocations: 0 / 369.9 MB, free: 9.98 MB / 298.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.0003766/0.3346, allocations: 357.1 kB / 370.3 MB, free: 9.578 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3346, allocations: 12.03 kB / 370.3 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.3347, allocations: 3.953 kB / 370.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.3348, allocations: 163.1 kB / 370.4 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.3348, allocations: 4 kB / 370.4 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.976e-06/0.3348, allocations: 0 / 370.4 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.59e-05/0.3349, allocations: 25.7 kB / 370.5 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.728e-06/0.3349, allocations: 0 / 370.5 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.15e-06/0.335, allocations: 4 kB / 370.5 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.335, allocations: 0 / 370.5 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.173e-05/0.335, allocations: 7.891 kB / 370.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001669/0.3352, allocations: 153.7 kB / 370.6 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.394e-05/0.3352, allocations: 22.61 kB / 370.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.792e-06/0.3353, allocations: 0 / 370.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.448e-05/0.3353, allocations: 56.27 kB / 370.7 MB, free: 9.016 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.651e-06/0.3353, allocations: 0 / 370.7 MB, free: 9.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000177/0.3355, allocations: 75.3 kB / 370.8 MB, free: 8.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.3356, allocations: 81.23 kB / 370.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.677e-05/0.3357, allocations: 93.86 kB / 371 MB, free: 8.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3357, allocations: 25.7 kB / 371 MB, free: 8.699 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.307e-05/0.3358, allocations: 150.6 kB / 371.1 MB, free: 8.551 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.3358, allocations: 3.938 kB / 371.1 MB, free: 8.547 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/0.3358, allocations: 0 / 371.1 MB, free: 8.547 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.336, allocations: 318.7 kB / 371.4 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.005e-05/0.336, allocations: 0 / 371.4 MB, free: 8.227 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.05e-05/0.336, allocations: 4 kB / 371.4 MB, free: 8.223 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.568e-05/0.3361, allocations: 29.77 kB / 371.5 MB, free: 8.188 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.075e-06/0.3361, allocations: 0 / 371.5 MB, free: 8.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001013/0.3362, allocations: 67.39 kB / 371.5 MB, free: 8.109 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.3363, allocations: 32.36 kB / 371.6 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.3363, allocations: 3.938 kB / 371.6 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.3363, allocations: 0 / 371.6 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.411e-06/0.3363, allocations: 7.984 kB / 371.6 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.038e-06/0.3363, allocations: 0 / 371.6 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.84e-05/0.3364, allocations: 0 / 371.6 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.019e-06/0.3364, allocations: 4.031 kB / 371.6 MB, free: 8.059 MB / 298.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.0001163/0.3365, allocations: 143.5 kB / 371.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.825e-06/0.3365, allocations: 0 / 371.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.511e-06/0.3365, allocations: 3.125 kB / 371.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-06/0.3366, allocations: 0 / 371.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.972e-06/0.3366, allocations: 0 / 371.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.372e-06/0.3366, allocations: 0 / 371.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.3367, allocations: 157.6 kB / 371.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3367, allocations: 0 / 371.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.156e-06/0.3367, allocations: 0 / 371.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.286e-06/0.3368, allocations: 4 kB / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.239e-06/0.3368, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.13e-06/0.3368, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.3368, allocations: 0 / 371.9 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.3369, allocations: 98.72 kB / 372 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.337, allocations: 77.11 kB / 372.1 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.337, allocations: 4 kB / 372.1 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.862e-05/0.3371, allocations: 8.031 kB / 372.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.613e-05/0.3371, allocations: 0 / 372.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.577e-06/0.3371, allocations: 0 / 372.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.976e-05/0.3371, allocations: 75.28 kB / 372.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.79e-07/0.3372, allocations: 0 / 372.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003254/0.3375, allocations: 35.98 kB / 372.2 MB, free: 7.359 MB / 298.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.0006999/0.3382, allocations: 283.8 kB / 372.5 MB, free: 7.133 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.3383, allocations: 59.39 kB / 372.5 MB, free: 7.062 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.03e-06/0.3383, allocations: 0 / 372.5 MB, free: 7.062 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.352e-05/0.3384, allocations: 59.41 kB / 372.6 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.878e-05/0.3385, allocations: 7.891 kB / 372.6 MB, free: 6.984 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001944/0.3387, allocations: 109 kB / 372.7 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.3391, allocations: 0.677 MB / 373.4 MB, free: 6.141 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.3391, allocations: 11.56 kB / 373.4 MB, free: 6.129 MB / 298.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3391, allocations: 0 / 373.4 MB, free: 6.129 MB / 298.7 MB Notification: Performance of Templates: time 0.00334/0.3425, allocations: 1.19 MB / 374.6 MB, free: 4.938 MB / 298.7 MB