Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",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.00238/0.00238, allocations: 186.2 kB / 16.4 MB, free: 5.75 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.284/2.284, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001129/0.001129, allocations: 88.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5599/0.5599, allocations: 43.55 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005032/0.0005032, allocations: 8 kB / 431.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1377, allocations: 58.85 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5412/0.6789, allocations: 85.35 MB / 0.5622 GB, free: 1.309 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.6792, allocations: 71.91 kB / 0.5622 GB, free: 1.238 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04592/0.7252, allocations: 8.238 MB / 0.5703 GB, free: 9.031 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.7252, allocations: 0 / 0.5703 GB, free: 9.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.7252, allocations: 0 / 0.5703 GB, free: 9.031 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004599/0.7257, allocations: 348 kB / 0.5706 GB, free: 8.645 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.7258, allocations: 16.03 kB / 0.5706 GB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.871e-05/0.7258, allocations: 30.56 kB / 0.5707 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.781e-05/0.7259, allocations: 4.375 kB / 0.5707 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.726, allocations: 167.1 kB / 0.5708 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.726, allocations: 0 / 0.5708 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.726, allocations: 0 / 0.5708 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.7262, allocations: 29.7 kB / 0.5709 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.7262, allocations: 0 / 0.5709 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.7262, allocations: 3.938 kB / 0.5709 GB, free: 8.348 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.7262, allocations: 8 kB / 0.5709 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.265e-05/0.7262, allocations: 1.031 kB / 0.5709 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001915/0.7265, allocations: 157.7 kB / 0.571 GB, free: 8.137 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.578e-05/0.7265, allocations: 14.58 kB / 0.571 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.7265, allocations: 0 / 0.571 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.7266, allocations: 34.62 kB / 0.5711 GB, free: 8.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.482e-06/0.7266, allocations: 0 / 0.5711 GB, free: 8.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001561/0.7268, allocations: 47.66 kB / 0.5711 GB, free: 8.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.7268, allocations: 51.41 kB / 0.5712 GB, free: 7.957 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.656e-05/0.7269, allocations: 89.84 kB / 0.5712 GB, free: 7.863 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.727, allocations: 25.7 kB / 0.5713 GB, free: 7.832 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/0.727, allocations: 154.6 kB / 0.5714 GB, free: 7.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.7271, allocations: 3.906 kB / 0.5714 GB, free: 7.676 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-06/0.7271, allocations: 0 / 0.5714 GB, free: 7.676 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.7272, allocations: 311.1 kB / 0.5717 GB, free: 7.363 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.413e-05/0.7272, allocations: 4 kB / 0.5717 GB, free: 7.359 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.548e-05/0.7273, allocations: 4 kB / 0.5717 GB, free: 7.355 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.258e-05/0.7273, allocations: 7.891 kB / 0.5717 GB, free: 7.348 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.7273, allocations: 3.188 kB / 0.5717 GB, free: 7.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.659e-05/0.7274, allocations: 45.62 kB / 0.5718 GB, free: 7.297 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.7274, allocations: 4 kB / 0.5718 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.7275, allocations: 0 / 0.5718 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.7275, allocations: 4 kB / 0.5718 GB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.7275, allocations: 4.094 kB / 0.5718 GB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.7275, allocations: 0 / 0.5718 GB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.565e-05/0.7276, allocations: 0.875 kB / 0.5718 GB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.7276, allocations: 0 / 0.5718 GB, free: 7.285 MB / 394.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 (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 prepare postOptimizeDAE: time 9.471e-05/0.7277, allocations: 117.8 kB / 0.5719 GB, free: 7.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/0.7277, allocations: 0 / 0.5719 GB, free: 7.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.7279, allocations: 44.81 kB / 0.5719 GB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.7279, allocations: 7.969 kB / 0.572 GB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.7279, allocations: 4 kB / 0.572 GB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.7279, allocations: 0 / 0.572 GB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.728, allocations: 149.7 kB / 0.5721 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.728, allocations: 3.953 kB / 0.5721 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.7281, allocations: 0 / 0.5721 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.7281, allocations: 0 / 0.5721 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.7281, allocations: 0 / 0.5721 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.7281, allocations: 0 / 0.5721 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.7281, allocations: 4 kB / 0.5721 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.7282, allocations: 65.12 kB / 0.5722 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.44e-05/0.7283, allocations: 81.06 kB / 0.5722 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.7283, allocations: 0 / 0.5722 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.013e-05/0.7284, allocations: 0 / 0.5722 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.7284, allocations: 7.984 kB / 0.5723 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.7284, allocations: 0 / 0.5723 GB, free: 6.711 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.817e-05/0.7285, allocations: 79.31 kB / 0.5723 GB, free: 6.633 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7285, allocations: 0 / 0.5723 GB, free: 6.633 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004054/0.7289, allocations: 51.94 kB / 0.5724 GB, free: 6.582 MB / 394.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.0007954/0.7297, allocations: 0.6474 MB / 0.573 GB, free: 5.906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.7298, allocations: 38.44 kB / 0.573 GB, free: 5.863 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7299, allocations: 4.188 kB / 0.5731 GB, free: 5.859 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.247e-05/0.7299, allocations: 25.7 kB / 0.5731 GB, free: 5.828 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.73, allocations: 11.94 kB / 0.5731 GB, free: 5.816 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004934/0.7305, allocations: 152.3 kB / 0.5732 GB, free: 5.625 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.7309, allocations: 0.6809 MB / 0.5739 GB, free: 4.918 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.7309, allocations: 7.438 kB / 0.5739 GB, free: 4.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.533e-06/0.7309, allocations: 0 / 0.5739 GB, free: 4.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.393/3.124, allocations: 1.147 MB / 0.575 GB, free: 3.77 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat does not exist to compare? outputFormat=mat