Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.001349/0.001349, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001483/0.001483, allocations: 218 kB / 23.03 MB, free: 4.922 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.413/1.413, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.7433/0.7433, allocations: 100.3 MB / 413.6 MB, free: 3.434 MB / 318.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.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",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.002463/0.002463, allocations: 85.27 kB / 0.564 GB, free: 36.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.132, allocations: 74.46 MB / 0.6367 GB, free: 7.395 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.0437/0.1757, allocations: 37.53 MB / 0.6734 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.008378/0.1841, allocations: 4.973 MB / 0.6782 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/0.1854, allocations: 55.5 kB / 0.6783 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.1869, allocations: 0.4887 MB / 0.6788 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003987/0.1909, allocations: 1.379 MB / 0.6801 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.1935, allocations: 0.8934 MB / 0.681 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003169/0.1967, allocations: 2.175 MB / 0.6831 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005315/0.1972, allocations: 169.3 kB / 0.6833 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003298/0.2005, allocations: 1.373 MB / 0.6846 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.202, allocations: 0.7856 MB / 0.6854 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000368/0.2024, allocations: 107.9 kB / 0.6855 GB, free: 5.273 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002267/0.2046, allocations: 0.6866 MB / 0.6862 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004224/0.2051, allocations: 266.8 kB / 0.6864 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.2061, allocations: 0.5403 MB / 0.6869 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004051/0.2101, allocations: 1.848 MB / 0.6887 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2101, allocations: 0 / 0.6887 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2101, allocations: 0 / 0.6887 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.521e-05/0.2102, allocations: 4 kB / 0.6887 GB, free: 1.922 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004023/0.2142, allocations: 1.621 MB / 0.6903 GB, free: 268 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.2143, allocations: 12.03 kB / 0.6903 GB, free: 256 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.551e-05/0.2143, allocations: 22.19 kB / 0.6904 GB, free: 236 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002217/0.2145, allocations: 139.9 kB / 0.6905 GB, free: 88 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007614/0.2153, allocations: 188 kB / 0.6907 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.217, allocations: 0.8039 MB / 0.6915 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/0.2171, allocations: 66 kB / 0.6915 GB, free: 15 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.2173, allocations: 100 kB / 0.6916 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.2195, allocations: 1.321 MB / 0.6929 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.2195, allocations: 3.938 kB / 0.6929 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.84e-05/0.2196, allocations: 36 kB / 0.6929 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.2196, allocations: 24 kB / 0.693 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.2216, allocations: 1.02 MB / 0.694 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005663/0.2273, allocations: 3.039 MB / 0.6969 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00194/0.2292, allocations: 0.8578 MB / 0.6978 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008524/0.2301, allocations: 445.7 kB / 0.6982 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003266/0.2333, allocations: 1.34 MB / 0.6995 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.2334, allocations: 47.22 kB / 0.6996 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 2.985e-06/0.2334, allocations: 0 / 0.6996 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122): time 0.0113/0.2447, allocations: 4.039 MB / 0.7035 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/0.2447, allocations: 90.2 kB / 0.7036 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.2459, allocations: 0.7639 MB / 0.7043 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.246, allocations: 45.7 kB / 0.7044 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/0.2464, allocations: 489.4 kB / 0.7048 GB, free: 1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004078/0.2468, allocations: 440.1 kB / 0.7053 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003468/0.2471, allocations: 202.9 kB / 0.7055 GB, free: 372 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.2473, allocations: 349.9 kB / 0.7058 GB, free: 16 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009805/0.2483, allocations: 410.4 kB / 0.7062 GB, free: 15.61 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.2494, allocations: 0.5725 MB / 0.7067 GB, free: 14.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.2515, allocations: 1.045 MB / 0.7078 GB, free: 13.89 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.2515, allocations: 7.938 kB / 0.7078 GB, free: 13.88 MB / 0.545 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003549/0.255, allocations: 1.485 MB / 0.7092 GB, free: 12.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.255, allocations: 8 kB / 0.7092 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.2551, allocations: 4 kB / 0.7092 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.2563, allocations: 307 kB / 0.7095 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009588/0.2572, allocations: 231.7 kB / 0.7097 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.2678, allocations: 11.27 MB / 0.7207 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009546/0.2687, allocations: 52.16 kB / 0.7208 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.2689, allocations: 47.98 kB / 0.7208 GB, free: 15.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005592/0.2695, allocations: 253.6 kB / 0.7211 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.2698, allocations: 119.2 kB / 0.7212 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004092/0.2739, allocations: 1.79 MB / 0.7229 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.2739, allocations: 15.94 kB / 0.723 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.2739, allocations: 4 kB / 0.723 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.2739, allocations: 7.984 kB / 0.723 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005434/0.2794, allocations: 2.558 MB / 0.7255 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.2794, allocations: 4 kB / 0.7255 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009467/0.2803, allocations: 203.7 kB / 0.7257 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/0.2814, allocations: 315 kB / 0.726 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.2815, allocations: 35.98 kB / 0.726 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/0.292, allocations: 11.28 MB / 0.737 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.292, allocations: 7.875 kB / 0.737 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.2968, allocations: 2.111 MB / 0.7391 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.2971, allocations: 111.2 kB / 0.7392 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.2973, allocations: 27.98 kB / 0.7392 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008566/0.2982, allocations: 51.95 kB / 0.7393 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/0.2985, allocations: 112.8 kB / 0.7394 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.2986, allocations: 43.92 kB / 0.7394 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009456/0.2995, allocations: 0.5672 MB / 0.74 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.2995, allocations: 0 / 0.74 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00166/0.3012, allocations: 403.7 kB / 0.7404 GB, free: 10.38 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005403/0.3066, allocations: 2.925 MB / 0.7432 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003839/0.3104, allocations: 1.984 MB / 0.7451 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.3104, allocations: 0 / 0.7451 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002642/0.3131, allocations: 1.539 MB / 0.7467 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.315, allocations: 357 kB / 0.747 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2876/0.6026, allocations: 10.01 MB / 0.7568 GB, free: 105.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007054/0.6034, allocations: 0.502 MB / 0.7573 GB, free: 105 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009089/0.6043, allocations: 221.8 kB / 0.7575 GB, free: 105 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005615/0.6048, allocations: 480.9 kB / 0.7579 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of SimCode: time 8.21e-07/0.6048, allocations: 0 / 0.7579 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08032/0.6851, allocations: 37.05 MB / 0.7941 GB, free: 80.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.4, allocations: 15.84 kB / 0.7941 GB, free: 80.91 MB / 0.5762 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 19.963029803009704] Failed to read output from testmodel.py, exit status != 0: 16.597131344024092 16.614041537 16.400461005 Calling exit ...