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.006657/0.006656, allocations: 172 kB / 15.11 MB, free: 5.98 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.864/1.864, allocations: 205.4 MB / 221.3 MB, free: 13.84 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.001165/0.001165, allocations: 94.84 kB / 269.6 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.015/1.015, allocations: 90.59 MB / 408.5 MB, free: 14.99 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.0003458, allocations: 11.98 kB / 485.3 MB, free: 2.008 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5704/0.5708, allocations: 66.27 MB / 0.5387 GB, free: 45.61 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8793/1.45, allocations: 356.8 MB / 0.887 GB, free: 54.47 MB / 0.5574 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/1.451, allocations: 81 kB / 0.8871 GB, free: 54.43 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 0.8431/2.294, allocations: 171.6 MB / 1.055 GB, free: 155.1 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.729e-06/2.294, allocations: 3.531 kB / 1.055 GB, free: 155.1 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.762e-05/2.294, allocations: 24.25 kB / 1.055 GB, free: 155.1 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.002896/2.297, allocations: 1.246 MB / 1.056 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.316e-05/2.297, allocations: 11.78 kB / 1.056 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001542/2.297, allocations: 118.1 kB / 1.056 GB, free: 154 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002875/2.297, allocations: 105.5 kB / 1.056 GB, free: 154 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009115/2.298, allocations: 0.5452 MB / 1.057 GB, free: 153.5 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.518e-05/2.298, allocations: 54.97 kB / 1.057 GB, free: 153.5 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/2.298, allocations: 77.84 kB / 1.057 GB, free: 153.5 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/2.3, allocations: 0.7876 MB / 1.058 GB, free: 153 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/2.3, allocations: 0 / 1.058 GB, free: 153 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.686e-05/2.3, allocations: 31.22 kB / 1.058 GB, free: 153 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/2.3, allocations: 34.92 kB / 1.058 GB, free: 152.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/2.301, allocations: 0.6344 MB / 1.058 GB, free: 152.6 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/2.305, allocations: 3.748 MB / 1.062 GB, free: 149.2 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/2.307, allocations: 0.6464 MB / 1.063 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002313/2.309, allocations: 2.148 MB / 1.065 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006861/2.31, allocations: 383.1 kB / 1.065 GB, free: 146.5 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 3.176e-06/2.31, allocations: 0 / 1.065 GB, free: 146.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=68): time 0.00387/2.313, allocations: 2.056 MB / 1.067 GB, free: 145.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/2.314, allocations: 88.56 kB / 1.067 GB, free: 145 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.0005448/2.314, allocations: 429.5 kB / 1.068 GB, free: 144.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.554e-05/2.314, allocations: 41.02 kB / 1.068 GB, free: 144.7 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.000295/2.314, allocations: 372.3 kB / 1.068 GB, free: 144.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/2.315, allocations: 235.8 kB / 1.068 GB, free: 144.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.483e-05/2.315, allocations: 15.75 kB / 1.068 GB, free: 144.2 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001549/2.315, allocations: 375.7 kB / 1.069 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/2.315, allocations: 229.6 kB / 1.069 GB, free: 143.7 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00049/2.316, allocations: 335.9 kB / 1.069 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004738/2.316, allocations: 293.8 kB / 1.069 GB, free: 143.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/2.316, allocations: 3.938 kB / 1.069 GB, free: 143.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001401/2.318, allocations: 0.8262 MB / 1.07 GB, free: 142.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.915e-05/2.318, allocations: 33.58 kB / 1.07 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/2.318, allocations: 192 / 1.07 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003879/2.318, allocations: 108.7 kB / 1.07 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/2.319, allocations: 131.3 kB / 1.07 GB, free: 142.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/2.321, allocations: 1.925 MB / 1.072 GB, free: 141 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005604/2.321, allocations: 54.23 kB / 1.072 GB, free: 141 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/2.321, allocations: 26.44 kB / 1.072 GB, free: 141 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 () * 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.0004494/2.322, allocations: 219 kB / 1.073 GB, free: 140.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/2.322, allocations: 69.23 kB / 1.073 GB, free: 140.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/2.323, allocations: 0.815 MB / 1.073 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/2.323, allocations: 10.62 kB / 1.073 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/2.323, allocations: 7.328 kB / 1.073 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/2.323, allocations: 0 / 1.073 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002598/2.326, allocations: 1.632 MB / 1.075 GB, free: 139.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/2.326, allocations: 0 / 1.075 GB, free: 139.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004876/2.327, allocations: 115.8 kB / 1.075 GB, free: 139.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003456/2.327, allocations: 101.7 kB / 1.075 GB, free: 139.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.046e-05/2.327, allocations: 30.19 kB / 1.075 GB, free: 139.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/2.329, allocations: 1.95 MB / 1.077 GB, free: 137.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/2.329, allocations: 3.938 kB / 1.077 GB, free: 137.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/2.331, allocations: 1.129 MB / 1.078 GB, free: 136.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/2.331, allocations: 206.5 kB / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.479e-05/2.331, allocations: 22.42 kB / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004914/2.332, allocations: 59.3 kB / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/2.332, allocations: 60.91 kB / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.472e-05/2.332, allocations: 29.2 kB / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004194/2.332, allocations: 328 kB / 1.079 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/2.332, allocations: 0 / 1.079 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001251/2.334, allocations: 316.7 kB / 1.079 GB, free: 136.1 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) * 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.003198/2.337, allocations: 2.258 MB / 1.082 GB, free: 134.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001664/2.339, allocations: 0.8412 MB / 1.082 GB, free: 134.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/2.339, allocations: 3.906 kB / 1.082 GB, free: 134.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0008213/2.339, allocations: 0.5171 MB / 1.083 GB, free: 133.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009588/2.34, allocations: 170.5 kB / 1.083 GB, free: 133.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004314/2.345, allocations: 3.917 MB / 1.087 GB, free: 130.4 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/2.345, allocations: 0.9799 MB / 1.088 GB, free: 129.6 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0005109/2.346, allocations: 122.3 kB / 1.088 GB, free: 129.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/2.346, allocations: 299.9 kB / 1.088 GB, free: 129.3 MB / 0.5886 GB Notification: Performance of SimCode: time 4.388e-06/2.346, allocations: 0 / 1.088 GB, free: 129.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/2.393, allocations: 23 MB / 1.111 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003144/2.393, allocations: 201.5 kB / 1.111 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.583/5.976, allocations: 0 / 1.111 GB, free: 107.3 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