Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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: translateModel(ThermofluidStream.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|mCV6.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow|source6.outlet.m_flow|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV") translateModel(ThermofluidStream.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|mCV6.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow|source6.outlet.m_flow|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 114.7 kB / 16.42 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 190.5 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6638/0.6638, allocations: 91.19 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 75.88 kB / 0.5175 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3169, allocations: 67.69 MB / 0.5836 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.4513/0.7682, allocations: 197.5 MB / 0.7765 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02123/0.7895, allocations: 24.22 MB / 0.8001 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.7919, allocations: 85.88 kB / 0.8002 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002788/0.7947, allocations: 1.152 MB / 0.8013 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006437/0.8012, allocations: 2.57 MB / 0.8038 GB, free: 488 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004792/0.806, allocations: 1.885 MB / 0.8057 GB, free: 448 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004115/0.8101, allocations: 3.595 MB / 0.8092 GB, free: 364 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009101/0.811, allocations: 0.5709 MB / 0.8097 GB, free: 216 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002782/0.8138, allocations: 1.633 MB / 0.8113 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.8164, allocations: 1.602 MB / 0.8129 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0007245/0.8171, allocations: 182.8 kB / 0.8131 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00727/0.8244, allocations: 3.332 MB / 0.8163 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006663/0.8251, allocations: 475.7 kB / 0.8168 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001935/0.827, allocations: 1.223 MB / 0.818 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007341/0.8344, allocations: 3.776 MB / 0.8216 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.8344, allocations: 0.9375 kB / 0.8217 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8344, allocations: 0 / 0.8217 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.006e-05/0.8345, allocations: 0 / 0.8217 GB, free: 12.19 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 395 * Number of variables: 395 Notification: Performance of Generate backend data structure: time 0.007539/0.842, allocations: 3.351 MB / 0.8249 GB, free: 9.758 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.8421, allocations: 9.969 kB / 0.8249 GB, free: 9.758 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005232/0.8426, allocations: 287.7 kB / 0.8252 GB, free: 9.609 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003174/0.8458, allocations: 1.628 MB / 0.8268 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.043e-05/0.8459, allocations: 126 kB / 0.8269 GB, free: 8.422 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000263/0.8462, allocations: 171.4 kB / 0.8271 GB, free: 8.32 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003658/0.8498, allocations: 1.884 MB / 0.8289 GB, free: 6.352 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.786e-05/0.8499, allocations: 11.17 kB / 0.8289 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001682/0.8501, allocations: 63.98 kB / 0.829 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.8501, allocations: 40 kB / 0.829 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003904/0.854, allocations: 1.745 MB / 0.8307 GB, free: 4.512 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009993/0.864, allocations: 7.705 MB / 0.8383 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005868/0.8699, allocations: 2.015 MB / 0.8402 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.8719, allocations: 0.9315 MB / 0.8411 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007389/0.8793, allocations: 6.795 MB / 0.8478 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002374/0.8817, allocations: 1.086 MB / 0.8488 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=191): time 5.39e-06/0.8817, allocations: 0 / 0.8488 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of matching and sorting (n=191): time 0.008249/0.89, allocations: 3.365 MB / 0.8521 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.8901, allocations: 232.8 kB / 0.8523 GB, free: 12.9 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/0.8925, allocations: 1.694 MB / 0.854 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.8926, allocations: 65.7 kB / 0.8541 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.000723/0.8934, allocations: 0.9159 MB / 0.855 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005397/0.8939, allocations: 0.6338 MB / 0.8556 GB, free: 9.551 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005126/0.8944, allocations: 327.5 kB / 0.8559 GB, free: 9.227 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.8945, allocations: 301.1 kB / 0.8562 GB, free: 8.93 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/0.8963, allocations: 0.6519 MB / 0.8568 GB, free: 8.277 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.8982, allocations: 0.8993 MB / 0.8577 GB, free: 7.305 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003662/0.9019, allocations: 1.747 MB / 0.8594 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.9019, allocations: 0 / 0.8594 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005454/0.9074, allocations: 2.434 MB / 0.8618 GB, free: 3.012 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.9075, allocations: 185.5 kB / 0.8619 GB, free: 2.797 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.9075, allocations: 5.062 kB / 0.8619 GB, free: 2.793 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007851/0.9083, allocations: 261.2 kB / 0.8622 GB, free: 2.52 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.9101, allocations: 414.1 kB / 0.8626 GB, free: 2.133 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008086/0.9182, allocations: 10.57 MB / 0.8729 GB, free: 6.645 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.9201, allocations: 226.1 kB / 0.8731 GB, free: 6.422 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002108/0.9203, allocations: 87.97 kB / 0.8732 GB, free: 6.336 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (212): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(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.0007511/0.9211, allocations: 380.8 kB / 0.8736 GB, free: 5.98 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004763/0.9216, allocations: 237 kB / 0.8738 GB, free: 5.746 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005988/0.9275, allocations: 2.63 MB / 0.8764 GB, free: 3.078 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.731e-05/0.9276, allocations: 11.91 kB / 0.8764 GB, free: 3.066 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.9276, allocations: 4 kB / 0.8764 GB, free: 3.062 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008926/0.9285, allocations: 489.3 kB / 0.8769 GB, free: 2.562 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/0.9289, allocations: 51.84 kB / 0.8769 GB, free: 2.512 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/0.9303, allocations: 115.9 kB / 0.877 GB, free: 2.398 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004062/0.9307, allocations: 215.6 kB / 0.8772 GB, free: 2.188 MB / 0.6387 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00704/0.9377, allocations: 2.841 MB / 0.88 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006606/0.9444, allocations: 3.539 MB / 0.8835 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002085/0.9465, allocations: 0.9544 MB / 0.8844 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001586/0.9481, allocations: 1.149 MB / 0.8855 GB, free: 9.707 MB / 0.6544 GB Notification: Performance of Backend: time 4.71e-07/0.9481, allocations: 0 / 0.8855 GB, free: 9.707 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.006976/0.9551, allocations: 3.346 MB / 0.8888 GB, free: 6.289 MB / 0.6544 GB Notification: Performance of SimCode: time 0.007722/0.9628, allocations: 5.038 MB / 0.8937 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of Templates: time 0.07392/1.037, allocations: 47.57 MB / 0.9401 GB, free: 2.051 MB / 0.7012 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1)