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.Test02RegFun3.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.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.307e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4032, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.5586, allocations: 79.75 MB / 437.9 MB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5589, allocations: 71.95 kB / 437.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04571/0.6046, allocations: 8.177 MB / 446.1 MB, free: 6.738 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6047, allocations: 0 / 446.1 MB, free: 6.738 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.6047, allocations: 0 / 446.1 MB, free: 6.738 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004136/0.6051, allocations: 346.4 kB / 446.5 MB, free: 6.355 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.6052, allocations: 12.03 kB / 446.5 MB, free: 6.344 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.6052, allocations: 3.953 kB / 446.5 MB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.6054, allocations: 159.1 kB / 446.6 MB, free: 6.145 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.6054, allocations: 4 kB / 446.6 MB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.6054, allocations: 0 / 446.6 MB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.25e-05/0.6055, allocations: 11.98 kB / 446.6 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.851e-05/0.6056, allocations: 37.64 kB / 446.7 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.6056, allocations: 0 / 446.7 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.6057, allocations: 0 / 446.7 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.6057, allocations: 3.953 kB / 446.7 MB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003533/0.606, allocations: 225.4 kB / 446.9 MB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.185e-05/0.6061, allocations: 18.58 kB / 446.9 MB, free: 5.797 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.008e-05/0.6061, allocations: 8.922 kB / 446.9 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.6062, allocations: 0 / 446.9 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.6062, allocations: 34.56 kB / 447 MB, free: 5.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.6062, allocations: 0 / 447 MB, free: 5.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001883/0.6064, allocations: 41.59 kB / 447 MB, free: 5.695 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.6064, allocations: 51.41 kB / 447.1 MB, free: 5.633 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.779e-05/0.6065, allocations: 93.02 kB / 447.1 MB, free: 5.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.6066, allocations: 29.7 kB / 447.2 MB, free: 5.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.6066, allocations: 158.5 kB / 447.3 MB, free: 5.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.25e-06/0.6067, allocations: 0 / 447.3 MB, free: 5.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/0.6067, allocations: 0 / 447.3 MB, free: 5.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.6068, allocations: 310.8 kB / 447.6 MB, free: 5.031 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.44e-05/0.6068, allocations: 4 kB / 447.6 MB, free: 5.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.01e-05/0.6069, allocations: 18.7 kB / 447.7 MB, free: 5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.317e-05/0.6069, allocations: 15.98 kB / 447.7 MB, free: 4.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.607, allocations: 0 / 447.7 MB, free: 4.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000116/0.6071, allocations: 45.55 kB / 447.7 MB, free: 4.934 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.6071, allocations: 4 kB / 447.7 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.6071, allocations: 8 kB / 447.7 MB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.6072, allocations: 3.984 kB / 447.7 MB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.402e-05/0.6072, allocations: 8.094 kB / 447.7 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.6072, allocations: 3.953 kB / 447.7 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.233e-05/0.6073, allocations: 0 / 447.7 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.6073, allocations: 7.938 kB / 447.7 MB, free: 4.898 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 7.74e-05/0.6074, allocations: 107 kB / 447.9 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001017/0.6075, allocations: 37.69 kB / 447.9 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.6075, allocations: 0 / 447.9 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.6077, allocations: 53.42 kB / 447.9 MB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.6077, allocations: 3.953 kB / 447.9 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.6077, allocations: 4 kB / 447.9 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.6077, allocations: 0 / 447.9 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.6079, allocations: 130.3 kB / 448.1 MB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.6079, allocations: 0 / 448.1 MB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.309e-06/0.6079, allocations: 3.984 kB / 448.1 MB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.6079, allocations: 7.938 kB / 448.1 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.6079, allocations: 0 / 448.1 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.608, allocations: 0 / 448.1 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.608, allocations: 4.031 kB / 448.1 MB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.6081, allocations: 135.5 kB / 448.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-05/0.6082, allocations: 77.11 kB / 448.3 MB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.6082, allocations: 0 / 448.3 MB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.759e-05/0.6083, allocations: 4 kB / 448.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.6083, allocations: 0 / 448.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.6083, allocations: 0 / 448.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.155e-05/0.6084, allocations: 87.27 kB / 448.4 MB, free: 4.172 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6084, allocations: 0 / 448.4 MB, free: 4.172 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004394/0.6088, allocations: 51.92 kB / 448.4 MB, free: 4.121 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0007195/0.6096, allocations: 0.7124 MB / 449.2 MB, free: 3.379 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.6097, allocations: 37.83 kB / 449.2 MB, free: 3.336 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6097, allocations: 0 / 449.2 MB, free: 3.336 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.947e-05/0.6097, allocations: 29.7 kB / 449.2 MB, free: 3.301 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.6099, allocations: 3.938 kB / 449.2 MB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004465/0.6104, allocations: 123.3 kB / 449.3 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.6107, allocations: 0.6768 MB / 450 MB, free: 2.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.6107, allocations: 7.438 kB / 450 MB, free: 2.422 MB / 378.7 MB Notification: Performance of SimCode: time 6.22e-07/0.6107, allocations: 0 / 450 MB, free: 2.422 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.403/3.014, allocations: 1.171 MB / 451.2 MB, free: 1.254 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat