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.0007804/0.0007804, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0007724/0.0007724, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8808/0.8808, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.6269/0.6269, allocations: 116 MB / 375.2 MB, free: 4.199 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 0.5533 GB, free: 13.33 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.005e-05/1.115e-05, allocations: 2.281 kB / 0.5533 GB, free: 13.33 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02422/0.02423, allocations: 39.4 MB / 0.5917 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.004408/0.02864, allocations: 3.889 MB / 0.5955 GB, free: 1.887 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000603/0.02924, allocations: 67.38 kB / 0.5956 GB, free: 1.82 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0009663/0.03021, allocations: 0.5157 MB / 0.5961 GB, free: 1.301 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.03231, allocations: 1.498 MB / 0.5976 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.03376, allocations: 0.9531 MB / 0.5985 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001841/0.0356, allocations: 2.41 MB / 0.6008 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003206/0.03592, allocations: 165.5 kB / 0.601 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002518/0.03844, allocations: 1.748 MB / 0.6027 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005878/0.03903, allocations: 0.6582 MB / 0.6034 GB, free: 9.836 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.03914, allocations: 104 kB / 0.6035 GB, free: 9.734 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.04019, allocations: 0.6862 MB / 0.6041 GB, free: 9.047 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.04037, allocations: 282.7 kB / 0.6044 GB, free: 8.77 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003313/0.0407, allocations: 490.8 kB / 0.6049 GB, free: 8.289 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001564/0.04227, allocations: 1.935 MB / 0.6068 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.04227, allocations: 0 / 0.6068 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.313e-06/0.04227, allocations: 0 / 0.6068 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.902e-05/0.04229, allocations: 4 kB / 0.6068 GB, free: 6.344 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.001933/0.04423, allocations: 1.667 MB / 0.6084 GB, free: 4.641 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.04426, allocations: 15.97 kB / 0.6084 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.04438, allocations: 143.9 kB / 0.6085 GB, free: 4.477 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003482/0.04473, allocations: 192 kB / 0.6087 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009813/0.04571, allocations: 0.8113 MB / 0.6095 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.04575, allocations: 78.36 kB / 0.6096 GB, free: 3.371 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.135e-05/0.04584, allocations: 100.1 kB / 0.6097 GB, free: 3.273 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.04696, allocations: 1.338 MB / 0.611 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.04698, allocations: 0 / 0.611 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.315e-05/0.04703, allocations: 40 kB / 0.611 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.04704, allocations: 24 kB / 0.611 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.04812, allocations: 1.012 MB / 0.612 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.05126, allocations: 3.237 MB / 0.6152 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.05243, allocations: 0.8732 MB / 0.6161 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000457/0.05289, allocations: 429.5 kB / 0.6165 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001607/0.05449, allocations: 1.33 MB / 0.6178 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.05452, allocations: 55.19 kB / 0.6178 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=108): time 1.713e-06/0.05452, allocations: 0 / 0.6178 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of matching and sorting (n=122): time 0.005532/0.06006, allocations: 4.038 MB / 0.6218 GB, free: 6.578 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.0601, allocations: 90.27 kB / 0.6218 GB, free: 6.473 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000611/0.06071, allocations: 0.81 MB / 0.6226 GB, free: 5.641 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.06076, allocations: 53.7 kB / 0.6227 GB, free: 5.582 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.06107, allocations: 0.4896 MB / 0.6232 GB, free: 5.086 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.06128, allocations: 444.1 kB / 0.6236 GB, free: 4.648 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.06146, allocations: 194.9 kB / 0.6238 GB, free: 4.453 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.054e-05/0.06155, allocations: 357.9 kB / 0.6241 GB, free: 4.098 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005015/0.06206, allocations: 398.4 kB / 0.6245 GB, free: 3.711 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006469/0.0627, allocations: 0.5898 MB / 0.6251 GB, free: 3.055 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.06386, allocations: 1.059 MB / 0.6261 GB, free: 1.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.06386, allocations: 0 / 0.6261 GB, free: 1.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001821/0.06568, allocations: 1.506 MB / 0.6276 GB, free: 396 kB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.0657, allocations: 12.03 kB / 0.6276 GB, free: 384 kB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.0657, allocations: 4 kB / 0.6276 GB, free: 380 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005807/0.06628, allocations: 306.6 kB / 0.6279 GB, free: 48 kB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.06674, allocations: 235.7 kB / 0.6281 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005346/0.07208, allocations: 11.26 MB / 0.6391 GB, free: 3.645 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003486/0.07243, allocations: 51.97 kB / 0.6392 GB, free: 3.594 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.07248, allocations: 43.98 kB / 0.6392 GB, free: 3.551 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * 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.0002685/0.07275, allocations: 266.4 kB / 0.6394 GB, free: 3.281 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.07288, allocations: 135.1 kB / 0.6396 GB, free: 3.148 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/0.07497, allocations: 1.786 MB / 0.6413 GB, free: 1.316 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.07498, allocations: 15.94 kB / 0.6413 GB, free: 1.301 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.07498, allocations: 4 kB / 0.6413 GB, free: 1.297 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.07499, allocations: 7.969 kB / 0.6413 GB, free: 1.289 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2439/0.3189, allocations: 2.559 MB / 0.6438 GB, free: 92.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3189, allocations: 3.281 kB / 0.6438 GB, free: 92.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005091/0.3194, allocations: 200.2 kB / 0.644 GB, free: 92.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006675/0.32, allocations: 315.7 kB / 0.6443 GB, free: 92.3 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.094e-05/0.3201, allocations: 35.61 kB / 0.6444 GB, free: 92.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004745/0.3249, allocations: 11.26 MB / 0.6554 GB, free: 82.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3249, allocations: 6 kB / 0.6554 GB, free: 82.39 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.3273, allocations: 2.1 MB / 0.6574 GB, free: 81.43 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004809/0.3278, allocations: 220 kB / 0.6576 GB, free: 81.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.675e-05/0.3279, allocations: 28.02 kB / 0.6577 GB, free: 81.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/0.3283, allocations: 54.16 kB / 0.6577 GB, free: 81.34 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.3285, allocations: 116 kB / 0.6578 GB, free: 81.32 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.3285, allocations: 41.44 kB / 0.6579 GB, free: 81.3 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004567/0.329, allocations: 0.5908 MB / 0.6584 GB, free: 81.05 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.81e-07/0.329, allocations: 0 / 0.6584 GB, free: 81.05 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001014/0.33, allocations: 433 kB / 0.6589 GB, free: 80.99 MB / 0.5573 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.002766/0.3328, allocations: 2.92 MB / 0.6617 GB, free: 79.47 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001969/0.3347, allocations: 1.996 MB / 0.6637 GB, free: 78.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3347, allocations: 0 / 0.6637 GB, free: 78.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.3359, allocations: 1.525 MB / 0.6651 GB, free: 77.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.3375, allocations: 0.5359 MB / 0.6657 GB, free: 76.94 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.3503, allocations: 10.13 MB / 0.6756 GB, free: 71.92 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.3508, allocations: 0.5132 MB / 0.6761 GB, free: 71.79 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009556/0.3517, allocations: 244.3 kB / 0.6763 GB, free: 71.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000427/0.3521, allocations: 494.3 kB / 0.6768 GB, free: 71.34 MB / 0.5573 GB Notification: Performance of SimCode: time 1.974e-06/0.3521, allocations: 1.375 kB / 0.6768 GB, free: 71.34 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05873/0.4109, allocations: 41.86 MB / 0.7176 GB, free: 36.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.45/9.861, allocations: 10.41 kB / 0.7177 GB, free: 36.88 MB / 0.5573 GB " [Timeout remaining time 650] (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: 12.382224895991385] Failed to read output from testmodel.py, exit status != 0: 9.970363746397197 9.977774886 9.934167545 Calling exit ...