Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 181.9 kB / 8.52 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 221.4 MB / 230.3 MB, free: 7.648 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009706/0.0009707, allocations: 93.78 kB / 281.2 MB, free: 5.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1582/0.1582, allocations: 44.14 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1807/0.339, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.4361, allocations: 61.92 MB / 0.4942 GB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2562/0.6924, allocations: 87.51 MB / 0.5796 GB, free: 9.168 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.6926, allocations: 83.78 kB / 0.5797 GB, free: 9.09 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.01536/0.708, allocations: 5.5 MB / 0.5851 GB, free: 3.562 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.708, allocations: 17.38 kB / 0.5851 GB, free: 3.547 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.076e-05/0.7081, allocations: 7.906 kB / 0.5851 GB, free: 3.539 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.7082, allocations: 171 kB / 0.5853 GB, free: 3.332 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.7082, allocations: 4 kB / 0.5853 GB, free: 3.328 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.7082, allocations: 3.906 kB / 0.5853 GB, free: 3.324 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001072/0.7083, allocations: 55.97 kB / 0.5853 GB, free: 3.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.236e-05/0.7084, allocations: 61.69 kB / 0.5854 GB, free: 3.203 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.7084, allocations: 7.922 kB / 0.5854 GB, free: 3.195 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.7084, allocations: 0 / 0.5854 GB, free: 3.195 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.7085, allocations: 0 / 0.5854 GB, free: 3.195 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.7086, allocations: 170.1 kB / 0.5856 GB, free: 2.992 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.405e-05/0.7087, allocations: 46.58 kB / 0.5856 GB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.394e-05/0.7088, allocations: 40.84 kB / 0.5857 GB, free: 2.895 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.343e-05/0.7088, allocations: 20.22 kB / 0.5857 GB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.7089, allocations: 42.55 kB / 0.5857 GB, free: 2.824 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.7089, allocations: 0 / 0.5857 GB, free: 2.824 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.02207/0.7309, allocations: 1.911 MB / 0.5876 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.731, allocations: 51.41 kB / 0.5876 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.956e-05/0.7311, allocations: 116.4 kB / 0.5877 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.7311, allocations: 25.7 kB / 0.5878 GB, free: 0.668 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.7312, allocations: 80.38 kB / 0.5878 GB, free: 0.582 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.27e-05/0.7312, allocations: 47.33 kB / 0.5879 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2e-05/0.7313, allocations: 0 / 0.5879 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.428e-05/0.7314, allocations: 318.8 kB / 0.5882 GB, free: 220 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.7315, allocations: 79.97 kB / 0.5883 GB, free: 140 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.7316, allocations: 75.98 kB / 0.5883 GB, free: 64 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.7333, allocations: 251.7 kB / 0.5886 GB, free: 15.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.7333, allocations: 0 / 0.5886 GB, free: 15.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001828/0.7351, allocations: 397.1 kB / 0.589 GB, free: 15.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.7351, allocations: 8 kB / 0.589 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.7352, allocations: 0 / 0.589 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.7352, allocations: 7.875 kB / 0.589 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005964/0.7358, allocations: 71.94 kB / 0.589 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.7358, allocations: 4 kB / 0.5891 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000476/0.7363, allocations: 39.95 kB / 0.5891 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.7363, allocations: 7.984 kB / 0.5891 GB, free: 15.29 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001062/0.7364, allocations: 105 kB / 0.5892 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/0.7365, allocations: 11.81 kB / 0.5892 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.7386, allocations: 449.7 kB / 0.5896 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.7386, allocations: 3.984 kB / 0.5896 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7386, allocations: 0 / 0.5896 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.7386, allocations: 4 kB / 0.5896 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.7423, allocations: 0.8798 MB / 0.5905 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.7423, allocations: 0 / 0.5905 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000548/0.7428, allocations: 72.02 kB / 0.5906 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.7428, allocations: 0 / 0.5906 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.7429, allocations: 4 kB / 0.5906 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.7429, allocations: 4.078 kB / 0.5906 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.7429, allocations: 15.78 kB / 0.5906 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001822/0.7447, allocations: 0.5209 MB / 0.5911 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001941/0.7467, allocations: 0.9014 MB / 0.592 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.633e-05/0.7468, allocations: 109 kB / 0.5921 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.7468, allocations: 0 / 0.5921 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/0.7474, allocations: 43.95 kB / 0.5921 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.936e-05/0.7474, allocations: 7.984 kB / 0.5921 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.7474, allocations: 8 kB / 0.5921 GB, free: 11.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.508e-05/0.7475, allocations: 95.27 kB / 0.5922 GB, free: 11.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001141/0.7486, allocations: 175.7 kB / 0.5924 GB, free: 11.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0007358/0.7494, allocations: 262.9 kB / 0.5927 GB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003638/0.7497, allocations: 171.9 kB / 0.5928 GB, free: 11.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.7498, allocations: 0 / 0.5928 GB, free: 11.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.7499, allocations: 91.92 kB / 0.5929 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.7502, allocations: 15.98 kB / 0.5929 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.7524, allocations: 413.6 kB / 0.5933 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004042/0.7529, allocations: 0.7387 MB / 0.594 GB, free: 9.98 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.7529, allocations: 0 / 0.594 GB, free: 9.98 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat does not exist to compare? outputFormat=mat