Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001948/0.001948, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.412/1.412, allocations: 221.5 MB / 229.6 MB, free: 7.547 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.001008/0.001008, allocations: 92.77 kB / 280.5 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01247/0.01247, allocations: 1.568 MB / 332.8 MB, free: 13.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7756/0.7756, allocations: 90.04 MB / 474 MB, free: 13.04 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.791e-05, allocations: 2.844 kB / 0.5376 GB, free: 33.17 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1501, allocations: 69.38 MB / 0.6053 GB, free: 24 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.129/1.279, allocations: 356 MB / 0.953 GB, free: 168 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/1.279, allocations: 79.69 kB / 0.9531 GB, free: 168 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.3224/1.602, allocations: 173.8 MB / 1.123 GB, free: 38.48 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.194e-06/1.602, allocations: 0 / 1.123 GB, free: 38.48 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.376e-05/1.602, allocations: 24 kB / 1.123 GB, free: 38.46 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.002807/1.605, allocations: 1.169 MB / 1.124 GB, free: 37.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.605, allocations: 12.03 kB / 1.124 GB, free: 37.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004802/1.605, allocations: 106.9 kB / 1.124 GB, free: 37.11 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/1.606, allocations: 0.5238 MB / 1.125 GB, free: 36.55 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/1.606, allocations: 27.98 kB / 1.125 GB, free: 36.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/1.606, allocations: 48 kB / 1.125 GB, free: 36.48 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009952/1.607, allocations: 0.5506 MB / 1.125 GB, free: 35.93 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/1.609, allocations: 0.6541 MB / 1.126 GB, free: 35.26 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/1.609, allocations: 7.984 kB / 1.126 GB, free: 35.25 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.597e-05/1.609, allocations: 3.953 kB / 1.126 GB, free: 35.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/1.609, allocations: 23.98 kB / 1.126 GB, free: 35.22 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/1.613, allocations: 3.612 MB / 1.129 GB, free: 31.23 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007972/1.614, allocations: 0.5639 MB / 1.13 GB, free: 30.66 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/1.614, allocations: 250.5 kB / 1.13 GB, free: 30.41 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00217/1.616, allocations: 2.135 MB / 1.132 GB, free: 27.99 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005045/1.617, allocations: 340.8 kB / 1.133 GB, free: 27.64 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 3.106e-06/1.617, allocations: 0 / 1.133 GB, free: 27.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.003441/1.62, allocations: 1.371 MB / 1.134 GB, free: 26.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/1.62, allocations: 89.62 kB / 1.134 GB, free: 26.11 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter valveLinear.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/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveLinear.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/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveLinear.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.0004566/1.621, allocations: 380.1 kB / 1.134 GB, free: 25.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/1.621, allocations: 29.7 kB / 1.134 GB, free: 25.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/1.621, allocations: 379.8 kB / 1.135 GB, free: 25.32 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/1.621, allocations: 216.7 kB / 1.135 GB, free: 25.1 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/1.621, allocations: 0 / 1.135 GB, free: 25.1 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000114/1.621, allocations: 374.8 kB / 1.135 GB, free: 24.73 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/1.622, allocations: 197.5 kB / 1.136 GB, free: 24.53 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003044/1.622, allocations: 283.6 kB / 1.136 GB, free: 24.22 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/1.622, allocations: 232.4 kB / 1.136 GB, free: 24 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/1.623, allocations: 0 / 1.136 GB, free: 24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001318/1.624, allocations: 0.6913 MB / 1.137 GB, free: 23.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/1.624, allocations: 33.64 kB / 1.137 GB, free: 23.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/1.624, allocations: 4 kB / 1.137 GB, free: 23.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003371/1.624, allocations: 105 kB / 1.137 GB, free: 23.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/1.625, allocations: 135.8 kB / 1.137 GB, free: 23.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/1.627, allocations: 1.83 MB / 1.139 GB, free: 21.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/1.627, allocations: 43.8 kB / 1.139 GB, free: 21.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.751e-05/1.627, allocations: 32.05 kB / 1.139 GB, free: 20.99 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001546/1.627, allocations: 112.9 kB / 1.139 GB, free: 20.88 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001273/1.629, allocations: 0.5888 MB / 1.139 GB, free: 20.27 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/1.629, allocations: 71.11 kB / 1.14 GB, free: 20.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001651/1.63, allocations: 0.7173 MB / 1.14 GB, free: 19.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/1.63, allocations: 8 kB / 1.14 GB, free: 19.47 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/1.63, allocations: 7.938 kB / 1.14 GB, free: 19.46 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/1.63, allocations: 0 / 1.14 GB, free: 19.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00271/1.633, allocations: 1.441 MB / 1.142 GB, free: 17.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.633, allocations: 0 / 1.142 GB, free: 17.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/1.634, allocations: 119.9 kB / 1.142 GB, free: 17.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003503/1.634, allocations: 96.72 kB / 1.142 GB, free: 17.76 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.69e-05/1.634, allocations: 23.97 kB / 1.142 GB, free: 17.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/1.636, allocations: 1.842 MB / 1.144 GB, free: 15.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.636, allocations: 4.031 kB / 1.144 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/1.638, allocations: 1.007 MB / 1.145 GB, free: 14.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/1.638, allocations: 200.2 kB / 1.145 GB, free: 14.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/1.638, allocations: 8 kB / 1.145 GB, free: 14.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005412/1.639, allocations: 47.91 kB / 1.145 GB, free: 14.46 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/1.639, allocations: 60.47 kB / 1.145 GB, free: 14.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-05/1.639, allocations: 27.97 kB / 1.145 GB, free: 14.38 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003549/1.639, allocations: 287 kB / 1.145 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9.72e-07/1.639, allocations: 0 / 1.145 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001185/1.641, allocations: 292.1 kB / 1.146 GB, free: 13.82 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (splitterT2_1.splitterN.outlets[1].m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002967/1.644, allocations: 2.135 MB / 1.148 GB, free: 11.65 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001351/1.645, allocations: 0.7508 MB / 1.148 GB, free: 10.87 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/1.645, allocations: 0.5 kB / 1.148 GB, free: 10.87 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006526/1.646, allocations: 481.1 kB / 1.149 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009928/1.647, allocations: 168.8 kB / 1.149 GB, free: 10.22 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/1.649, allocations: 1.332 MB / 1.15 GB, free: 8.844 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/1.65, allocations: 0.9852 MB / 1.151 GB, free: 7.832 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004915/1.65, allocations: 104.7 kB / 1.151 GB, free: 7.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/1.651, allocations: 303.2 kB / 1.152 GB, free: 7.434 MB / 0.6042 GB Notification: Performance of SimCode: time 8.12e-07/1.651, allocations: 0 / 1.152 GB, free: 7.434 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4135/2.064, allocations: 19.6 MB / 1.171 GB, free: 140.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/2.064, allocations: 127.6 kB / 1.171 GB, free: 140.6 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/4.746, allocations: 0.625 kB / 1.171 GB, free: 140.6 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat does not exist to compare? outputFormat=mat