Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 116.8 kB / 17.17 MB, free: 6 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002369/0.002369, allocations: 214.3 kB / 20.13 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6652/0.6652, allocations: 100.3 MB / 409.8 MB, free: 5.387 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002543/0.002543, allocations: 75.89 kB / 0.5589 GB, free: 13.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4138, allocations: 74.42 MB / 0.6315 GB, free: 2.406 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03799/0.4518, allocations: 31.23 MB / 0.662 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.4652, allocations: 9.754 MB / 0.6716 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.4662, allocations: 51.56 kB / 0.6716 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.4678, allocations: 0.5161 MB / 0.6721 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002701/0.4705, allocations: 0.8268 MB / 0.6729 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.4725, allocations: 0.6961 MB / 0.6736 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002211/0.4747, allocations: 1.501 MB / 0.6751 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004256/0.4751, allocations: 189.8 kB / 0.6752 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001332/0.4765, allocations: 0.6538 MB / 0.6759 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006868/0.4772, allocations: 0.5403 MB / 0.6764 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.4773, allocations: 76 kB / 0.6765 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.4789, allocations: 0.519 MB / 0.677 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.4791, allocations: 211 kB / 0.6772 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000536/0.4797, allocations: 0.5168 MB / 0.6777 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002457/0.4821, allocations: 1.399 MB / 0.6791 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4821, allocations: 0 / 0.6791 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.124e-06/0.4821, allocations: 0 / 0.6791 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.846e-05/0.4821, allocations: 0 / 0.6791 GB, free: 2.672 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.003085/0.4852, allocations: 1.462 MB / 0.6805 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.4853, allocations: 20.02 kB / 0.6805 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.475e-05/0.4853, allocations: 22.12 kB / 0.6805 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.4855, allocations: 114.7 kB / 0.6806 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002962/0.4858, allocations: 128.2 kB / 0.6808 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.487, allocations: 0.7474 MB / 0.6815 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.456e-05/0.4871, allocations: 65.98 kB / 0.6816 GB, free: 12 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.4872, allocations: 76.08 kB / 0.6816 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.4886, allocations: 0.7876 MB / 0.6824 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.4886, allocations: 0 / 0.6824 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.01e-05/0.4887, allocations: 32 kB / 0.6824 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.4887, allocations: 16 kB / 0.6824 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.4899, allocations: 0.6324 MB / 0.6831 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004784/0.4947, allocations: 3.734 MB / 0.6867 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.4959, allocations: 0.5364 MB / 0.6872 GB, free: 9.801 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.4964, allocations: 263.9 kB / 0.6875 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003209/0.4997, allocations: 2.535 MB / 0.69 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007159/0.5004, allocations: 373.8 kB / 0.6903 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.404e-06/0.5004, allocations: 4 kB / 0.6903 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004269/0.5046, allocations: 1.952 MB / 0.6922 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.5047, allocations: 85.67 kB / 0.6923 GB, free: 4.098 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008266/0.5055, allocations: 0.6259 MB / 0.6929 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.728e-05/0.5056, allocations: 45.7 kB / 0.693 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003655/0.506, allocations: 444.6 kB / 0.6934 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.5062, allocations: 238 kB / 0.6936 GB, free: 2.738 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.5064, allocations: 118.3 kB / 0.6937 GB, free: 2.617 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.5065, allocations: 330 kB / 0.694 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004707/0.507, allocations: 217.5 kB / 0.6942 GB, free: 2.078 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005788/0.5076, allocations: 323.4 kB / 0.6946 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.5087, allocations: 0.5653 MB / 0.6951 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.5087, allocations: 0 / 0.6951 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001628/0.5103, allocations: 0.8074 MB / 0.6959 GB, free: 308 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.696e-05/0.5103, allocations: 31.58 kB / 0.6959 GB, free: 272 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.5103, allocations: 4 kB / 0.6959 GB, free: 268 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004077/0.5108, allocations: 101 kB / 0.696 GB, free: 164 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.5113, allocations: 135.8 kB / 0.6962 GB, free: 28 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.5137, allocations: 1.969 MB / 0.6981 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.5142, allocations: 32.08 kB / 0.6981 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.5143, allocations: 27.98 kB / 0.6981 GB, free: 13.86 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004418/0.5147, allocations: 217.7 kB / 0.6983 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.5149, allocations: 103.3 kB / 0.6984 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.5166, allocations: 0.8427 MB / 0.6993 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.5166, allocations: 8 kB / 0.6993 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5166, allocations: 3.984 kB / 0.6993 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.5167, allocations: 7.984 kB / 0.6993 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/0.5196, allocations: 1.609 MB / 0.7009 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5196, allocations: 4 kB / 0.7009 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/0.5201, allocations: 115.8 kB / 0.701 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004406/0.5206, allocations: 112.7 kB / 0.7011 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/0.5206, allocations: 19.98 kB / 0.7011 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00249/0.5231, allocations: 1.966 MB / 0.703 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5231, allocations: 0 / 0.703 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.5253, allocations: 1.086 MB / 0.7041 GB, free: 7.496 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.5257, allocations: 212.5 kB / 0.7043 GB, free: 7.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.5258, allocations: 12 kB / 0.7043 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/0.5262, allocations: 31.91 kB / 0.7043 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.5264, allocations: 52.48 kB / 0.7044 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/0.5264, allocations: 27.98 kB / 0.7044 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006511/0.5271, allocations: 451 kB / 0.7048 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5271, allocations: 8 kB / 0.7048 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009147/0.528, allocations: 283.7 kB / 0.7051 GB, free: 6.422 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002936/0.5309, allocations: 1.876 MB / 0.7069 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001637/0.5326, allocations: 0.7443 MB / 0.7077 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5326, allocations: 7.844 kB / 0.7077 GB, free: 3.73 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008971/0.5335, allocations: 454 kB / 0.7081 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.5346, allocations: 238.3 kB / 0.7083 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.5451, allocations: 6.612 MB / 0.7148 GB, free: 12.21 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/0.5457, allocations: 1.001 MB / 0.7158 GB, free: 11.19 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005401/0.5463, allocations: 141.9 kB / 0.7159 GB, free: 11.05 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005031/0.5468, allocations: 371.3 kB / 0.7163 GB, free: 10.68 MB / 0.545 GB Notification: Performance of SimCode: time 7.61e-07/0.5468, allocations: 4 kB / 0.7163 GB, free: 10.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05451/0.6013, allocations: 22.83 MB / 0.7386 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.18, allocations: 8.062 kB / 0.7386 GB, free: 4.07 MB / 0.5606 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 16.650503548968118] Failed to read output from testmodel.py, exit status != 0: 13.338110523996875 13.354585105 12.869161076 Calling exit ...