Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV.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.001654/0.001654, allocations: 114.7 kB / 17.6 MB, free: 4.699 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.001927/0.001927, allocations: 186 kB / 20.78 MB, free: 1.539 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.486/1.486, allocations: 225.6 MB / 249.4 MB, free: 3.16 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.6503/0.6503, allocations: 94.61 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.Undirected.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002692/0.002692, allocations: 75.88 kB / 0.5444 GB, free: 12.53 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4256/0.4283, allocations: 71.84 MB / 0.6145 GB, free: 3.832 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.MCV): time 0.2862/0.7145, allocations: 233.6 MB / 0.8427 GB, free: 10.62 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.4908/1.205, allocations: 28.61 MB / 0.8706 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005339/1.211, allocations: 156.3 kB / 0.8708 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.006731/1.217, allocations: 1.846 MB / 0.8726 GB, free: 1.492 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.01611/1.233, allocations: 4.593 MB / 0.8771 GB, free: 1.414 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.009771/1.243, allocations: 3.234 MB / 0.8802 GB, free: 1.34 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.01277/1.256, allocations: 6.95 MB / 0.887 GB, free: 1.324 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00233/1.258, allocations: 0.6178 MB / 0.8876 GB, free: 17.16 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009614/1.268, allocations: 3.341 MB / 0.8909 GB, free: 17.13 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007663/1.276, allocations: 3.325 MB / 0.8941 GB, free: 17.07 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.002202/1.278, allocations: 337.4 kB / 0.8944 GB, free: 17.07 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01456/1.292, allocations: 5.016 MB / 0.8993 GB, free: 16.99 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001962/1.294, allocations: 0.8756 MB / 0.9002 GB, free: 16.8 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.006087/1.3, allocations: 2.222 MB / 0.9024 GB, free: 16.11 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01769/1.318, allocations: 6.654 MB / 0.9089 GB, free: 15 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/1.318, allocations: 0.9062 kB / 0.9089 GB, free: 15 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.633e-06/1.318, allocations: 0 / 0.9089 GB, free: 15 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0002366/1.318, allocations: 0 / 0.9089 GB, free: 15 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 847 * Number of variables: 847 Notification: Performance of Generate backend data structure: time 0.01349/1.332, allocations: 5.397 MB / 0.9141 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/1.332, allocations: 11.34 kB / 0.9141 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006302/1.333, allocations: 452.7 kB / 0.9146 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/1.334, allocations: 0.5142 MB / 0.9151 GB, free: 12.12 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005519/1.339, allocations: 2.643 MB / 0.9177 GB, free: 11.39 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/1.339, allocations: 254.7 kB / 0.9179 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005967/1.34, allocations: 350.5 kB / 0.9182 GB, free: 11.37 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008936/1.349, allocations: 4.019 MB / 0.9222 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.299e-05/1.349, allocations: 11.38 kB / 0.9222 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000317/1.349, allocations: 141.3 kB / 0.9223 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.26e-05/1.349, allocations: 86.12 kB / 0.9224 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007561/1.357, allocations: 3.836 MB / 0.9261 GB, free: 10.7 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02382/1.381, allocations: 17.49 MB / 0.9432 GB, free: 160 kB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007523/1.388, allocations: 3.432 MB / 0.9466 GB, free: 15.85 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003859/1.392, allocations: 1.67 MB / 0.9482 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01853/1.411, allocations: 12 MB / 0.9599 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004407/1.415, allocations: 2.127 MB / 0.962 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=430): time 1.103e-05/1.415, allocations: 0.9688 kB / 0.962 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=430): time 0.01396/1.429, allocations: 6.265 MB / 0.9681 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002095/1.429, allocations: 343.4 kB / 0.9684 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003384/1.433, allocations: 2.531 MB / 0.9709 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0005268/1.433, allocations: 104.5 kB / 0.971 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001166/1.434, allocations: 1.505 MB / 0.9725 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.001568/1.436, allocations: 1.494 MB / 0.9739 GB, free: 12 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/1.437, allocations: 0.6891 MB / 0.9746 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001324/1.437, allocations: 302 kB / 0.9749 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003039/1.44, allocations: 1.299 MB / 0.9762 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/1.444, allocations: 1.886 MB / 0.978 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007099/1.451, allocations: 3.552 MB / 0.9815 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.899e-05/1.451, allocations: 4 kB / 0.9815 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=515) (initialization): time 0.01112/1.462, allocations: 4.596 MB / 0.986 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/1.462, allocations: 186.2 kB / 0.9861 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/1.462, allocations: 12 kB / 0.9862 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/1.464, allocations: 378.5 kB / 0.9865 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003867/1.468, allocations: 0.8894 MB / 0.9874 GB, free: 4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/1.481, allocations: 14.94 MB / 1.002 GB, free: 3.766 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003751/1.485, allocations: 428.9 kB / 1.002 GB, free: 3.344 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007887/1.486, allocations: 183.9 kB / 1.003 GB, free: 3.164 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 30 (trapezoid2.count,$PRE.trapezoid2.count,trapezoid2.T_start,$PRE.trapezoid2.T_start,$whenCondition6,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition4,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition2,pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition1,pulse3.count,$PRE.pulse3.count,pulse3.T_start,$PRE.pulse3.T_start,$whenCondition3,pulse5.count,$PRE.pulse5.count,pulse5.T_start,$PRE.pulse5.T_start,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (483): * Single equations (assignments): 467 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001766/1.487, allocations: 0.5933 MB / 1.003 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.489, allocations: 441.2 kB / 1.004 GB, free: 2.176 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/1.503, allocations: 5.907 MB / 1.009 GB, free: 12.17 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-05/1.503, allocations: 44 kB / 1.009 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-05/1.503, allocations: 8 kB / 1.009 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001137/1.503, allocations: 27.86 kB / 1.009 GB, free: 12.09 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/1.525, allocations: 8.985 MB / 1.018 GB, free: 3.117 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-05/1.525, allocations: 8 kB / 1.018 GB, free: 3.109 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003623/1.529, allocations: 0.7738 MB / 1.019 GB, free: 2.375 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/1.53, allocations: 390.3 kB / 1.019 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007456/1.531, allocations: 143.9 kB / 1.019 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/1.544, allocations: 14.94 MB / 1.034 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.649e-05/1.544, allocations: 14.53 kB / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/1.559, allocations: 6.78 MB / 1.041 GB, free: 10.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002352/1.562, allocations: 0.8914 MB / 1.042 GB, free: 9.75 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009289/1.562, allocations: 115.8 kB / 1.042 GB, free: 9.637 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002754/1.565, allocations: 147.9 kB / 1.042 GB, free: 9.492 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000836/1.566, allocations: 388.1 kB / 1.042 GB, free: 9.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003445/1.566, allocations: 155.9 kB / 1.042 GB, free: 8.969 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002993/1.569, allocations: 1.85 MB / 1.044 GB, free: 7.141 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/1.569, allocations: 0 / 1.044 GB, free: 7.141 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.005526/1.575, allocations: 1.509 MB / 1.046 GB, free: 5.629 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 20 (mCV1.dp_int,flowResistance1.rear.m_flow,mCV2.dp_int,flowResistance2.rear.m_flow,mCV3.dp_int,flowResistance3.rear.m_flow,mCV4.dp_int,flowResistance4.rear.m_flow,mCV.dp_int,flowResistance.rear.m_flow,mCV5.dp_int,flowResistance5.rear.m_flow,mCV9.rear.m_flow,mCV9.dp_int,mCV8.rear.m_flow,mCV8.dp_int,mCV7.rear.m_flow,mCV7.dp_int,mCV6.rear.m_flow,mCV6.dp_int) * Number of discrete variables: 18 ($whenCondition1,pulse1.T_start,pulse1.count,$whenCondition2,trapezoid.T_start,trapezoid.count,$whenCondition3,pulse3.T_start,pulse3.count,$whenCondition4,trapezoid1.T_start,trapezoid1.count,$whenCondition5,pulse5.T_start,pulse5.count,$whenCondition6,trapezoid2.T_start,trapezoid2.count) * Number of discrete states: 6 (trapezoid2.count,pulse5.count,trapezoid1.count,pulse3.count,trapezoid.count,pulse1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (415): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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 Backend phase and start with SimCode phase: time 0.01759/1.593, allocations: 8.506 MB / 1.054 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.01068/1.603, allocations: 4.843 MB / 1.059 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.603, allocations: 0 / 1.059 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.007512/1.611, allocations: 3.365 MB / 1.062 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007774/1.618, allocations: 1.265 MB / 1.063 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06629/1.685, allocations: 31.12 MB / 1.094 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002101/1.687, allocations: 2.147 MB / 1.096 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.004363/1.691, allocations: 0.8775 MB / 1.097 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003085/1.694, allocations: 1.899 MB / 1.098 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of SimCode: time 2.083e-06/1.694, allocations: 2.531 kB / 1.098 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5661/2.26, allocations: 110.4 MB / 1.206 GB, free: 457.4 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.1/23.36, allocations: 1.562 kB / 1.206 GB, free: 457.4 MB / 0.9356 GB " [Timeout remaining time 636] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_MCV.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 27.00047627100139] Failed to read output from testmodel.py, exit status != 0: 23.528726736985845 23.547408948 22.224938226 Calling exit ...