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.0105/0.0105, allocations: 171.9 kB / 15.12 MB, free: 5.973 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.453/1.453, allocations: 223.2 MB / 239 MB, free: 52 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009285/0.0009285, allocations: 97.77 kB / 290.2 MB, free: 4.52 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.01231/0.01231, allocations: 1.558 MB / 342.9 MB, free: 11.39 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8558/0.8558, allocations: 90.31 MB / 484.6 MB, free: 38.23 MB / 346.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004932/0.0004933, allocations: 16 kB / 0.5527 GB, free: 4.836 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.3996, allocations: 69.34 MB / 0.6204 GB, free: 20.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8428/1.242, allocations: 356.8 MB / 0.9688 GB, free: 4.785 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/1.243, allocations: 74.78 kB / 0.9689 GB, free: 4.75 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.7092/1.952, allocations: 175.4 MB / 1.14 GB, free: 78.79 MB / 0.6042 GB Notification: Performance of FrontEnd: time 5.31e-06/1.952, allocations: 0 / 1.14 GB, free: 78.79 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.955e-05/1.952, allocations: 27.92 kB / 1.14 GB, free: 78.77 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.002885/1.955, allocations: 1.249 MB / 1.141 GB, free: 77.46 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.689e-05/1.955, allocations: 11.98 kB / 1.141 GB, free: 77.45 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/1.955, allocations: 126.5 kB / 1.142 GB, free: 77.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002896/1.956, allocations: 110.8 kB / 1.142 GB, free: 77.21 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008998/1.957, allocations: 0.5392 MB / 1.142 GB, free: 76.63 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.116e-05/1.957, allocations: 58 kB / 1.142 GB, free: 76.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/1.957, allocations: 72 kB / 1.142 GB, free: 76.5 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/1.958, allocations: 0.7907 MB / 1.143 GB, free: 75.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/1.958, allocations: 0 / 1.143 GB, free: 75.7 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/1.958, allocations: 27.95 kB / 1.143 GB, free: 75.67 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/1.958, allocations: 20 kB / 1.143 GB, free: 75.65 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/1.959, allocations: 0.6441 MB / 1.144 GB, free: 75 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003923/1.963, allocations: 3.744 MB / 1.147 GB, free: 70.87 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/1.964, allocations: 0.6439 MB / 1.148 GB, free: 70.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002141/1.967, allocations: 2.147 MB / 1.15 GB, free: 67.79 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006647/1.967, allocations: 389.8 kB / 1.151 GB, free: 67.38 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 2.785e-06/1.967, allocations: 0 / 1.151 GB, free: 67.38 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.003813/1.971, allocations: 2.048 MB / 1.153 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/1.971, allocations: 85.67 kB / 1.153 GB, free: 65.12 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.0004985/1.972, allocations: 430.1 kB / 1.153 GB, free: 64.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/1.972, allocations: 45.7 kB / 1.153 GB, free: 64.65 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002648/1.972, allocations: 375.9 kB / 1.153 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/1.972, allocations: 236.6 kB / 1.154 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/1.972, allocations: 8 kB / 1.154 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001455/1.972, allocations: 378.8 kB / 1.154 GB, free: 63.65 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/1.973, allocations: 225.9 kB / 1.154 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/1.973, allocations: 335.1 kB / 1.155 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000491/1.974, allocations: 296.8 kB / 1.155 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.974, allocations: 0 / 1.155 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001373/1.975, allocations: 0.8347 MB / 1.156 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.751e-05/1.975, allocations: 35.58 kB / 1.156 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/1.975, allocations: 7.953 kB / 1.156 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/1.976, allocations: 100.7 kB / 1.156 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/1.976, allocations: 131.8 kB / 1.156 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/1.978, allocations: 1.921 MB / 1.158 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005399/1.978, allocations: 48.03 kB / 1.158 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.136e-05/1.978, allocations: 31.98 kB / 1.158 GB, free: 59.51 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 () * Number of clocked 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.0003736/1.979, allocations: 210.2 kB / 1.158 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.19e-05/1.979, allocations: 67.16 kB / 1.158 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/1.98, allocations: 0.8186 MB / 1.159 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.98, allocations: 8 kB / 1.159 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.981, allocations: 4 kB / 1.159 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/1.981, allocations: 3.984 kB / 1.159 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/1.983, allocations: 1.624 MB / 1.161 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.983, allocations: 0 / 1.161 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/1.983, allocations: 127.8 kB / 1.161 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/1.984, allocations: 104.7 kB / 1.161 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.872e-05/1.984, allocations: 19.98 kB / 1.161 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001552/1.985, allocations: 1.957 MB / 1.163 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.985, allocations: 0 / 1.163 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/1.987, allocations: 1.135 MB / 1.164 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/1.987, allocations: 204.2 kB / 1.164 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.214e-05/1.987, allocations: 20 kB / 1.164 GB, free: 52.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/1.988, allocations: 59.91 kB / 1.164 GB, free: 52.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/1.988, allocations: 56.47 kB / 1.164 GB, free: 52.83 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.164e-05/1.988, allocations: 31.97 kB / 1.164 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003157/1.988, allocations: 326.9 kB / 1.164 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/1.988, allocations: 0 / 1.164 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0009898/1.989, allocations: 311.8 kB / 1.165 GB, free: 52.18 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) * Number of clocked states: 0 () * 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.002675/1.992, allocations: 2.259 MB / 1.167 GB, free: 49.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001408/1.993, allocations: 0.8398 MB / 1.168 GB, free: 49.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.993, allocations: 0 / 1.168 GB, free: 49.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007592/1.994, allocations: 0.5152 MB / 1.168 GB, free: 48.49 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008865/1.995, allocations: 183.3 kB / 1.168 GB, free: 48.31 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003806/1.999, allocations: 3.928 MB / 1.172 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004788/1.999, allocations: 0.9733 MB / 1.173 GB, free: 43.29 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0005338/2, allocations: 116.6 kB / 1.173 GB, free: 43.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/2, allocations: 307.3 kB / 1.174 GB, free: 42.88 MB / 0.6042 GB Notification: Performance of SimCode: time 8.316e-06/2, allocations: 0 / 1.174 GB, free: 42.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04014/2.04, allocations: 22.98 MB / 1.196 GB, free: 20.13 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/2.041, allocations: 189.2 kB / 1.196 GB, free: 19.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.217/5.257, allocations: 3.938 kB / 1.196 GB, free: 19.89 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