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.001206/0.001206, allocations: 173.7 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.3 MB / 213.4 MB, free: 13.77 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.0008521/0.0008524, allocations: 76.55 kB / 261.4 MB, free: 13.45 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.7069/0.7069, allocations: 90.37 MB / 399.7 MB, free: 12.11 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.434e-05/1.436e-05, allocations: 0 / 472.3 MB, free: 3.371 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3791, allocations: 66.25 MB / 0.5259 GB, free: 29.05 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6788/1.058, allocations: 356 MB / 0.8736 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/1.058, allocations: 75.59 kB / 0.8736 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 0.5932/1.652, allocations: 170.1 MB / 1.04 GB, free: 101.3 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.494e-06/1.652, allocations: 0 / 1.04 GB, free: 101.3 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001475/1.652, allocations: 20 kB / 1.04 GB, free: 101.3 MB / 0.573 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.003798/1.656, allocations: 1.164 MB / 1.041 GB, free: 100 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.65e-05/1.656, allocations: 8.031 kB / 1.041 GB, free: 100 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007071/1.656, allocations: 114.8 kB / 1.041 GB, free: 99.92 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/1.658, allocations: 0.5315 MB / 1.042 GB, free: 99.35 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.246e-05/1.658, allocations: 24 kB / 1.042 GB, free: 99.32 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/1.658, allocations: 55.98 kB / 1.042 GB, free: 99.27 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001104/1.659, allocations: 0.5544 MB / 1.042 GB, free: 98.71 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/1.66, allocations: 0.6503 MB / 1.043 GB, free: 98.05 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/1.66, allocations: 0 / 1.043 GB, free: 98.05 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/1.66, allocations: 0 / 1.043 GB, free: 98.05 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/1.66, allocations: 20 kB / 1.043 GB, free: 98.03 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00426/1.665, allocations: 3.616 MB / 1.046 GB, free: 94.04 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000762/1.665, allocations: 0.5755 MB / 1.047 GB, free: 93.45 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/1.666, allocations: 246.7 kB / 1.047 GB, free: 93.21 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002068/1.668, allocations: 2.123 MB / 1.049 GB, free: 90.8 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004453/1.668, allocations: 344.8 kB / 1.05 GB, free: 90.45 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 2.415e-06/1.668, allocations: 0 / 1.05 GB, free: 90.45 MB / 0.573 GB Notification: Performance of matching and sorting (n=68): time 0.003252/1.672, allocations: 1.375 MB / 1.051 GB, free: 89.01 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/1.672, allocations: 85.67 kB / 1.051 GB, free: 88.91 MB / 0.573 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.0004446/1.672, allocations: 378.1 kB / 1.051 GB, free: 88.54 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/1.672, allocations: 25.7 kB / 1.051 GB, free: 88.5 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000198/1.672, allocations: 375.8 kB / 1.052 GB, free: 88.13 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/1.673, allocations: 224.7 kB / 1.052 GB, free: 87.91 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/1.673, allocations: 4 kB / 1.052 GB, free: 87.9 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.678e-05/1.673, allocations: 374.8 kB / 1.052 GB, free: 87.53 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/1.673, allocations: 189.5 kB / 1.052 GB, free: 87.34 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/1.673, allocations: 287.6 kB / 1.053 GB, free: 87.03 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/1.674, allocations: 228.5 kB / 1.053 GB, free: 86.81 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.674, allocations: 0 / 1.053 GB, free: 86.81 MB / 0.573 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001293/1.675, allocations: 0.6953 MB / 1.054 GB, free: 86.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/1.675, allocations: 37.66 kB / 1.054 GB, free: 86.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/1.675, allocations: 4 kB / 1.054 GB, free: 86.05 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/1.676, allocations: 100.9 kB / 1.054 GB, free: 85.95 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/1.676, allocations: 131.8 kB / 1.054 GB, free: 85.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/1.678, allocations: 1.822 MB / 1.056 GB, free: 83.89 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/1.678, allocations: 44 kB / 1.056 GB, free: 83.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.535e-05/1.678, allocations: 27.98 kB / 1.056 GB, free: 83.82 MB / 0.573 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.0001287/1.678, allocations: 116.9 kB / 1.056 GB, free: 83.7 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001166/1.679, allocations: 0.6004 MB / 1.056 GB, free: 83.09 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.894e-05/1.68, allocations: 63.25 kB / 1.056 GB, free: 83.02 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/1.681, allocations: 0.721 MB / 1.057 GB, free: 82.29 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/1.681, allocations: 11.98 kB / 1.057 GB, free: 82.27 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/1.681, allocations: 4 kB / 1.057 GB, free: 82.27 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/1.681, allocations: 3.984 kB / 1.057 GB, free: 82.27 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/1.683, allocations: 1.437 MB / 1.059 GB, free: 80.78 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.683, allocations: 32 / 1.059 GB, free: 80.78 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/1.684, allocations: 119.9 kB / 1.059 GB, free: 80.66 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002869/1.684, allocations: 96.77 kB / 1.059 GB, free: 80.57 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/1.684, allocations: 15.98 kB / 1.059 GB, free: 80.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/1.686, allocations: 1.846 MB / 1.061 GB, free: 78.59 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.686, allocations: 0 / 1.061 GB, free: 78.59 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/1.687, allocations: 1.007 MB / 1.062 GB, free: 77.55 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/1.688, allocations: 208.2 kB / 1.062 GB, free: 77.33 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.947e-05/1.688, allocations: 8 kB / 1.062 GB, free: 77.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004666/1.688, allocations: 47.89 kB / 1.062 GB, free: 77.28 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/1.688, allocations: 56.88 kB / 1.062 GB, free: 77.22 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/1.688, allocations: 27.98 kB / 1.062 GB, free: 77.2 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002642/1.689, allocations: 286.9 kB / 1.062 GB, free: 76.92 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.51e-07/1.689, allocations: 3.938 kB / 1.062 GB, free: 76.91 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0009656/1.69, allocations: 291.9 kB / 1.063 GB, free: 76.63 MB / 0.573 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.002712/1.692, allocations: 2.133 MB / 1.065 GB, free: 74.46 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001141/1.693, allocations: 0.7545 MB / 1.065 GB, free: 73.68 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.693, allocations: 0 / 1.065 GB, free: 73.68 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006213/1.694, allocations: 477.8 kB / 1.066 GB, free: 73.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/1.695, allocations: 157.2 kB / 1.066 GB, free: 73.04 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/1.698, allocations: 1.332 MB / 1.067 GB, free: 71.66 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/1.698, allocations: 0.9736 MB / 1.068 GB, free: 70.66 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0005349/1.699, allocations: 132.5 kB / 1.068 GB, free: 70.54 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/1.699, allocations: 299.3 kB / 1.069 GB, free: 70.24 MB / 0.573 GB Notification: Performance of SimCode: time 5.81e-07/1.699, allocations: 0 / 1.069 GB, free: 70.24 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06393/1.763, allocations: 19.6 MB / 1.088 GB, free: 50.74 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/1.763, allocations: 142.5 kB / 1.088 GB, free: 50.55 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.728/4.492, allocations: 3.938 kB / 1.088 GB, free: 50.55 MB / 0.573 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