Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001757/0.001757, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001842/0.001842, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.553/1.553, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6306/0.6306, allocations: 94.56 MB / 404.1 MB, free: 11.04 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_ThermofluidStream_Examples_WaterHammer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_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.002686/0.002686, allocations: 84.3 kB / 0.5506 GB, free: 5.406 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4156, allocations: 73.02 MB / 0.6219 GB, free: 8.469 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03472/0.4504, allocations: 31.22 MB / 0.6524 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.4635, allocations: 9.758 MB / 0.6619 GB, free: 3.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.465, allocations: 51.5 kB / 0.6619 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.4666, allocations: 0.5278 MB / 0.6625 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003326/0.47, allocations: 0.8191 MB / 0.6633 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002246/0.4722, allocations: 0.6966 MB / 0.6639 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002438/0.4746, allocations: 1.498 MB / 0.6654 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/0.4751, allocations: 201.7 kB / 0.6656 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001477/0.4766, allocations: 0.6498 MB / 0.6662 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007384/0.4773, allocations: 0.5403 MB / 0.6668 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.4775, allocations: 80 kB / 0.6668 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001497/0.479, allocations: 0.5151 MB / 0.6673 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.4792, allocations: 207.1 kB / 0.6675 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005849/0.4798, allocations: 0.5207 MB / 0.668 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002627/0.4824, allocations: 1.403 MB / 0.6694 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4824, allocations: 0 / 0.6694 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4824, allocations: 0 / 0.6694 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.072e-05/0.4824, allocations: 0 / 0.6694 GB, free: 11.36 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.00286/0.4853, allocations: 1.462 MB / 0.6708 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4853, allocations: 12.02 kB / 0.6708 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.169e-05/0.4854, allocations: 22.19 kB / 0.6709 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/0.4855, allocations: 114.7 kB / 0.671 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.4858, allocations: 124.2 kB / 0.6711 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.4871, allocations: 0.7591 MB / 0.6718 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.314e-05/0.4871, allocations: 57.98 kB / 0.6719 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.4873, allocations: 83.95 kB / 0.672 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.4887, allocations: 0.7838 MB / 0.6727 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.4887, allocations: 8 kB / 0.6727 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.4888, allocations: 28 kB / 0.6728 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.4888, allocations: 20 kB / 0.6728 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.4901, allocations: 0.6285 MB / 0.6734 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004796/0.4949, allocations: 3.726 MB / 0.677 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.4961, allocations: 0.5411 MB / 0.6776 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.4966, allocations: 254.4 kB / 0.6778 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00297/0.4996, allocations: 2.535 MB / 0.6803 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007293/0.5003, allocations: 373.8 kB / 0.6806 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.024e-06/0.5003, allocations: 0 / 0.6806 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004435/0.5047, allocations: 1.949 MB / 0.6825 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/0.5048, allocations: 85.61 kB / 0.6826 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009058/0.5057, allocations: 0.6299 MB / 0.6832 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.5058, allocations: 41.7 kB / 0.6833 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004421/0.5062, allocations: 448.6 kB / 0.6837 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/0.5065, allocations: 242 kB / 0.6839 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.5067, allocations: 122.3 kB / 0.6841 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5069, allocations: 330 kB / 0.6844 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004872/0.5074, allocations: 213.5 kB / 0.6846 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.5079, allocations: 323.5 kB / 0.6849 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.509, allocations: 0.5614 MB / 0.6854 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.509, allocations: 0 / 0.6854 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001648/0.5107, allocations: 0.7998 MB / 0.6862 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.5107, allocations: 41.73 kB / 0.6863 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.5107, allocations: 0 / 0.6863 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000416/0.5111, allocations: 104.7 kB / 0.6864 GB, free: 8.852 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005206/0.5117, allocations: 131.8 kB / 0.6865 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002352/0.514, allocations: 1.977 MB / 0.6884 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004749/0.5145, allocations: 27.98 kB / 0.6884 GB, free: 6.574 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-05/0.5146, allocations: 31.98 kB / 0.6885 GB, free: 6.543 MB / 0.5137 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.0004091/0.515, allocations: 221 kB / 0.6887 GB, free: 6.32 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.5151, allocations: 99.31 kB / 0.6888 GB, free: 6.223 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.5169, allocations: 0.8468 MB / 0.6896 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/0.517, allocations: 8 kB / 0.6896 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.517, allocations: 7.938 kB / 0.6896 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.517, allocations: 3.984 kB / 0.6896 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.5198, allocations: 1.602 MB / 0.6912 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.5198, allocations: 0 / 0.6912 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.5203, allocations: 111.9 kB / 0.6913 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003587/0.5206, allocations: 108.8 kB / 0.6914 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/0.5207, allocations: 27.91 kB / 0.6914 GB, free: 3.414 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/0.5229, allocations: 1.974 MB / 0.6933 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.5229, allocations: 0 / 0.6933 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.525, allocations: 1.078 MB / 0.6944 GB, free: 196 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003626/0.5254, allocations: 212.5 kB / 0.6946 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.779e-05/0.5255, allocations: 19.94 kB / 0.6946 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004151/0.5259, allocations: 35.91 kB / 0.6947 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.526, allocations: 56.48 kB / 0.6947 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.642e-05/0.5261, allocations: 23.98 kB / 0.6947 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006008/0.5267, allocations: 455 kB / 0.6952 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5267, allocations: 0 / 0.6952 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008604/0.5275, allocations: 283.7 kB / 0.6954 GB, free: 15.11 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.002807/0.5303, allocations: 1.872 MB / 0.6973 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001598/0.5319, allocations: 0.7483 MB / 0.698 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.532, allocations: 4.125 kB / 0.698 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009629/0.5329, allocations: 445.6 kB / 0.6984 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.5342, allocations: 249.1 kB / 0.6987 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.5458, allocations: 6.604 MB / 0.7051 GB, free: 4.926 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008186/0.5466, allocations: 1.001 MB / 0.7061 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006118/0.5472, allocations: 149.9 kB / 0.7062 GB, free: 3.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005921/0.5478, allocations: 367.3 kB / 0.7066 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of SimCode: time 1.542e-06/0.5478, allocations: 0 / 0.7066 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06157/0.6094, allocations: 22.82 MB / 0.7289 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.32, allocations: 8 kB / 0.7289 GB, free: 12.77 MB / 0.5606 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 16.80684609594755] Failed to read output from testmodel.py, exit status != 0: 13.470408348017372 13.484274066 12.998764227 Calling exit ...