Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01064/0.01064, allocations: 104.9 kB / 15.06 MB, free: 5.949 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001208/0.001207, allocations: 173 kB / 15.93 MB, free: 5.91 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.677/1.677, allocations: 170.9 MB / 187.6 MB, free: 0.8438 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.3508/0.3508, allocations: 38.09 MB / 265.1 MB, free: 3.941 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006916/0.0006917, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1341, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0008477/0.135, allocations: 228.5 kB / 372.5 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.1383, allocations: 1.313 MB / 373.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.1384, allocations: 4 kB / 373.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.1384, allocations: 0 / 373.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.407e-05/0.1385, allocations: 0 / 373.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.1396, allocations: 143.6 kB / 374 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.26e-05/0.1396, allocations: 8 kB / 374 MB, free: 11.15 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.981e-05/0.1397, allocations: 3.984 kB / 374 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.509e-05/0.1398, allocations: 4 kB / 374 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.676e-05/0.1398, allocations: 0 / 374 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.1399, allocations: 3.938 kB / 374 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007759/0.1406, allocations: 255.6 kB / 374.2 MB, free: 10.89 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.1407, allocations: 11.98 kB / 374.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.1407, allocations: 25.7 kB / 374.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002662/0.141, allocations: 83.81 kB / 374.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.141, allocations: 0 / 374.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1411, allocations: 0 / 374.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1411, allocations: 3.938 kB / 374.4 MB, free: 10.76 MB / 282.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.000511/0.1416, allocations: 331.4 kB / 374.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.1417, allocations: 12.03 kB / 374.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.068e-05/0.1417, allocations: 30.56 kB / 374.7 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.1418, allocations: 4 kB / 374.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.1419, allocations: 163 kB / 374.9 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.142, allocations: 0 / 374.9 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.142, allocations: 8 kB / 374.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.1422, allocations: 37.62 kB / 374.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1422, allocations: 3.984 kB / 374.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1422, allocations: 0 / 374.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.1423, allocations: 4 kB / 374.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.379e-05/0.1423, allocations: 8 kB / 374.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000528/0.1429, allocations: 244.9 kB / 375.2 MB, free: 9.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.866e-05/0.1429, allocations: 18.58 kB / 375.2 MB, free: 9.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.143, allocations: 0 / 375.2 MB, free: 9.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.143, allocations: 38.5 kB / 375.2 MB, free: 9.703 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.764e-06/0.143, allocations: 0 / 375.2 MB, free: 9.703 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002192/0.1433, allocations: 37.75 kB / 375.3 MB, free: 9.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.1434, allocations: 55.53 kB / 375.3 MB, free: 9.594 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1435, allocations: 97.81 kB / 375.4 MB, free: 9.488 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.1435, allocations: 25.7 kB / 375.5 MB, free: 9.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/0.1436, allocations: 92.27 kB / 375.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.003e-05/0.1436, allocations: 3.906 kB / 375.5 MB, free: 9.359 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/0.1436, allocations: 0 / 375.5 MB, free: 9.359 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1438, allocations: 318.8 kB / 375.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.043e-05/0.1438, allocations: 4 kB / 375.9 MB, free: 9.035 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.513e-05/0.1439, allocations: 30.64 kB / 375.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.1439, allocations: 4 kB / 375.9 MB, free: 8.992 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1439, allocations: 0 / 375.9 MB, free: 8.992 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000152/0.1441, allocations: 49.62 kB / 375.9 MB, free: 8.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.1442, allocations: 4 kB / 375.9 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1442, allocations: 0 / 375.9 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.1442, allocations: 8.094 kB / 376 MB, free: 8.926 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.633e-05/0.1443, allocations: 4 kB / 376 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.1443, allocations: 0 / 376 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.75e-05/0.1444, allocations: 0 / 376 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.1444, allocations: 11.94 kB / 376 MB, free: 8.91 MB / 282.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 0.0001145/0.1445, allocations: 106.9 kB / 376.1 MB, free: 8.797 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.655e-05/0.1446, allocations: 4 kB / 376.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.1448, allocations: 48.77 kB / 376.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.1449, allocations: 3.984 kB / 376.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1449, allocations: 3.938 kB / 376.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1449, allocations: 0 / 376.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.1452, allocations: 145.6 kB / 376.3 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.1452, allocations: 4 kB / 376.3 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.823e-06/0.1452, allocations: 0 / 376.3 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1453, allocations: 0 / 376.3 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.1453, allocations: 0 / 376.3 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.1453, allocations: 3.984 kB / 376.3 MB, free: 8.531 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1453, allocations: 4.031 kB / 376.3 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001971/0.1455, allocations: 135.5 kB / 376.4 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.1456, allocations: 77.11 kB / 376.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.1456, allocations: 4 kB / 376.5 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.1458, allocations: 3.984 kB / 376.5 MB, free: 8.277 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.1458, allocations: 0 / 376.5 MB, free: 8.277 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.1458, allocations: 4 kB / 376.5 MB, free: 8.273 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.714e-05/0.1459, allocations: 87.31 kB / 376.6 MB, free: 8.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.72e-07/0.1459, allocations: 0 / 376.6 MB, free: 8.188 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007171/0.1466, allocations: 40 kB / 376.6 MB, free: 8.148 MB / 282.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 (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.0009581/0.1476, allocations: 0.7099 MB / 377.3 MB, free: 7.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.1478, allocations: 23.92 kB / 377.4 MB, free: 7.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1478, allocations: 0 / 377.4 MB, free: 7.387 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.359e-05/0.1478, allocations: 25.7 kB / 377.4 MB, free: 7.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.1481, allocations: 4 kB / 377.4 MB, free: 7.352 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007198/0.1489, allocations: 124.4 kB / 377.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.1493, allocations: 0.677 MB / 378.2 MB, free: 6.484 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.355e-05/0.1493, allocations: 8.234 kB / 378.2 MB, free: 6.477 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.1494, allocations: 7.438 kB / 378.2 MB, free: 6.469 MB / 282.7 MB Notification: Performance of SimCode: time 1.403e-06/0.1494, allocations: 4 kB / 378.2 MB, free: 6.465 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02509/0.1745, allocations: 1.626 MB / 379.8 MB, free: 4.922 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002923/0.1749, allocations: 178.7 kB / 380 MB, free: 4.688 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.503/2.678, allocations: 4 kB / 380 MB, free: 4.684 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat