Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001421/0.001421, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.2 MB / 218.5 MB, free: 9.211 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.0008794/0.0008794, allocations: 96.55 kB / 266.6 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8738/0.8738, allocations: 90.35 MB / 405 MB, free: 8.621 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.484e-05/4.485e-05, allocations: 4 kB / 479.2 MB, free: 14.23 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4313/0.4314, allocations: 66.26 MB / 0.5327 GB, free: 28.57 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.828/1.259, allocations: 356.7 MB / 0.881 GB, free: 4.359 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/1.26, allocations: 70.78 kB / 0.8811 GB, free: 4.328 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 0.7167/1.976, allocations: 170.9 MB / 1.048 GB, free: 120.1 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.084e-06/1.976, allocations: 3.938 kB / 1.048 GB, free: 120.1 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001254/1.977, allocations: 31.98 kB / 1.048 GB, free: 120 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: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.003355/1.98, allocations: 1.168 MB / 1.049 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/1.98, allocations: 8.031 kB / 1.049 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003175/1.98, allocations: 114.5 kB / 1.049 GB, free: 118.7 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004996/1.981, allocations: 110.8 kB / 1.049 GB, free: 118.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/1.982, allocations: 0.5316 MB / 1.05 GB, free: 118 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.758e-05/1.982, allocations: 57.94 kB / 1.05 GB, free: 117.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/1.982, allocations: 79.98 kB / 1.05 GB, free: 117.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/1.984, allocations: 0.7596 MB / 1.051 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/1.984, allocations: 0 / 1.051 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/1.984, allocations: 35.94 kB / 1.051 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/1.984, allocations: 20 kB / 1.051 GB, free: 117 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008538/1.984, allocations: 0.5896 MB / 1.051 GB, free: 116.4 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/1.989, allocations: 3.748 MB / 1.055 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009186/1.99, allocations: 0.5972 MB / 1.056 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000352/1.99, allocations: 276.3 kB / 1.056 GB, free: 111.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002064/1.992, allocations: 2.147 MB / 1.058 GB, free: 109 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005333/1.993, allocations: 365.9 kB / 1.058 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 3.587e-06/1.993, allocations: 0 / 1.058 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=68): time 0.002521/1.995, allocations: 1.481 MB / 1.06 GB, free: 107.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/1.995, allocations: 85.67 kB / 1.06 GB, free: 107 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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 0.4.0-OM_adaptions/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 0.4.0-OM_adaptions/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.0004697/1.996, allocations: 424.8 kB / 1.06 GB, free: 106.6 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.579e-05/1.996, allocations: 41.7 kB / 1.06 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/1.996, allocations: 375.9 kB / 1.061 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/1.996, allocations: 228.6 kB / 1.061 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/1.996, allocations: 12 kB / 1.061 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000105/1.996, allocations: 386.8 kB / 1.061 GB, free: 105.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/1.996, allocations: 201.5 kB / 1.061 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/1.997, allocations: 309.1 kB / 1.062 GB, free: 105 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/1.997, allocations: 267.8 kB / 1.062 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.997, allocations: 0 / 1.062 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001137/1.998, allocations: 0.7829 MB / 1.063 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/1.998, allocations: 29.7 kB / 1.063 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/1.998, allocations: 7.938 kB / 1.063 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000334/1.999, allocations: 104.9 kB / 1.063 GB, free: 103.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005112/1.999, allocations: 127.8 kB / 1.063 GB, free: 103.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/2.001, allocations: 1.89 MB / 1.065 GB, free: 101.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/2.001, allocations: 56.05 kB / 1.065 GB, free: 101.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.808e-05/2.002, allocations: 24 kB / 1.065 GB, free: 101.5 MB / 0.5886 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.000162/2.002, allocations: 156.5 kB / 1.065 GB, free: 101.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.216e-05/2.002, allocations: 67.16 kB / 1.065 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/2.003, allocations: 0.7562 MB / 1.066 GB, free: 100.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/2.003, allocations: 8 kB / 1.066 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/2.003, allocations: 4 kB / 1.066 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/2.003, allocations: 3.984 kB / 1.066 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/2.005, allocations: 1.585 MB / 1.067 GB, free: 98.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/2.005, allocations: 4 kB / 1.067 GB, free: 98.88 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004536/2.006, allocations: 119.8 kB / 1.068 GB, free: 98.77 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002826/2.006, allocations: 104.7 kB / 1.068 GB, free: 98.66 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.884e-05/2.006, allocations: 19.98 kB / 1.068 GB, free: 98.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001516/2.008, allocations: 1.917 MB / 1.07 GB, free: 96.59 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/2.008, allocations: 0 / 1.07 GB, free: 96.59 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/2.009, allocations: 1.065 MB / 1.071 GB, free: 95.49 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/2.009, allocations: 204.3 kB / 1.071 GB, free: 95.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.809e-05/2.009, allocations: 16 kB / 1.071 GB, free: 95.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/2.01, allocations: 59.86 kB / 1.071 GB, free: 95.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/2.01, allocations: 56.47 kB / 1.071 GB, free: 95.14 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.237e-05/2.01, allocations: 31.97 kB / 1.071 GB, free: 95.11 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003185/2.01, allocations: 321.6 kB / 1.071 GB, free: 94.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.5e-07/2.01, allocations: 0 / 1.071 GB, free: 94.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0009497/2.011, allocations: 319.8 kB / 1.072 GB, free: 94.49 MB / 0.5886 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.002203/2.013, allocations: 2.172 MB / 1.074 GB, free: 92.29 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001161/2.015, allocations: 0.7971 MB / 1.074 GB, free: 91.45 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/2.015, allocations: 0 / 1.074 GB, free: 91.45 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.000625/2.015, allocations: 0.4919 MB / 1.075 GB, free: 90.94 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000851/2.016, allocations: 180.1 kB / 1.075 GB, free: 90.77 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/2.019, allocations: 1.4 MB / 1.076 GB, free: 89.32 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/2.019, allocations: 0.9772 MB / 1.077 GB, free: 88.32 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0004435/2.019, allocations: 116.6 kB / 1.078 GB, free: 88.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003287/2.02, allocations: 299.3 kB / 1.078 GB, free: 87.91 MB / 0.5886 GB Notification: Performance of SimCode: time 6.51e-07/2.02, allocations: 0 / 1.078 GB, free: 87.91 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/2.057, allocations: 23.99 MB / 1.101 GB, free: 64.03 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/2.057, allocations: 183.5 kB / 1.101 GB, free: 63.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.077/5.134, allocations: 4 kB / 1.101 GB, free: 63.8 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer_res.mat does not exist to compare? outputFormat=mat