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.007225/0.007225, allocations: 167 kB / 15.13 MB, free: 6.023 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.605/1.605, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.0007545/0.0007545, allocations: 86.36 kB / 269.6 MB, free: 13.34 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.7533/0.7533, allocations: 90.61 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002902/0.0002902, allocations: 8 kB / 485.3 MB, free: 1.949 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3445, allocations: 66.28 MB / 0.5387 GB, free: 45.59 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02185/0.3664, allocations: 28.62 MB / 0.5666 GB, free: 29.64 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.008975/0.3754, allocations: 8.95 MB / 0.5754 GB, free: 23.23 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.0008941/0.3763, allocations: 22.12 kB / 0.5754 GB, free: 23.22 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.3774, allocations: 445.5 kB / 0.5758 GB, free: 22.97 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.3793, allocations: 0.689 MB / 0.5765 GB, free: 22.54 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001659/0.3809, allocations: 0.5197 MB / 0.577 GB, free: 22.25 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.3826, allocations: 1.43 MB / 0.5784 GB, free: 21.6 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004387/0.383, allocations: 239.4 kB / 0.5786 GB, free: 21.52 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008195/0.3839, allocations: 465.8 kB / 0.5791 GB, free: 21.34 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005241/0.3844, allocations: 449.2 kB / 0.5795 GB, free: 21.14 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 9.164e-05/0.3845, allocations: 36.06 kB / 0.5795 GB, free: 21.14 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001368/0.3859, allocations: 378.2 kB / 0.5799 GB, free: 21.05 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3861, allocations: 140.2 kB / 0.58 GB, free: 20.97 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.3863, allocations: 195 kB / 0.5802 GB, free: 20.86 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.3875, allocations: 0.8649 MB / 0.5811 GB, free: 20.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3875, allocations: 0 / 0.5811 GB, free: 20.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3875, allocations: 4.969 kB / 0.5811 GB, free: 20.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.3875, allocations: 0.9375 kB / 0.5811 GB, free: 20.6 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.002137/0.3897, allocations: 1.138 MB / 0.5822 GB, free: 19.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3897, allocations: 9.969 kB / 0.5822 GB, free: 19.8 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001621/0.3899, allocations: 117 kB / 0.5823 GB, free: 19.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.3902, allocations: 115 kB / 0.5824 GB, free: 19.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007095/0.3909, allocations: 0.5 MB / 0.5829 GB, free: 19.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.3909, allocations: 53.12 kB / 0.5829 GB, free: 19.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3911, allocations: 83.23 kB / 0.583 GB, free: 19.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3925, allocations: 0.7919 MB / 0.5838 GB, free: 18.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3925, allocations: 1.188 kB / 0.5838 GB, free: 18.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.784e-05/0.3926, allocations: 34.23 kB / 0.5838 GB, free: 18.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.3926, allocations: 18.25 kB / 0.5838 GB, free: 18.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.3938, allocations: 0.6534 MB / 0.5845 GB, free: 18.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004309/0.3982, allocations: 3.732 MB / 0.5881 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.3994, allocations: 0.6532 MB / 0.5888 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.4, allocations: 305 kB / 0.5891 GB, free: 15.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002444/0.4024, allocations: 2.558 MB / 0.5916 GB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007189/0.4032, allocations: 386.9 kB / 0.5919 GB, free: 12.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.815e-06/0.4032, allocations: 7.516 kB / 0.5919 GB, free: 12.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.004073/0.4073, allocations: 1.965 MB / 0.5939 GB, free: 11.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.4073, allocations: 90.09 kB / 0.5939 GB, free: 11.45 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.0006312/0.408, allocations: 488.8 kB / 0.5944 GB, free: 11.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.408, allocations: 37.83 kB / 0.5944 GB, free: 11.19 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/0.4083, allocations: 384 kB / 0.5948 GB, free: 10.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.4084, allocations: 228.9 kB / 0.595 GB, free: 10.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.4085, allocations: 14.75 kB / 0.595 GB, free: 10.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4086, allocations: 376 kB / 0.5954 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004869/0.4091, allocations: 228.6 kB / 0.5956 GB, free: 10.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.4097, allocations: 342.3 kB / 0.5959 GB, free: 10.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005309/0.4102, allocations: 290 kB / 0.5962 GB, free: 9.926 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4102, allocations: 1.406 kB / 0.5962 GB, free: 9.926 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00144/0.4117, allocations: 0.8207 MB / 0.597 GB, free: 9.551 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.4117, allocations: 34.86 kB / 0.5971 GB, free: 9.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.4117, allocations: 2.688 kB / 0.5971 GB, free: 9.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003542/0.4121, allocations: 102.6 kB / 0.5972 GB, free: 9.484 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.4126, allocations: 140.2 kB / 0.5973 GB, free: 9.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.4143, allocations: 1.823 MB / 0.5991 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005748/0.4149, allocations: 58 kB / 0.5991 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.379e-05/0.4149, allocations: 30.12 kB / 0.5992 GB, free: 7.867 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.0003795/0.4153, allocations: 212.9 kB / 0.5994 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/0.4154, allocations: 72.48 kB / 0.5994 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.4171, allocations: 0.8176 MB / 0.6002 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.4171, allocations: 8.062 kB / 0.6002 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.4171, allocations: 2.469 kB / 0.6002 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.4172, allocations: 9.172 kB / 0.6002 GB, free: 7.258 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002445/0.4196, allocations: 1.638 MB / 0.6018 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.4196, allocations: 0 / 0.6018 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004856/0.4201, allocations: 118.2 kB / 0.602 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003061/0.4204, allocations: 108.6 kB / 0.6021 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.4205, allocations: 20.58 kB / 0.6021 GB, free: 6.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001476/0.422, allocations: 1.828 MB / 0.6039 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.422, allocations: 0 / 0.6039 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.4238, allocations: 1.146 MB / 0.605 GB, free: 3.672 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.4241, allocations: 201.2 kB / 0.6052 GB, free: 3.484 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.414e-05/0.4242, allocations: 21.14 kB / 0.6052 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/0.4246, allocations: 58.52 kB / 0.6053 GB, free: 3.441 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.4248, allocations: 59.47 kB / 0.6053 GB, free: 3.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.247e-05/0.4248, allocations: 33.81 kB / 0.6053 GB, free: 3.395 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003676/0.4252, allocations: 336 kB / 0.6057 GB, free: 3.191 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4252, allocations: 0 / 0.6057 GB, free: 3.191 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009471/0.4262, allocations: 281 kB / 0.6059 GB, free: 3.129 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.002465/0.4286, allocations: 1.925 MB / 0.6078 GB, free: 1.824 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.4301, allocations: 0.8138 MB / 0.6086 GB, free: 1.348 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4301, allocations: 0 / 0.6086 GB, free: 1.348 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007735/0.4309, allocations: 0.4889 MB / 0.6091 GB, free: 1.047 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.432, allocations: 194.6 kB / 0.6093 GB, free: 0.9531 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006854/0.4388, allocations: 4.575 MB / 0.6137 GB, free: 13.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.4394, allocations: 0.9578 MB / 0.6147 GB, free: 12.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005593/0.4399, allocations: 132.2 kB / 0.6148 GB, free: 12.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.4403, allocations: 299.3 kB / 0.6151 GB, free: 11.97 MB / 442.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4403, allocations: 0 / 0.6151 GB, free: 11.97 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03608/0.4764, allocations: 19.33 MB / 0.634 GB, free: 8.941 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002273/0.4767, allocations: 216.9 kB / 0.6342 GB, free: 8.699 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.107, allocations: 0 / 0.6342 GB, free: 8.699 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