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.001492/0.001496, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.019/2.019, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001115/0.001115, allocations: 86.64 kB / 267.5 MB, free: 14.05 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.3344/0.3344, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.273e-05/3.304e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1181, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4785/0.5967, allocations: 85.26 MB / 0.5561 GB, free: 2.297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.5971, allocations: 74.95 kB / 0.5562 GB, free: 2.258 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04444/0.6415, allocations: 8.222 MB / 0.5642 GB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6416, allocations: 0 / 0.5642 GB, free: 11.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.6416, allocations: 0 / 0.5642 GB, free: 11.17 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.0003902/0.642, allocations: 341.5 kB / 0.5646 GB, free: 10.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.6421, allocations: 11.97 kB / 0.5646 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.494e-05/0.6421, allocations: 34.55 kB / 0.5646 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.6422, allocations: 4 kB / 0.5646 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.6423, allocations: 170.9 kB / 0.5648 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.6423, allocations: 3.375 kB / 0.5648 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.6423, allocations: 4 kB / 0.5648 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.6425, allocations: 41 kB / 0.5648 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.6425, allocations: 3.984 kB / 0.5648 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.6425, allocations: 0 / 0.5648 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.6425, allocations: 0 / 0.5648 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.183e-05/0.6426, allocations: 4 kB / 0.5648 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004009/0.643, allocations: 239.8 kB / 0.5651 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.191e-05/0.643, allocations: 26.52 kB / 0.5651 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.6431, allocations: 4.859 kB / 0.5651 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.6431, allocations: 4.031 kB / 0.5651 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.6432, allocations: 34.62 kB / 0.5651 GB, free: 10.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.823e-06/0.6432, allocations: 0 / 0.5651 GB, free: 10.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001445/0.6433, allocations: 32.83 kB / 0.5652 GB, free: 10.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.6434, allocations: 55.36 kB / 0.5652 GB, free: 10.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.425e-05/0.6435, allocations: 96.97 kB / 0.5653 GB, free: 9.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.6435, allocations: 25.7 kB / 0.5653 GB, free: 9.875 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.6436, allocations: 155.1 kB / 0.5655 GB, free: 9.723 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.131e-05/0.6436, allocations: 11.39 kB / 0.5655 GB, free: 9.715 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-06/0.6436, allocations: 0 / 0.5655 GB, free: 9.715 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.6438, allocations: 314.8 kB / 0.5658 GB, free: 9.398 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/0.6438, allocations: 0 / 0.5658 GB, free: 9.398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.796e-05/0.6439, allocations: 25.83 kB / 0.5658 GB, free: 9.367 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.64e-05/0.6439, allocations: 4 kB / 0.5658 GB, free: 9.363 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6439, allocations: 0 / 0.5658 GB, free: 9.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000103/0.644, allocations: 49.12 kB / 0.5659 GB, free: 9.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.6441, allocations: 8 kB / 0.5659 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.6441, allocations: 0 / 0.5659 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.6441, allocations: 4.094 kB / 0.5659 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.168e-05/0.6441, allocations: 4 kB / 0.5659 GB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.6442, allocations: 7.938 kB / 0.5659 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.746e-05/0.6442, allocations: 3.953 kB / 0.5659 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.6442, allocations: 3.938 kB / 0.5659 GB, free: 9.281 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 8.427e-05/0.6443, allocations: 112.9 kB / 0.566 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.6444, allocations: 0 / 0.566 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001357/0.6445, allocations: 48.2 kB / 0.5661 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.6445, allocations: 0 / 0.5661 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.6445, allocations: 0 / 0.5661 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.6445, allocations: 0 / 0.5661 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.6447, allocations: 153.6 kB / 0.5662 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.6447, allocations: 0 / 0.5662 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-06/0.6448, allocations: 0 / 0.5662 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.6448, allocations: 0 / 0.5662 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.6448, allocations: 4 kB / 0.5662 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6448, allocations: 0 / 0.5662 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.6448, allocations: 0 / 0.5662 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.6449, allocations: 143.3 kB / 0.5663 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.125e-05/0.645, allocations: 77.11 kB / 0.5664 GB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.645, allocations: 0 / 0.5664 GB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.814e-05/0.6451, allocations: 96 / 0.5664 GB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.835e-05/0.6451, allocations: 7.984 kB / 0.5664 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.6452, allocations: 3.984 kB / 0.5664 GB, free: 8.648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.735e-05/0.6452, allocations: 82.56 kB / 0.5665 GB, free: 8.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6452, allocations: 0 / 0.5665 GB, free: 8.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004287/0.6457, allocations: 47.94 kB / 0.5666 GB, free: 8.523 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.0006837/0.6464, allocations: 0.7155 MB / 0.5673 GB, free: 7.789 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.6465, allocations: 33.95 kB / 0.5673 GB, free: 7.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.6465, allocations: 4.062 kB / 0.5673 GB, free: 7.746 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.14e-05/0.6465, allocations: 33.69 kB / 0.5673 GB, free: 7.707 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.6467, allocations: 9.953 kB / 0.5673 GB, free: 7.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004694/0.6472, allocations: 139.3 kB / 0.5675 GB, free: 7.527 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.6475, allocations: 0.6692 MB / 0.5681 GB, free: 6.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.6475, allocations: 15.42 kB / 0.5681 GB, free: 6.816 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.6476, allocations: 0 / 0.5681 GB, free: 6.816 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.499/3.147, allocations: 1.134 MB / 0.5692 GB, free: 5.691 MB / 378.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