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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.281/2.281, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005842/0.0005843, allocations: 8 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3288, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006466/0.3295, allocations: 212.4 kB / 369.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008387/0.3303, allocations: 285.5 kB / 369.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.507e-05/0.3303, allocations: 0 / 369.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.417e-06/0.3304, allocations: 0 / 369.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.19e-06/0.3304, allocations: 0 / 369.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.3309, allocations: 67.8 kB / 369.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.135e-05/0.3309, allocations: 4 kB / 369.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.277e-05/0.331, allocations: 3.984 kB / 369.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.419e-05/0.331, allocations: 0 / 369.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.16e-05/0.331, allocations: 0 / 369.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.296e-06/0.331, allocations: 0 / 369.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.3313, allocations: 91.84 kB / 369.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-06/0.3313, allocations: 4 kB / 369.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.877e-05/0.3313, allocations: 29.64 kB / 369.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.3315, allocations: 51.91 kB / 370 MB, free: 9.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3315, allocations: 0 / 370 MB, free: 9.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3315, allocations: 3.938 kB / 370 MB, free: 9.969 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.3315, allocations: 3.938 kB / 370 MB, free: 9.965 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.000337/0.3319, allocations: 361.1 kB / 370.4 MB, free: 9.559 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3319, allocations: 12.02 kB / 370.4 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.052e-05/0.332, allocations: 30.56 kB / 370.4 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.332, allocations: 7.859 kB / 370.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.3321, allocations: 163.1 kB / 370.6 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.3322, allocations: 0 / 370.6 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.3322, allocations: 4 kB / 370.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.716e-05/0.3323, allocations: 25.7 kB / 370.6 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.3323, allocations: 0 / 370.6 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.3323, allocations: 0 / 370.6 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3323, allocations: 4 kB / 370.6 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.238e-05/0.3324, allocations: 11.89 kB / 370.6 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.3325, allocations: 145.7 kB / 370.8 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.823e-05/0.3326, allocations: 30.61 kB / 370.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.3326, allocations: 0 / 370.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.3326, allocations: 56.27 kB / 370.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.3327, allocations: 0 / 370.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.00019/0.3329, allocations: 67.39 kB / 370.9 MB, free: 8.871 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.3329, allocations: 77.11 kB / 371 MB, free: 8.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.471e-05/0.333, allocations: 97.98 kB / 371.1 MB, free: 8.672 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.333, allocations: 25.7 kB / 371.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.3331, allocations: 150.6 kB / 371.2 MB, free: 8.492 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.3331, allocations: 4 kB / 371.3 MB, free: 8.488 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.3331, allocations: 3.938 kB / 371.3 MB, free: 8.484 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3332, allocations: 314.8 kB / 371.6 MB, free: 8.168 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.3332, allocations: 0 / 371.6 MB, free: 8.168 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.3333, allocations: 0 / 371.6 MB, free: 8.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.335e-05/0.3333, allocations: 33.69 kB / 371.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3333, allocations: 4.062 kB / 371.6 MB, free: 8.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.22e-05/0.3334, allocations: 63.41 kB / 371.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.3335, allocations: 33.64 kB / 371.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3335, allocations: 0 / 371.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.3335, allocations: 0 / 371.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.3335, allocations: 0 / 371.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3336, allocations: 0 / 371.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.3336, allocations: 4 kB / 371.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.3336, allocations: 3.984 kB / 371.7 MB, free: 8.004 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 9.394e-05/0.3337, allocations: 139.5 kB / 371.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.3337, allocations: 4 kB / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.024e-05/0.3338, allocations: 3.125 kB / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3338, allocations: 0 / 371.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3338, allocations: 3.938 kB / 371.8 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3338, allocations: 3.984 kB / 371.9 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.3339, allocations: 149.6 kB / 372 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3339, allocations: 4 kB / 372 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.3339, allocations: 0 / 372 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3339, allocations: 0 / 372 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.334, allocations: 4 kB / 372 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.334, allocations: 0 / 372 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.334, allocations: 0 / 372 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.3341, allocations: 98.72 kB / 372.1 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.3342, allocations: 81.11 kB / 372.2 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.3342, allocations: 0 / 372.2 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.247e-05/0.3342, allocations: 0 / 372.2 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.929e-05/0.3342, allocations: 8.031 kB / 372.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.3343, allocations: 0 / 372.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.179e-05/0.3343, allocations: 75.28 kB / 372.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3343, allocations: 0 / 372.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003189/0.3346, allocations: 39.92 kB / 372.3 MB, free: 7.297 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.000972/0.3356, allocations: 0.8051 MB / 373.1 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.885e-05/0.3357, allocations: 63.33 kB / 373.2 MB, free: 6.438 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3357, allocations: 0 / 373.2 MB, free: 6.438 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.07e-05/0.3358, allocations: 59.41 kB / 373.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.51e-05/0.3359, allocations: 3.797 kB / 373.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003449/0.3363, allocations: 158 kB / 373.4 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.3365, allocations: 0.6731 MB / 374.1 MB, free: 5.465 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.588e-05/0.3365, allocations: 11.44 kB / 374.1 MB, free: 5.453 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3365, allocations: 0 / 374.1 MB, free: 5.453 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.525/2.862, allocations: 1.325 MB / 375.4 MB, free: 4.125 MB / 298.7 MB