Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.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/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_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_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 4.0.0+maint.om/package.mo): time 0.004096/0.004096, allocations: 185.1 kB / 7.459 MB, free: 2.516 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.351/1.351, allocations: 221.4 MB / 229.3 MB, free: 3.059 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.001074/0.001074, allocations: 95.92 kB / 280.1 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01091/0.01091, allocations: 1.563 MB / 332.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 1.493/1.493, allocations: 90.04 MB / 473.6 MB, free: 7.273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4273/1.921, allocations: 76.21 MB / 0.537 GB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/2.296, allocations: 69.35 MB / 0.6047 GB, free: 8.777 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.51/3.806, allocations: 441.2 MB / 1.036 GB, free: 7.09 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/3.807, allocations: 87.31 kB / 1.036 GB, free: 7.051 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.058/4.865, allocations: 263.2 MB / 1.293 GB, free: 17.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/4.865, allocations: 12.5 kB / 1.293 GB, free: 17.87 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008634/4.866, allocations: 158 kB / 1.293 GB, free: 17.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/4.868, allocations: 0.754 MB / 1.294 GB, free: 16.92 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-05/4.868, allocations: 32 kB / 1.294 GB, free: 16.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003671/4.869, allocations: 71.91 kB / 1.294 GB, free: 16.82 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00234/4.871, allocations: 1.043 MB / 1.295 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002149/4.873, allocations: 1.015 MB / 1.296 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/4.873, allocations: 3.938 kB / 1.296 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/4.873, allocations: 0 / 1.296 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/4.873, allocations: 32 kB / 1.296 GB, free: 14.68 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008007/4.881, allocations: 5.472 MB / 1.301 GB, free: 8.633 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/4.883, allocations: 0.9958 MB / 1.302 GB, free: 7.609 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006363/4.883, allocations: 0.5189 MB / 1.302 GB, free: 7.086 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003787/4.887, allocations: 3.233 MB / 1.306 GB, free: 3.488 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/4.887, allocations: 51.16 kB / 1.306 GB, free: 3.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=128): time 3.156e-06/4.887, allocations: 0 / 1.306 GB, free: 3.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=128): time 0.003818/4.891, allocations: 1.455 MB / 1.307 GB, free: 1.949 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/4.891, allocations: 119.3 kB / 1.307 GB, free: 1.809 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/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 1.0.0-main/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 1.0.0-main/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 1.0.0-main/Undirected/FlowControl/SpecificValveType.mo:16:3-18:44: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 1.0.0-main/Undirected/FlowControl/BasicControlValve.mo:27:3-28: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 1.0.0-main/Undirected/FlowControl/BasicControlValve.mo:25:3-26: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 1.0.0-main/Undirected/FlowControl/BasicControlValve.mo:23:3-24: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.001035/4.892, allocations: 0.7338 MB / 1.308 GB, free: 1.055 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.642e-05/4.892, allocations: 25.7 kB / 1.308 GB, free: 1.023 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/4.892, allocations: 372.4 kB / 1.308 GB, free: 0.6523 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/4.893, allocations: 429.5 kB / 1.309 GB, free: 232 kB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/4.893, allocations: 0 / 1.309 GB, free: 232 kB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.37/5.263, allocations: 351.5 kB / 1.309 GB, free: 166.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/5.264, allocations: 380.1 kB / 1.309 GB, free: 166.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000714/5.265, allocations: 0.5186 MB / 1.31 GB, free: 166.4 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/5.268, allocations: 0.7283 MB / 1.311 GB, free: 166.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/5.268, allocations: 0 / 1.311 GB, free: 166.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.004473/5.272, allocations: 1.55 MB / 1.312 GB, free: 166.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/5.272, allocations: 7.344 kB / 1.312 GB, free: 166.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/5.272, allocations: 3.219 kB / 1.312 GB, free: 166.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006625/5.273, allocations: 152.5 kB / 1.312 GB, free: 166.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009396/5.274, allocations: 212.4 kB / 1.313 GB, free: 166.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005377/5.279, allocations: 6.433 MB / 1.319 GB, free: 160.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/5.281, allocations: 78.78 kB / 1.319 GB, free: 160.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001671/5.281, allocations: 51.55 kB / 1.319 GB, free: 160.4 MB / 0.6042 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.0002768/5.281, allocations: 129.5 kB / 1.319 GB, free: 160.3 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/5.281, allocations: 117.7 kB / 1.319 GB, free: 160.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005164/5.287, allocations: 1.853 MB / 1.321 GB, free: 160.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.425e-05/5.287, allocations: 23.55 kB / 1.321 GB, free: 160.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/5.287, allocations: 5.094 kB / 1.321 GB, free: 160.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/5.287, allocations: 3.891 kB / 1.321 GB, free: 160.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006464/5.293, allocations: 3.082 MB / 1.324 GB, free: 159.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/5.293, allocations: 3 kB / 1.324 GB, free: 159.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007181/5.294, allocations: 180.7 kB / 1.324 GB, free: 159.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005244/5.295, allocations: 157.9 kB / 1.324 GB, free: 159.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.212e-05/5.295, allocations: 30.09 kB / 1.324 GB, free: 159.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004216/5.299, allocations: 6.419 MB / 1.331 GB, free: 153.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/5.299, allocations: 7.062 kB / 1.331 GB, free: 153.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005663/5.305, allocations: 2.393 MB / 1.333 GB, free: 153.1 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006131/5.311, allocations: 3.422 MB / 1.336 GB, free: 152.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/5.312, allocations: 392.7 kB / 1.337 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/5.312, allocations: 3.312 kB / 1.337 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000741/5.313, allocations: 29.39 kB / 1.337 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/5.313, allocations: 87.31 kB / 1.337 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/5.313, allocations: 44.61 kB / 1.337 GB, free: 152 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0007991/5.314, allocations: 0.5566 MB / 1.337 GB, free: 151.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003222/5.317, allocations: 0.6516 MB / 1.338 GB, free: 151.9 MB / 0.6042 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.002041/5.319, allocations: 0.9837 MB / 1.339 GB, free: 151.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00281/5.322, allocations: 1.629 MB / 1.341 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/5.322, allocations: 0 / 1.341 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001528/5.324, allocations: 1.158 MB / 1.342 GB, free: 150.6 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/5.326, allocations: 306.2 kB / 1.342 GB, free: 150.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004267/5.33, allocations: 1.935 MB / 1.344 GB, free: 150.1 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/5.331, allocations: 1.302 MB / 1.345 GB, free: 149.4 MB / 0.6042 GB Notification: Performance of SimCode: time 1.833e-06/5.331, allocations: 0 / 1.345 GB, free: 149.4 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1)