Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.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/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",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.002529/0.002529, allocations: 181.6 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.015/2.015, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.001186/0.001186, allocations: 91.94 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.067/1.067, allocations: 90.34 MB / 399.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1651/1.232, allocations: 72.39 MB / 471.8 MB, free: 3.707 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5331/1.765, allocations: 66.26 MB / 0.5254 GB, free: 28.93 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.529/3.293, allocations: 440.6 MB / 0.9557 GB, free: 160.4 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/3.294, allocations: 89.91 kB / 0.9558 GB, free: 160.4 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 1.022/4.316, allocations: 257.8 MB / 1.208 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/4.316, allocations: 8 kB / 1.208 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004116/4.316, allocations: 161.5 kB / 1.208 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/4.318, allocations: 0.7547 MB / 1.208 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.76e-05/4.318, allocations: 38.64 kB / 1.208 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/4.318, allocations: 72.19 kB / 1.209 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001688/4.32, allocations: 1.041 MB / 1.21 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/4.322, allocations: 1.017 MB / 1.211 GB, free: 128 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/4.322, allocations: 0 / 1.211 GB, free: 128 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-05/4.322, allocations: 0 / 1.211 GB, free: 128 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.069e-05/4.322, allocations: 31.83 kB / 1.211 GB, free: 128 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006878/4.329, allocations: 5.467 MB / 1.216 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/4.33, allocations: 0.993 MB / 1.217 GB, free: 124.7 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006961/4.331, allocations: 0.5231 MB / 1.217 GB, free: 124.7 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004331/4.335, allocations: 3.229 MB / 1.221 GB, free: 122.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/4.335, allocations: 52 kB / 1.221 GB, free: 122.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 3.617e-06/4.335, allocations: 0 / 1.221 GB, free: 122.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.004107/4.339, allocations: 1.45 MB / 1.222 GB, free: 122.2 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/4.339, allocations: 117.7 kB / 1.222 GB, free: 122.1 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:27:3-28:92:writable] Warning: Parameter specificValveType.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:25:3-26:88:writable] Warning: Parameter specificValveType.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:23:3-24:88:writable] Warning: Parameter specificValveType.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:17:3-18:61:writable] Warning: Parameter specificValveType.d_valve has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:28:3-29:92:writable] Warning: Parameter basicControlValve.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:26:3-27:88:writable] Warning: Parameter basicControlValve.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter basicControlValve.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/4.341, allocations: 0.7271 MB / 1.223 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.355e-05/4.341, allocations: 25.7 kB / 1.223 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/4.341, allocations: 368.8 kB / 1.223 GB, free: 121.7 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/4.341, allocations: 426.7 kB / 1.224 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/4.341, allocations: 0 / 1.224 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001348/4.341, allocations: 352.8 kB / 1.224 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/4.342, allocations: 394.9 kB / 1.224 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006975/4.343, allocations: 0.511 MB / 1.225 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002437/4.345, allocations: 0.7313 MB / 1.226 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/4.345, allocations: 0 / 1.226 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.004227/4.349, allocations: 1.558 MB / 1.227 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/4.35, allocations: 3.875 kB / 1.227 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/4.35, allocations: 3.875 kB / 1.227 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006318/4.35, allocations: 152.9 kB / 1.227 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000845/4.351, allocations: 220.9 kB / 1.227 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005017/4.356, allocations: 6.427 MB / 1.234 GB, free: 114.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/4.358, allocations: 78.5 kB / 1.234 GB, free: 114.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/4.358, allocations: 53.42 kB / 1.234 GB, free: 114.7 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00029/4.358, allocations: 133.1 kB / 1.234 GB, free: 114.6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/4.359, allocations: 117.2 kB / 1.234 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004986/4.364, allocations: 1.853 MB / 1.236 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-05/4.364, allocations: 16.75 kB / 1.236 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/4.364, allocations: 7.062 kB / 1.236 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/4.364, allocations: 7.219 kB / 1.236 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006281/4.37, allocations: 3.079 MB / 1.239 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/4.37, allocations: 0 / 1.239 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000702/4.371, allocations: 189.8 kB / 1.239 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004825/4.371, allocations: 158 kB / 1.239 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.871e-05/4.371, allocations: 33.12 kB / 1.239 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004085/4.375, allocations: 6.418 MB / 1.246 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/4.375, allocations: 1.031 kB / 1.246 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005926/4.381, allocations: 2.39 MB / 1.248 GB, free: 106.6 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006479/4.388, allocations: 3.426 MB / 1.251 GB, free: 104.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/4.389, allocations: 396.1 kB / 1.252 GB, free: 104.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/4.389, allocations: 10.45 kB / 1.252 GB, free: 104.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009129/4.39, allocations: 19.81 kB / 1.252 GB, free: 104.5 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/4.39, allocations: 83.89 kB / 1.252 GB, free: 104.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.99e-05/4.39, allocations: 50.44 kB / 1.252 GB, free: 104.4 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0008466/4.391, allocations: 0.5496 MB / 1.252 GB, free: 104.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003067/4.394, allocations: 0.6582 MB / 1.253 GB, free: 103.9 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,flowResistance.m_flow,flowResistance1.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001955/4.396, allocations: 0.9937 MB / 1.254 GB, free: 103.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002541/4.399, allocations: 1.631 MB / 1.256 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/4.399, allocations: 0 / 1.256 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00152/4.4, allocations: 1.153 MB / 1.257 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/4.402, allocations: 306.5 kB / 1.257 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004822/4.407, allocations: 1.93 MB / 1.259 GB, free: 101.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/4.408, allocations: 1.306 MB / 1.26 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of SimCode: time 1.884e-06/4.408, allocations: 2.875 kB / 1.26 GB, free: 100.3 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1)