Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01125/0.01125, allocations: 107.9 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00134/0.00134, allocations: 181.3 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.323/2.323, allocations: 194.6 MB / 211.3 MB, free: 11.03 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2772/0.2772, allocations: 40.04 MB / 296.5 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006523/0.0006524, allocations: 8 kB / 361.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1447, allocations: 54.88 MB / 416 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001166/0.1459, allocations: 304.2 kB / 416.3 MB, free: 2.262 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000586/0.1465, allocations: 113.2 kB / 416.4 MB, free: 2.152 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.01e-05/0.1466, allocations: 4 kB / 416.4 MB, free: 2.148 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.1467, allocations: 3.938 kB / 416.4 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.147, allocations: 27.95 kB / 416.5 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.24e-06/0.1471, allocations: 0 / 416.5 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.986e-05/0.1472, allocations: 19.86 kB / 416.5 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.081e-05/0.1472, allocations: 4 kB / 416.5 MB, free: 2.094 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.251e-05/0.1473, allocations: 7.984 kB / 416.5 MB, free: 2.086 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.418e-05/0.1474, allocations: 11.92 kB / 416.5 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.1474, allocations: 4 kB / 416.5 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.1477, allocations: 47.88 kB / 416.6 MB, free: 2.023 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.1477, allocations: 11.92 kB / 416.6 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.93e-05/0.1478, allocations: 29.7 kB / 416.6 MB, free: 1.977 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.1479, allocations: 23.97 kB / 416.6 MB, free: 1.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1479, allocations: 0 / 416.6 MB, free: 1.953 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.148, allocations: 0 / 416.6 MB, free: 1.953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.148, allocations: 0 / 416.6 MB, free: 1.953 MB / 346.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.0004283/0.1484, allocations: 339.5 kB / 417 MB, free: 1.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.1485, allocations: 8.031 kB / 417 MB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.439e-05/0.1486, allocations: 30.56 kB / 417 MB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.1486, allocations: 8 kB / 417 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.1488, allocations: 171 kB / 417.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.1489, allocations: 7.938 kB / 417.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.1489, allocations: 0 / 417.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.1492, allocations: 61.62 kB / 417.2 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1492, allocations: 0 / 417.2 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.1492, allocations: 7.984 kB / 417.2 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1493, allocations: 0 / 417.2 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.1495, allocations: 55.95 kB / 417.3 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003055/0.1499, allocations: 165.6 kB / 417.5 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.1502, allocations: 82.55 kB / 417.5 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006431/0.1508, allocations: 251.3 kB / 417.8 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.1509, allocations: 38.48 kB / 417.8 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.747e-06/0.1509, allocations: 0 / 417.8 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004691/0.1514, allocations: 109.7 kB / 417.9 MB, free: 424 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.1515, allocations: 55.41 kB / 418 MB, free: 356 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.1516, allocations: 101.8 kB / 418.1 MB, free: 244 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.1517, allocations: 25.7 kB / 418.1 MB, free: 212 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.005e-05/0.1517, allocations: 80.14 kB / 418.2 MB, free: 128 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.711e-05/0.1518, allocations: 27.56 kB / 418.2 MB, free: 100 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.1518, allocations: 0 / 418.2 MB, free: 100 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.152, allocations: 318.8 kB / 418.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.484e-05/0.1522, allocations: 19.94 kB / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.503e-05/0.1523, allocations: 16.11 kB / 418.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.1524, allocations: 24 kB / 418.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1524, allocations: 0 / 418.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002937/0.1527, allocations: 85.53 kB / 418.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.1528, allocations: 8 kB / 418.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.1528, allocations: 7.969 kB / 418.7 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.1529, allocations: 3.953 kB / 418.7 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.1531, allocations: 16 kB / 418.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.1532, allocations: 4 kB / 418.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.453e-05/0.1532, allocations: 3.938 kB / 418.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1533, allocations: 0 / 418.7 MB, free: 15.59 MB / 362.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 0.0001451/0.1534, allocations: 121.8 kB / 418.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.1535, allocations: 8.547 kB / 418.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004061/0.1539, allocations: 101.6 kB / 418.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.154, allocations: 0 / 418.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.154, allocations: 7.891 kB / 418.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.154, allocations: 0 / 418.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002863/0.1543, allocations: 177.6 kB / 419.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1543, allocations: 0 / 419.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.1546, allocations: 16 kB / 419.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.1546, allocations: 4 kB / 419.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.1546, allocations: 0 / 419.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1546, allocations: 0 / 419.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1547, allocations: 0 / 419.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.155, allocations: 120.9 kB / 419.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.1551, allocations: 84.98 kB / 419.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.1552, allocations: 4 kB / 419.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.505e-05/0.1552, allocations: 4 kB / 419.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.975e-05/0.1553, allocations: 11.98 kB / 419.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.1553, allocations: 0 / 419.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.347e-05/0.1554, allocations: 79.23 kB / 419.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.1554, allocations: 0 / 419.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004445/0.1559, allocations: 16 kB / 419.4 MB, free: 14.74 MB / 362.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.0008369/0.1568, allocations: 0.6594 MB / 420.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.1571, allocations: 60.12 kB / 420.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1571, allocations: 0 / 420.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.1572, allocations: 27.94 kB / 420.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.1574, allocations: 7.984 kB / 420.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008788/0.1583, allocations: 180.3 kB / 420.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.1587, allocations: 0.6809 MB / 421.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.943e-05/0.1589, allocations: 11.77 kB / 421.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.974e-05/0.1589, allocations: 15.44 kB / 421.1 MB, free: 13 MB / 362.7 MB Notification: Performance of SimCode: time 1.803e-06/0.159, allocations: 0 / 421.1 MB, free: 13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.1837, allocations: 1.32 MB / 422.4 MB, free: 11.75 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003372/0.1841, allocations: 186.9 kB / 422.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.432/2.616, allocations: 64 / 422.6 MB, free: 11.51 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat does not exist to compare? outputFormat=mat