Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002325/0.002331, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3511/0.3511, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000472/0.0004719, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1503, allocations: 58.86 MB / 490.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0007452/0.1511, allocations: 224.7 kB / 490.5 MB, free: 9.035 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002664/0.1538, allocations: 1.339 MB / 491.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.753e-05/0.1539, allocations: 0 / 491.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.1539, allocations: 0 / 491.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 3.94e-05/0.154, allocations: 0 / 491.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008668/0.1548, allocations: 147.6 kB / 492 MB, free: 7.531 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 4.422e-05/0.1549, allocations: 4 kB / 492 MB, free: 7.527 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.889e-05/0.155, allocations: 3.984 kB / 492 MB, free: 7.523 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.403e-05/0.155, allocations: 7.984 kB / 492 MB, free: 7.516 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.179e-05/0.1551, allocations: 7.938 kB / 492 MB, free: 7.508 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.1551, allocations: 0 / 492 MB, free: 7.508 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000615/0.1557, allocations: 255.7 kB / 492.3 MB, free: 7.258 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.1557, allocations: 0 / 492.3 MB, free: 7.258 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.491e-05/0.1558, allocations: 25.7 kB / 492.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.156, allocations: 87.81 kB / 492.4 MB, free: 7.141 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.156, allocations: 0 / 492.4 MB, free: 7.141 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.156, allocations: 0 / 492.4 MB, free: 7.141 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.156, allocations: 0 / 492.4 MB, free: 7.141 MB / 330.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.0004404/0.1565, allocations: 331.4 kB / 492.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.1566, allocations: 12.03 kB / 492.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.1566, allocations: 38.5 kB / 492.8 MB, free: 6.711 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.1567, allocations: 3.953 kB / 492.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.1568, allocations: 163 kB / 492.9 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1568, allocations: 0 / 492.9 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.1568, allocations: 8 kB / 492.9 MB, free: 6.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.157, allocations: 37.69 kB / 493 MB, free: 6.457 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.157, allocations: 0 / 493 MB, free: 6.457 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.157, allocations: 0 / 493 MB, free: 6.457 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.157, allocations: 4 kB / 493 MB, free: 6.453 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.259e-05/0.1571, allocations: 4 kB / 493 MB, free: 6.449 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.1576, allocations: 248.9 kB / 493.2 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.184e-05/0.1577, allocations: 18.58 kB / 493.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.1577, allocations: 0 / 493.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.1577, allocations: 30.56 kB / 493.3 MB, free: 6.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 7.715e-06/0.1577, allocations: 4 kB / 493.3 MB, free: 6.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001892/0.1579, allocations: 49.58 kB / 493.3 MB, free: 6.031 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.158, allocations: 51.41 kB / 493.4 MB, free: 5.969 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.1581, allocations: 98.14 kB / 493.5 MB, free: 5.863 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1582, allocations: 25.7 kB / 493.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.1583, allocations: 162.4 kB / 493.7 MB, free: 5.672 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.069e-05/0.1583, allocations: 3.906 kB / 493.7 MB, free: 5.668 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.1583, allocations: 0 / 493.7 MB, free: 5.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1585, allocations: 327.1 kB / 494 MB, free: 5.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.1585, allocations: 0 / 494 MB, free: 5.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.501e-05/0.1585, allocations: 18.58 kB / 494 MB, free: 5.312 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.739e-05/0.1586, allocations: 4 kB / 494 MB, free: 5.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1586, allocations: 0 / 494 MB, free: 5.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001162/0.1587, allocations: 53.75 kB / 494.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1587, allocations: 6.656 kB / 494.1 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1588, allocations: 0 / 494.1 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.1588, allocations: 7.984 kB / 494.1 MB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.903e-05/0.1589, allocations: 7.938 kB / 494.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1589, allocations: 3.953 kB / 494.1 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.617e-05/0.1589, allocations: 4 kB / 494.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.1589, allocations: 3.984 kB / 494.1 MB, free: 5.219 MB / 330.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 9.609e-05/0.1591, allocations: 113.8 kB / 494.2 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.872e-05/0.1591, allocations: 8.062 kB / 494.2 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.1593, allocations: 36.83 kB / 494.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.1593, allocations: 3.984 kB / 494.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1593, allocations: 0 / 494.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1593, allocations: 3.953 kB / 494.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.1595, allocations: 149.7 kB / 494.4 MB, free: 4.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.1595, allocations: 0 / 494.4 MB, free: 4.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.937e-06/0.1596, allocations: 3.938 kB / 494.4 MB, free: 4.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1596, allocations: 7.969 kB / 494.4 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1596, allocations: 0 / 494.4 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1596, allocations: 3.984 kB / 494.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1596, allocations: 0 / 494.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.1598, allocations: 131.5 kB / 494.6 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.1598, allocations: 81.11 kB / 494.6 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1599, allocations: 0 / 494.6 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.679e-05/0.16, allocations: 11.97 kB / 494.6 MB, free: 4.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.16, allocations: 3.984 kB / 494.6 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.16, allocations: 4 kB / 494.7 MB, free: 4.566 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.695e-05/0.1601, allocations: 75.28 kB / 494.7 MB, free: 4.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1601, allocations: 0 / 494.7 MB, free: 4.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004164/0.1605, allocations: 36 kB / 494.8 MB, free: 4.457 MB / 330.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.0007836/0.1613, allocations: 0.7163 MB / 495.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.801e-05/0.1614, allocations: 11.98 kB / 495.5 MB, free: 3.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1614, allocations: 0 / 495.5 MB, free: 3.703 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.481e-05/0.1615, allocations: 33.64 kB / 495.5 MB, free: 3.664 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.1617, allocations: 0 / 495.5 MB, free: 3.664 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005616/0.1623, allocations: 158.3 kB / 495.7 MB, free: 3.465 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.1626, allocations: 0.677 MB / 496.4 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.1627, allocations: 11.44 kB / 496.4 MB, free: 2.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.223e-06/0.1627, allocations: 0 / 496.4 MB, free: 2.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.687/2.849, allocations: 1.141 MB / 497.5 MB, free: 1.609 MB / 330.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat