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.002215/0.002215, allocations: 172.8 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008655/0.0008656, allocations: 82.92 kB / 285.6 MB, free: 12.99 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.01331/0.01331, allocations: 1.553 MB / 338 MB, free: 8.48 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6389/0.6389, allocations: 90.04 MB / 479.3 MB, free: 2.973 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.203e-05/4.206e-05, allocations: 4 kB / 0.5446 GB, free: 7.895 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.174, allocations: 69.35 MB / 0.6123 GB, free: 2.453 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.254/1.428, allocations: 356.7 MB / 0.9607 GB, free: 60.27 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/1.428, allocations: 73.84 kB / 0.9607 GB, free: 60.23 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 0.8039/2.232, allocations: 174.6 MB / 1.131 GB, free: 163.4 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.865e-06/2.232, allocations: 0 / 1.131 GB, free: 163.4 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001217/2.233, allocations: 31.09 kB / 1.131 GB, free: 163.4 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.003459/2.236, allocations: 1.167 MB / 1.132 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.491e-05/2.236, allocations: 17.2 kB / 1.132 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003843/2.236, allocations: 123.1 kB / 1.133 GB, free: 162.4 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005721/2.237, allocations: 109.4 kB / 1.133 GB, free: 162.3 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/2.238, allocations: 0.5252 MB / 1.133 GB, free: 161.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.282e-05/2.238, allocations: 61.2 kB / 1.133 GB, free: 161.8 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/2.239, allocations: 78.12 kB / 1.133 GB, free: 161.8 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/2.24, allocations: 0.7587 MB / 1.134 GB, free: 161.4 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/2.24, allocations: 0 / 1.134 GB, free: 161.4 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.587e-05/2.24, allocations: 31.05 kB / 1.134 GB, free: 161.4 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/2.24, allocations: 23.5 kB / 1.134 GB, free: 161.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/2.241, allocations: 0.594 MB / 1.135 GB, free: 161.1 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004932/2.246, allocations: 3.74 MB / 1.138 GB, free: 157.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009733/2.247, allocations: 0.5931 MB / 1.139 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/2.248, allocations: 266 kB / 1.139 GB, free: 157.3 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002422/2.25, allocations: 2.157 MB / 1.141 GB, free: 155.1 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005854/2.251, allocations: 366.9 kB / 1.142 GB, free: 154.9 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 3.336e-06/2.251, allocations: 0 / 1.142 GB, free: 154.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.003003/2.254, allocations: 1.477 MB / 1.143 GB, free: 154 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/2.254, allocations: 89.48 kB / 1.143 GB, free: 153.9 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.0006375/2.255, allocations: 421 kB / 1.144 GB, free: 153.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.513e-05/2.255, allocations: 37.39 kB / 1.144 GB, free: 153.6 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/2.255, allocations: 386.1 kB / 1.144 GB, free: 153.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/2.255, allocations: 231.9 kB / 1.144 GB, free: 153.1 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/2.255, allocations: 8 kB / 1.144 GB, free: 153 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000129/2.255, allocations: 378.5 kB / 1.145 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/2.256, allocations: 205.3 kB / 1.145 GB, free: 152.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003674/2.256, allocations: 304.8 kB / 1.145 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004197/2.256, allocations: 272.7 kB / 1.145 GB, free: 152.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/2.257, allocations: 0 / 1.145 GB, free: 152.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001275/2.258, allocations: 0.7828 MB / 1.146 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/2.258, allocations: 37.28 kB / 1.146 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/2.258, allocations: 0 / 1.146 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003606/2.258, allocations: 101.9 kB / 1.146 GB, free: 151.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005116/2.259, allocations: 139.7 kB / 1.146 GB, free: 151.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/2.261, allocations: 1.884 MB / 1.148 GB, free: 150 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/2.261, allocations: 62.89 kB / 1.148 GB, free: 150 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/2.261, allocations: 23.56 kB / 1.148 GB, free: 150 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.000176/2.262, allocations: 148.5 kB / 1.148 GB, free: 149.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/2.262, allocations: 65.39 kB / 1.148 GB, free: 149.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/2.263, allocations: 0.7632 MB / 1.149 GB, free: 149.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/2.263, allocations: 6.531 kB / 1.149 GB, free: 149.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/2.263, allocations: 11.77 kB / 1.149 GB, free: 149.3 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/2.263, allocations: 0 / 1.149 GB, free: 149.3 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/2.266, allocations: 1.576 MB / 1.151 GB, free: 148.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/2.266, allocations: 0 / 1.151 GB, free: 148.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004821/2.266, allocations: 119.6 kB / 1.151 GB, free: 148.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003209/2.267, allocations: 101.5 kB / 1.151 GB, free: 148.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.963e-05/2.267, allocations: 22.48 kB / 1.151 GB, free: 148.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/2.268, allocations: 1.906 MB / 1.153 GB, free: 146.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/2.268, allocations: 3.938 kB / 1.153 GB, free: 146.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/2.27, allocations: 1.066 MB / 1.154 GB, free: 145.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/2.27, allocations: 204.3 kB / 1.154 GB, free: 145.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/2.271, allocations: 23.8 kB / 1.154 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005567/2.271, allocations: 56.92 kB / 1.154 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/2.271, allocations: 60.25 kB / 1.154 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/2.271, allocations: 31.47 kB / 1.154 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000426/2.272, allocations: 318.3 kB / 1.155 GB, free: 145.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.2e-07/2.272, allocations: 0 / 1.155 GB, free: 145.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001242/2.273, allocations: 315.3 kB / 1.155 GB, free: 145.2 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.002701/2.276, allocations: 2.182 MB / 1.157 GB, free: 143.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001376/2.277, allocations: 0.7974 MB / 1.158 GB, free: 142.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/2.277, allocations: 0 / 1.158 GB, free: 142.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007369/2.278, allocations: 495.5 kB / 1.158 GB, free: 141.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/2.279, allocations: 186.6 kB / 1.158 GB, free: 141.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/2.282, allocations: 1.396 MB / 1.16 GB, free: 140.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006989/2.283, allocations: 0.9694 MB / 1.161 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0006611/2.284, allocations: 116.6 kB / 1.161 GB, free: 139 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004872/2.284, allocations: 307.2 kB / 1.161 GB, free: 138.7 MB / 0.6042 GB Notification: Performance of SimCode: time 2.866e-06/2.284, allocations: 0 / 1.161 GB, free: 138.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05126/2.336, allocations: 23.97 MB / 1.185 GB, free: 115 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/2.336, allocations: 169.8 kB / 1.185 GB, free: 114.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.072/5.408, allocations: 3.938 kB / 1.185 GB, free: 114.8 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