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.009612/0.009612, allocations: 170.8 kB / 15.12 MB, free: 6.031 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.98/1.98, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0008772/0.0008769, allocations: 86.88 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.9556/0.9556, allocations: 90.58 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003432, allocations: 11.94 kB / 485.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4961/0.4965, allocations: 66.28 MB / 0.5387 GB, free: 45.52 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02603/0.5226, allocations: 26.03 MB / 0.5641 GB, free: 31.73 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.535, allocations: 8.053 MB / 0.5719 GB, free: 26.08 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/0.5366, allocations: 19.34 kB / 0.572 GB, free: 26.07 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001612/0.5382, allocations: 447.8 kB / 0.5724 GB, free: 25.82 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002908/0.5411, allocations: 0.7363 MB / 0.5731 GB, free: 25.3 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002206/0.5434, allocations: 0.5384 MB / 0.5736 GB, free: 25 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.00213/0.5455, allocations: 0.8857 MB / 0.5745 GB, free: 24.52 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005527/0.5461, allocations: 233.6 kB / 0.5747 GB, free: 24.44 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.5472, allocations: 438.6 kB / 0.5751 GB, free: 24.25 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005987/0.5478, allocations: 380.8 kB / 0.5755 GB, free: 24.09 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.5479, allocations: 36.19 kB / 0.5755 GB, free: 24.09 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.5501, allocations: 496.5 kB / 0.576 GB, free: 24 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.5503, allocations: 139.1 kB / 0.5761 GB, free: 23.92 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002511/0.5505, allocations: 195.4 kB / 0.5763 GB, free: 23.81 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001558/0.5521, allocations: 0.8596 MB / 0.5772 GB, free: 23.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5521, allocations: 5.375 kB / 0.5772 GB, free: 23.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5521, allocations: 0 / 0.5772 GB, free: 23.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.5521, allocations: 0 / 0.5772 GB, free: 23.55 MB / 426.7 MB 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.002473/0.5546, allocations: 1.134 MB / 0.5783 GB, free: 22.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.5547, allocations: 9.438 kB / 0.5783 GB, free: 22.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001701/0.5549, allocations: 125.6 kB / 0.5784 GB, free: 22.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.5551, allocations: 110.3 kB / 0.5785 GB, free: 22.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009599/0.5561, allocations: 0.4951 MB / 0.579 GB, free: 22.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.5562, allocations: 57.86 kB / 0.579 GB, free: 22.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.5563, allocations: 89.78 kB / 0.5791 GB, free: 22.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.558, allocations: 0.788 MB / 0.5799 GB, free: 21.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.558, allocations: 0 / 0.5799 GB, free: 21.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.5581, allocations: 27.44 kB / 0.5799 GB, free: 21.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.27e-05/0.5582, allocations: 20.31 kB / 0.5799 GB, free: 21.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001445/0.5596, allocations: 0.6535 MB / 0.5806 GB, free: 21.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005585/0.5652, allocations: 3.78 MB / 0.5843 GB, free: 18.63 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.5667, allocations: 0.6553 MB / 0.5849 GB, free: 18.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003163/0.5699, allocations: 2.598 MB / 0.5875 GB, free: 15.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009069/0.5708, allocations: 381.8 kB / 0.5878 GB, free: 15.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.805e-06/0.5708, allocations: 0 / 0.5878 GB, free: 15.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.004569/0.5754, allocations: 2.044 MB / 0.5898 GB, free: 14.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.5754, allocations: 85.2 kB / 0.5899 GB, free: 14.41 MB / 426.7 MB [/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.0008737/0.5763, allocations: 494.1 kB / 0.5904 GB, free: 14.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.104e-05/0.5764, allocations: 38.47 kB / 0.5904 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.5767, allocations: 375.8 kB / 0.5908 GB, free: 13.85 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.577, allocations: 232.6 kB / 0.591 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.577, allocations: 18.41 kB / 0.591 GB, free: 13.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.5772, allocations: 376.1 kB / 0.5914 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005396/0.5778, allocations: 225.5 kB / 0.5916 GB, free: 13.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006144/0.5784, allocations: 338.1 kB / 0.5919 GB, free: 13.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006389/0.579, allocations: 292.3 kB / 0.5922 GB, free: 12.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.579, allocations: 0 / 0.5922 GB, free: 12.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001771/0.5808, allocations: 0.8168 MB / 0.593 GB, free: 12.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.216e-05/0.5809, allocations: 34.09 kB / 0.593 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.5809, allocations: 5.375 kB / 0.593 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004287/0.5813, allocations: 97.38 kB / 0.5931 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000582/0.5819, allocations: 136.5 kB / 0.5932 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/0.5841, allocations: 1.869 MB / 0.5951 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006715/0.5847, allocations: 57.03 kB / 0.5951 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-05/0.5848, allocations: 30.78 kB / 0.5951 GB, free: 10.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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.0004935/0.5853, allocations: 212.2 kB / 0.5953 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.5855, allocations: 68.31 kB / 0.5954 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/0.5875, allocations: 0.8283 MB / 0.5962 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.5875, allocations: 7.406 kB / 0.5962 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5875, allocations: 1.5 kB / 0.5962 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.5875, allocations: 3.516 kB / 0.5962 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.5911, allocations: 1.667 MB / 0.5979 GB, free: 9.383 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.5911, allocations: 2.344 kB / 0.5979 GB, free: 9.383 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/0.5917, allocations: 118.1 kB / 0.598 GB, free: 9.375 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003766/0.5921, allocations: 101.9 kB / 0.5981 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.41e-05/0.5921, allocations: 24.86 kB / 0.5981 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/0.5942, allocations: 1.862 MB / 0.5999 GB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5942, allocations: 1 kB / 0.5999 GB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.5965, allocations: 1.166 MB / 0.6011 GB, free: 7.047 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.5969, allocations: 217 kB / 0.6013 GB, free: 6.844 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.601e-05/0.597, allocations: 17.73 kB / 0.6013 GB, free: 6.832 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004847/0.5975, allocations: 63.14 kB / 0.6013 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.5977, allocations: 55.06 kB / 0.6014 GB, free: 6.773 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.037e-05/0.5978, allocations: 29.61 kB / 0.6014 GB, free: 6.762 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005033/0.5983, allocations: 334.8 kB / 0.6017 GB, free: 6.559 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5983, allocations: 0 / 0.6017 GB, free: 6.559 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001311/0.5996, allocations: 277.5 kB / 0.602 GB, free: 6.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (flowResistance.inlet.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.003136/0.6028, allocations: 2.1 MB / 0.6041 GB, free: 5.016 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.6046, allocations: 0.813 MB / 0.6048 GB, free: 4.539 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6046, allocations: 1.094 kB / 0.6049 GB, free: 4.539 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009213/0.6056, allocations: 496.2 kB / 0.6053 GB, free: 4.242 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.6066, allocations: 180.1 kB / 0.6055 GB, free: 4.156 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004814/0.6115, allocations: 4.061 MB / 0.6095 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006743/0.6122, allocations: 0.9814 MB / 0.6104 GB, free: 15.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006603/0.6128, allocations: 136.9 kB / 0.6105 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004693/0.6133, allocations: 304.2 kB / 0.6108 GB, free: 15.63 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.6133, allocations: 0 / 0.6108 GB, free: 15.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04376/0.6571, allocations: 18.97 MB / 0.6294 GB, free: 13.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/0.6573, allocations: 203.4 kB / 0.6296 GB, free: 13.36 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/3.708, allocations: 0 / 0.6296 GB, free: 13.36 MB / 458.7 MB (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