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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.272/2.272, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.267e-05/1.28e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2763, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4006, allocations: 79.25 MB / 437.3 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.4009, allocations: 59.97 kB / 437.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009042/0.4099, allocations: 2.276 MB / 439.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.5e-06/0.41, allocations: 3.938 kB / 439.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.906e-06/0.41, allocations: 4 kB / 439.6 MB, free: 13.22 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.000353/0.4104, allocations: 352.3 kB / 440 MB, free: 12.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4104, allocations: 12.03 kB / 440 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.4105, allocations: 7.938 kB / 440 MB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.4106, allocations: 163.1 kB / 440.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.4106, allocations: 3.938 kB / 440.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.4107, allocations: 4 kB / 440.2 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.173e-05/0.4107, allocations: 0 / 440.2 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.159e-05/0.4108, allocations: 33.64 kB / 440.2 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.479e-06/0.4108, allocations: 0 / 440.2 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.642e-06/0.4108, allocations: 0 / 440.2 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.101e-06/0.4108, allocations: 3.953 kB / 440.2 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/0.411, allocations: 126.2 kB / 440.3 MB, free: 12.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.823e-05/0.4111, allocations: 26.55 kB / 440.3 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.657e-05/0.4111, allocations: 10.91 kB / 440.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.872e-06/0.4111, allocations: 0 / 440.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/0.4112, allocations: 56.33 kB / 440.4 MB, free: 12.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.951e-06/0.4112, allocations: 4 kB / 440.4 MB, free: 12.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001908/0.4114, allocations: 37.62 kB / 440.5 MB, free: 12.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.4115, allocations: 77.11 kB / 440.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.408e-05/0.4115, allocations: 88.91 kB / 440.6 MB, free: 12.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.4116, allocations: 33.73 kB / 440.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.766e-05/0.4116, allocations: 154.6 kB / 440.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.4117, allocations: 0 / 440.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-06/0.4117, allocations: 0 / 440.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4119, allocations: 314.8 kB / 441.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.471e-06/0.4119, allocations: 0 / 441.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.81e-06/0.4119, allocations: 0 / 441.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.182e-05/0.4119, allocations: 4 kB / 441.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.412, allocations: 0 / 441.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001066/0.4121, allocations: 41.75 kB / 441.1 MB, free: 11.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.4121, allocations: 29.7 kB / 441.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.4121, allocations: 0 / 441.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.4122, allocations: 0 / 441.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.555e-06/0.4122, allocations: 8 kB / 441.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.906e-06/0.4122, allocations: 3.984 kB / 441.2 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.4122, allocations: 0 / 441.2 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.4122, allocations: 0 / 441.2 MB, free: 11.44 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.0001154/0.4124, allocations: 140.3 kB / 441.3 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.22e-05/0.4124, allocations: 8.031 kB / 441.3 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.173e-05/0.4124, allocations: 7.703 kB / 441.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4124, allocations: 3.984 kB / 441.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.553e-06/0.4124, allocations: 0 / 441.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4124, allocations: 0 / 441.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.4126, allocations: 130.2 kB / 441.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-06/0.4126, allocations: 0 / 441.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.453e-06/0.4126, allocations: 3.953 kB / 441.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.587e-06/0.4126, allocations: 3.938 kB / 441.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.953e-06/0.4126, allocations: 0 / 441.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.011e-06/0.4126, allocations: 3.938 kB / 441.5 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.372e-06/0.4126, allocations: 4 kB / 441.5 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.4128, allocations: 65.12 kB / 441.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.4128, allocations: 77.11 kB / 441.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.4129, allocations: 3.953 kB / 441.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.188e-05/0.4129, allocations: 0 / 441.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.11e-05/0.4129, allocations: 4 kB / 441.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.4129, allocations: 0 / 441.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.823e-05/0.413, allocations: 79.31 kB / 441.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.833e-06/0.413, allocations: 0 / 441.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000399/0.4134, allocations: 39.92 kB / 441.8 MB, free: 10.8 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.0007208/0.4141, allocations: 282.1 kB / 442 MB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.643e-05/0.4143, allocations: 55.41 kB / 442.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.917e-06/0.4143, allocations: 0 / 442.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.661e-05/0.4143, allocations: 55.41 kB / 442.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.503e-05/0.4144, allocations: 0 / 442.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001683/0.4146, allocations: 69.91 kB / 442.2 MB, free: 10.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.415, allocations: 0.6845 MB / 442.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.141e-05/0.415, allocations: 7.438 kB / 442.9 MB, free: 9.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.251e-06/0.415, allocations: 0 / 442.9 MB, free: 9.59 MB / 378.7 MB Notification: Performance of Templates: time 0.003312/0.4183, allocations: 1.198 MB / 444.1 MB, free: 8.391 MB / 378.7 MB