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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 112.1 kB / 17.6 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002464/0.002464, allocations: 189.9 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.6387/0.6387, allocations: 94.62 MB / 399.1 MB, free: 15.72 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-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003819/0.003819, allocations: 84.14 kB / 0.5443 GB, free: 12.56 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5169/0.5207, allocations: 71.84 MB / 0.6145 GB, free: 3.828 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.0381/0.5588, allocations: 31.51 MB / 0.6453 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.5728, allocations: 9.833 MB / 0.6549 GB, free: 5.473 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.5741, allocations: 37.31 kB / 0.6549 GB, free: 5.457 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.5757, allocations: 0.5216 MB / 0.6554 GB, free: 5.023 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002787/0.5785, allocations: 0.8193 MB / 0.6562 GB, free: 4.336 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002156/0.5807, allocations: 0.7046 MB / 0.6569 GB, free: 3.781 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002509/0.5832, allocations: 1.489 MB / 0.6584 GB, free: 2.895 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.5837, allocations: 186.4 kB / 0.6585 GB, free: 2.777 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001504/0.5852, allocations: 0.6315 MB / 0.6592 GB, free: 2.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008439/0.586, allocations: 0.5394 MB / 0.6597 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.5862, allocations: 77.28 kB / 0.6598 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001769/0.5879, allocations: 0.5139 MB / 0.6603 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.5882, allocations: 207 kB / 0.6605 GB, free: 1.699 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006664/0.5889, allocations: 0.5175 MB / 0.661 GB, free: 1.352 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002912/0.5918, allocations: 1.408 MB / 0.6623 GB, free: 444 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.5918, allocations: 1.625 kB / 0.6623 GB, free: 444 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5918, allocations: 0 / 0.6623 GB, free: 444 kB / 494.1 MB Notification: Performance of Transformations before backend: time 3.315e-05/0.5918, allocations: 0 / 0.6623 GB, free: 444 kB / 494.1 MB 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.003096/0.5949, allocations: 1.456 MB / 0.6638 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.5949, allocations: 9.625 kB / 0.6638 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.5951, allocations: 123.4 kB / 0.6639 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/0.5954, allocations: 130.7 kB / 0.664 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.5969, allocations: 0.7525 MB / 0.6648 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.587e-05/0.597, allocations: 55.59 kB / 0.6648 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.5972, allocations: 79.42 kB / 0.6649 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.5987, allocations: 0.7889 MB / 0.6657 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.5987, allocations: 1.188 kB / 0.6657 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.9e-05/0.5988, allocations: 34.94 kB / 0.6657 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.5988, allocations: 22.27 kB / 0.6657 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.6001, allocations: 0.6211 MB / 0.6663 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00515/0.6052, allocations: 3.734 MB / 0.67 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.6065, allocations: 0.5426 MB / 0.6705 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005216/0.607, allocations: 258.5 kB / 0.6707 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003445/0.6105, allocations: 2.525 MB / 0.6732 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007763/0.6112, allocations: 380 kB / 0.6736 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=63): time 2.534e-06/0.6112, allocations: 4 kB / 0.6736 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65): time 0.004424/0.6157, allocations: 1.945 MB / 0.6755 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.6157, allocations: 89.66 kB / 0.6756 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008735/0.6166, allocations: 0.6376 MB / 0.6762 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/0.6167, allocations: 37.7 kB / 0.6762 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003826/0.6171, allocations: 452.6 kB / 0.6766 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.6173, allocations: 230 kB / 0.6769 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.6175, allocations: 126.3 kB / 0.677 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.6176, allocations: 333.9 kB / 0.6773 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.6181, allocations: 213.5 kB / 0.6775 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005469/0.6186, allocations: 323.5 kB / 0.6778 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.6197, allocations: 0.5614 MB / 0.6784 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6197, allocations: 3.938 kB / 0.6784 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001653/0.6214, allocations: 0.7997 MB / 0.6791 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.564e-05/0.6214, allocations: 36.2 kB / 0.6792 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.6214, allocations: 4 kB / 0.6792 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004141/0.6219, allocations: 104.9 kB / 0.6793 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005206/0.6224, allocations: 127.8 kB / 0.6794 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002538/0.6249, allocations: 1.981 MB / 0.6813 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005682/0.6255, allocations: 27.95 kB / 0.6814 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.75e-05/0.6256, allocations: 28 kB / 0.6814 GB, free: 15.13 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.0004639/0.626, allocations: 225.7 kB / 0.6816 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.6262, allocations: 95.38 kB / 0.6817 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.628, allocations: 0.8504 MB / 0.6825 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.628, allocations: 8 kB / 0.6825 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.628, allocations: 0 / 0.6825 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.628, allocations: 3.984 kB / 0.6825 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002855/0.6308, allocations: 1.598 MB / 0.6841 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.6308, allocations: 8 kB / 0.6841 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004874/0.6313, allocations: 112 kB / 0.6842 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003571/0.6317, allocations: 108.6 kB / 0.6843 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/0.6317, allocations: 27.92 kB / 0.6844 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002368/0.6341, allocations: 1.973 MB / 0.6863 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.6341, allocations: 7.922 kB / 0.6863 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.6363, allocations: 1.078 MB / 0.6873 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.6367, allocations: 216.5 kB / 0.6875 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.6368, allocations: 12 kB / 0.6876 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/0.6373, allocations: 35.91 kB / 0.6876 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.6374, allocations: 52.48 kB / 0.6876 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.391e-05/0.6375, allocations: 23.98 kB / 0.6877 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006726/0.6381, allocations: 455 kB / 0.6881 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6381, allocations: 0 / 0.6881 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001112/0.6392, allocations: 287.7 kB / 0.6884 GB, free: 7.699 MB / 0.5137 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.003334/0.6426, allocations: 1.868 MB / 0.6902 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001734/0.6443, allocations: 0.7444 MB / 0.6909 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.6443, allocations: 4 kB / 0.6909 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009082/0.6452, allocations: 445.6 kB / 0.6914 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.6465, allocations: 241.9 kB / 0.6916 GB, free: 4.344 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.6576, allocations: 6.616 MB / 0.698 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006694/0.6582, allocations: 1.001 MB / 0.699 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000555/0.6588, allocations: 149.8 kB / 0.6992 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005241/0.6593, allocations: 371.3 kB / 0.6995 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of SimCode: time 1.593e-06/0.6593, allocations: 0 / 0.6995 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06345/0.7228, allocations: 22.82 MB / 0.7218 GB, free: 5.328 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.64, allocations: 9.719 kB / 0.7218 GB, free: 5.324 MB / 0.545 GB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv --start-time 0 --stop-time 25 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.025 ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 17.017938328994205] Failed to read output from testmodel.py, exit status != 0: 13.734889126993949 13.746954612 13.152124593 Calling exit ...