Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.314/2.314, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006035/0.0006037, allocations: 12 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3498, allocations: 54.87 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.4985, allocations: 79.27 MB / 448.6 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.4988, allocations: 71.91 kB / 448.7 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003855/0.5027, allocations: 0.9025 MB / 449.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.5027, allocations: 0 / 449.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.5027, allocations: 0 / 449.6 MB, free: 10.27 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003268/0.5031, allocations: 343.3 kB / 449.9 MB, free: 9.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.5031, allocations: 8.031 kB / 449.9 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.202e-05/0.5032, allocations: 46.5 kB / 450 MB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.5032, allocations: 7.953 kB / 450 MB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.5033, allocations: 167 kB / 450.2 MB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.5034, allocations: 4 kB / 450.2 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/0.5034, allocations: 0 / 450.2 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.5036, allocations: 57.69 kB / 450.2 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.5036, allocations: 0 / 450.2 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.5036, allocations: 224 / 450.2 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.5036, allocations: 3.938 kB / 450.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.5038, allocations: 59.83 kB / 450.3 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000215/0.504, allocations: 173.6 kB / 450.4 MB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.5042, allocations: 74.55 kB / 450.5 MB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003898/0.5046, allocations: 251.3 kB / 450.8 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.5047, allocations: 38.78 kB / 450.8 MB, free: 8.832 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.844e-06/0.5047, allocations: 0 / 450.8 MB, free: 8.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003035/0.505, allocations: 101.9 kB / 450.9 MB, free: 8.727 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.505, allocations: 55.41 kB / 451 MB, free: 8.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.314e-05/0.5051, allocations: 85.09 kB / 451 MB, free: 8.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.5051, allocations: 29.64 kB / 451.1 MB, free: 8.535 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.091e-05/0.5052, allocations: 154.6 kB / 451.2 MB, free: 8.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/0.5053, allocations: 35.45 kB / 451.3 MB, free: 8.348 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-06/0.5053, allocations: 0 / 451.3 MB, free: 8.348 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5054, allocations: 318.8 kB / 451.6 MB, free: 8.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.505e-05/0.5055, allocations: 24.11 kB / 451.6 MB, free: 8.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.621e-05/0.5056, allocations: 12 kB / 451.6 MB, free: 7.992 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.588e-05/0.5056, allocations: 19.98 kB / 451.6 MB, free: 7.973 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5056, allocations: 0 / 451.6 MB, free: 7.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001877/0.5058, allocations: 81.62 kB / 451.7 MB, free: 7.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.5059, allocations: 4 kB / 451.7 MB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.5059, allocations: 0 / 451.7 MB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.5059, allocations: 4 kB / 451.7 MB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.5061, allocations: 15.94 kB / 451.7 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.5061, allocations: 0 / 451.7 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.764e-05/0.5061, allocations: 11.98 kB / 451.7 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.5062, allocations: 4 kB / 451.7 MB, free: 7.848 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.981e-05/0.5063, allocations: 113.8 kB / 451.9 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.5063, allocations: 7.906 kB / 451.9 MB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.5066, allocations: 97.8 kB / 452 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.5066, allocations: 0 / 452 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5066, allocations: 4 kB / 452 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.5066, allocations: 96 / 452 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.5068, allocations: 185.4 kB / 452.1 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5068, allocations: 4 kB / 452.1 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.5069, allocations: 16 kB / 452.2 MB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.507, allocations: 0 / 452.2 MB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.507, allocations: 3.938 kB / 452.2 MB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.507, allocations: 3.984 kB / 452.2 MB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.507, allocations: 3.984 kB / 452.2 MB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002098/0.5072, allocations: 113 kB / 452.3 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.412e-05/0.5073, allocations: 81.11 kB / 452.4 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.5073, allocations: 4 kB / 452.4 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.983e-05/0.5074, allocations: 7.984 kB / 452.4 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.243e-05/0.5074, allocations: 4 kB / 452.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.5074, allocations: 0 / 452.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.081e-05/0.5075, allocations: 79.22 kB / 452.5 MB, free: 7.027 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5075, allocations: 0 / 452.5 MB, free: 7.027 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000284/0.5078, allocations: 23.94 kB / 452.5 MB, free: 7.004 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0005738/0.5083, allocations: 0.665 MB / 453.1 MB, free: 6.312 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001729/0.5085, allocations: 47.92 kB / 453.2 MB, free: 6.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5086, allocations: 384 / 453.2 MB, free: 6.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.662e-05/0.5086, allocations: 35.92 kB / 453.2 MB, free: 6.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.5088, allocations: 0 / 453.2 MB, free: 6.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005637/0.5093, allocations: 218 kB / 453.4 MB, free: 5.969 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.5097, allocations: 0.6887 MB / 454.1 MB, free: 5.254 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.5097, allocations: 15.44 kB / 454.1 MB, free: 5.238 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5097, allocations: 0 / 454.1 MB, free: 5.238 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.448/2.958, allocations: 1.005 MB / 455.1 MB, free: 4.23 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat does not exist to compare? outputFormat=mat