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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.263/2.263, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.904e-05/2.91e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3588, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.5044, allocations: 79.25 MB / 437.4 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.5047, allocations: 63.91 kB / 437.4 MB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009521/0.5142, allocations: 2.276 MB / 439.7 MB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5143, allocations: 3.938 kB / 439.7 MB, free: 13.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.5143, allocations: 0 / 439.7 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.0003876/0.5147, allocations: 364.2 kB / 440.1 MB, free: 12.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.5148, allocations: 16.02 kB / 440.1 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.5148, allocations: 11.86 kB / 440.1 MB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.515, allocations: 159.1 kB / 440.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.515, allocations: 0 / 440.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.515, allocations: 0 / 440.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.091e-05/0.515, allocations: 0 / 440.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.734e-05/0.5151, allocations: 33.69 kB / 440.3 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.5151, allocations: 0 / 440.3 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.5152, allocations: 0 / 440.3 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.5152, allocations: 3.953 kB / 440.3 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.5153, allocations: 134.2 kB / 440.4 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.939e-05/0.5154, allocations: 24.72 kB / 440.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.64e-05/0.5154, allocations: 8.844 kB / 440.5 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.5154, allocations: 0 / 440.5 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.5155, allocations: 56.27 kB / 440.5 MB, free: 12.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.5155, allocations: 64 / 440.5 MB, free: 12.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000191/0.5157, allocations: 37.69 kB / 440.5 MB, free: 12.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.5158, allocations: 85.14 kB / 440.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.11e-05/0.5158, allocations: 85 kB / 440.7 MB, free: 12.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.5159, allocations: 29.7 kB / 440.7 MB, free: 12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.969e-05/0.5159, allocations: 150.6 kB / 440.9 MB, free: 11.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.5159, allocations: 0 / 440.9 MB, free: 11.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-06/0.516, allocations: 3.938 kB / 440.9 MB, free: 11.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5161, allocations: 314.8 kB / 441.2 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.886e-06/0.5161, allocations: 0 / 441.2 MB, free: 11.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.138e-06/0.5161, allocations: 3.938 kB / 441.2 MB, free: 11.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.284e-05/0.5162, allocations: 12.05 kB / 441.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.5162, allocations: 0 / 441.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.549e-05/0.5163, allocations: 33.7 kB / 441.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.5164, allocations: 29.7 kB / 441.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.5164, allocations: 3.938 kB / 441.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.5164, allocations: 0 / 441.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.445e-05/0.5164, allocations: 11.98 kB / 441.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.5165, allocations: 0 / 441.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.65e-05/0.5165, allocations: 0 / 441.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.5165, allocations: 4.031 kB / 441.3 MB, free: 11.42 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.0001056/0.5166, allocations: 138.6 kB / 441.4 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.44e-05/0.5167, allocations: 41.62 kB / 441.5 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-06/0.5167, allocations: 0 / 441.5 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.558e-05/0.5168, allocations: 7.703 kB / 441.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.5168, allocations: 0 / 441.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.5168, allocations: 4 kB / 441.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.5168, allocations: 0 / 441.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.5169, allocations: 126.2 kB / 441.6 MB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.517, allocations: 8.016 kB / 441.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.517, allocations: 0 / 441.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.517, allocations: 0 / 441.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.517, allocations: 0 / 441.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.517, allocations: 4 kB / 441.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.517, allocations: 0 / 441.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.5171, allocations: 65.08 kB / 441.7 MB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.5172, allocations: 77.11 kB / 441.8 MB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.5172, allocations: 8.031 kB / 441.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.5173, allocations: 0 / 441.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.701e-05/0.5173, allocations: 0 / 441.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.5173, allocations: 0 / 441.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.415e-05/0.5173, allocations: 75.28 kB / 441.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5174, allocations: 3.938 kB / 441.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000377/0.5177, allocations: 47.97 kB / 441.9 MB, free: 10.74 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.00107/0.5188, allocations: 0.7689 MB / 442.7 MB, free: 9.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.519, allocations: 71.27 kB / 442.7 MB, free: 9.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.519, allocations: 0 / 442.7 MB, free: 9.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.85e-05/0.519, allocations: 55.41 kB / 442.8 MB, free: 9.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001049/0.5191, allocations: 0 / 442.8 MB, free: 9.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.5195, allocations: 119.4 kB / 442.9 MB, free: 9.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.5198, allocations: 0.6729 MB / 443.6 MB, free: 8.961 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.108e-05/0.5198, allocations: 11.38 kB / 443.6 MB, free: 8.949 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5198, allocations: 4.125 kB / 443.6 MB, free: 8.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.704/3.224, allocations: 1.347 MB / 444.9 MB, free: 7.594 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat