Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.WaterComponents.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",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 3.2.3+maint.om/package.mo): time 0.0009685/0.0009685, allocations: 182.6 kB / 8.135 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.118/1.118, allocations: 205.2 MB / 213.7 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.0008837/0.0008837, allocations: 79.52 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3199/0.3199, allocations: 48.75 MB / 358.4 MB, free: 53.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1112/0.4312, allocations: 66.37 MB / 424.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.5356, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.571/5.107, allocations: 2.886 GB / 3.36 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/5.107, allocations: 82.78 kB / 3.36 GB, free: 143.7 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.6951/5.802, allocations: 279.1 MB / 3.632 GB, free: 68.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/5.802, allocations: 9.312 kB / 3.632 GB, free: 68.88 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/5.803, allocations: 78.05 kB / 3.632 GB, free: 68.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006299/5.803, allocations: 392 kB / 3.633 GB, free: 68.56 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/5.803, allocations: 18.53 kB / 3.633 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/5.803, allocations: 17.38 kB / 3.633 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004322/5.804, allocations: 239.8 kB / 3.633 GB, free: 68.46 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004321/5.804, allocations: 393.3 kB / 3.633 GB, free: 68.17 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/5.804, allocations: 0 / 3.633 GB, free: 68.17 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.096e-05/5.804, allocations: 2.562 kB / 3.633 GB, free: 68.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/5.804, allocations: 8.719 kB / 3.633 GB, free: 68.17 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1098/5.914, allocations: 65.95 MB / 3.698 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006055/5.915, allocations: 217.7 kB / 3.698 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.321e-05/5.915, allocations: 61.52 kB / 3.698 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002649/5.915, allocations: 135.7 kB / 3.698 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/5.915, allocations: 38.56 kB / 3.698 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=13): time 2.024e-06/5.915, allocations: 0 / 3.698 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13): time 0.000612/5.916, allocations: 201.7 kB / 3.698 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.317e-05/5.916, allocations: 81.11 kB / 3.698 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/5.916, allocations: 298.7 kB / 3.699 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/5.916, allocations: 29.7 kB / 3.699 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.339e-05/5.916, allocations: 198.2 kB / 3.699 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/5.916, allocations: 51.16 kB / 3.699 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/5.916, allocations: 0 / 3.699 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.254e-05/5.916, allocations: 342 kB / 3.699 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.11e-05/5.916, allocations: 52 kB / 3.699 GB, free: 22.86 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/5.917, allocations: 115.3 kB / 3.7 GB, free: 22.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/5.917, allocations: 75.09 kB / 3.7 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/5.917, allocations: 7.906 kB / 3.7 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007317/5.918, allocations: 318.4 kB / 3.7 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/5.918, allocations: 0.7886 MB / 3.701 GB, free: 21.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/5.918, allocations: 4 kB / 3.701 GB, free: 21.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/5.918, allocations: 6.625 kB / 3.701 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/5.918, allocations: 73.16 kB / 3.701 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.279e-06/5.918, allocations: 4.078 kB / 3.701 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/5.919, allocations: 58.05 kB / 3.701 GB, free: 21.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/5.919, allocations: 15.98 kB / 3.701 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.011e-06/5.919, allocations: 7.938 kB / 3.701 GB, free: 21.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003367/5.919, allocations: 144.4 kB / 3.701 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/5.919, allocations: 4 kB / 3.701 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.938e-06/5.919, allocations: 4 kB / 3.701 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000307/5.919, allocations: 74.33 kB / 3.701 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/5.919, allocations: 8.125 kB / 3.701 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/5.92, allocations: 41.98 kB / 3.701 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/5.92, allocations: 10.95 kB / 3.701 GB, free: 21.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (ValveVap.fluidState.phase,ValveLiqChocked.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 6.114e-05/5.92, allocations: 112.9 kB / 3.701 GB, free: 21.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/5.92, allocations: 76.94 kB / 3.701 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/5.92, allocations: 175.5 kB / 3.701 GB, free: 20.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/5.92, allocations: 8 kB / 3.701 GB, free: 20.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/5.92, allocations: 4 kB / 3.701 GB, free: 20.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/5.92, allocations: 0 / 3.701 GB, free: 20.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/5.921, allocations: 495.9 kB / 3.702 GB, free: 20.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/5.921, allocations: 7.938 kB / 3.702 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/5.921, allocations: 51.42 kB / 3.702 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/5.921, allocations: 288 / 3.702 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/5.921, allocations: 3.906 kB / 3.702 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/5.921, allocations: 4 kB / 3.702 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/5.921, allocations: 3.938 kB / 3.702 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003892/5.921, allocations: 413.3 kB / 3.702 GB, free: 19.9 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00052/5.922, allocations: 0.8066 MB / 3.703 GB, free: 19.09 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.829e-05/5.922, allocations: 122.9 kB / 3.703 GB, free: 18.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.275e-05/5.922, allocations: 0 / 3.703 GB, free: 18.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/5.922, allocations: 35.73 kB / 3.703 GB, free: 18.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/5.923, allocations: 11.03 kB / 3.703 GB, free: 18.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/5.923, allocations: 4 kB / 3.703 GB, free: 18.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001591/5.923, allocations: 232.6 kB / 3.704 GB, free: 18.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004678/5.927, allocations: 1.144 MB / 3.705 GB, free: 17.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (14): * Single equations (assignments): 14 * 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.005088/5.933, allocations: 1.456 MB / 3.706 GB, free: 16.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003868/5.933, allocations: 235.8 kB / 3.706 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/5.933, allocations: 4 kB / 3.706 GB, free: 16.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 8.681e-05/5.933, allocations: 55.17 kB / 3.706 GB, free: 16.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007402/5.934, allocations: 129.5 kB / 3.707 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/5.935, allocations: 452.9 kB / 3.707 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/5.935, allocations: 0.8515 MB / 3.708 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of SimCode: time 3.01e-07/5.935, allocations: 0 / 3.708 GB, free: 14.8 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)