Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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|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|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_OM_adaptions_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|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|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009125/0.0009126, allocations: 171 kB / 16.11 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.169/1.169, allocations: 205 MB / 221.9 MB, free: 9.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007034/0.0007034, allocations: 100.3 kB / 269.9 MB, free: 8.652 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5839/0.5839, allocations: 90.51 MB / 408.3 MB, free: 3.945 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 8.219 kB / 484.9 MB, free: 7.223 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2243, allocations: 65.82 MB / 0.5378 GB, free: 34.87 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.3628/0.5871, allocations: 187.8 MB / 0.7211 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01795/0.6051, allocations: 21.57 MB / 0.7422 GB, free: 444 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.6071, allocations: 28.38 kB / 0.7422 GB, free: 444 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.002262/0.6094, allocations: 0.8717 MB / 0.7431 GB, free: 408 kB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.005111/0.6145, allocations: 2.01 MB / 0.745 GB, free: 308 kB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.6181, allocations: 1.448 MB / 0.7465 GB, free: 256 kB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.003123/0.6212, allocations: 3.56 MB / 0.7499 GB, free: 252 kB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005062/0.6217, allocations: 421.9 kB / 0.7503 GB, free: 116 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.6234, allocations: 1.115 MB / 0.7514 GB, free: 104 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.6247, allocations: 1.304 MB / 0.7527 GB, free: 92 kB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001747/0.6248, allocations: 78.78 kB / 0.7528 GB, free: 92 kB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005589/0.6304, allocations: 3.203 MB / 0.7559 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002657/0.6307, allocations: 306.6 kB / 0.7562 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0008096/0.6315, allocations: 0.8816 MB / 0.7571 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.004416/0.636, allocations: 3.083 MB / 0.7601 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.636, allocations: 3.344 kB / 0.7601 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.423e-06/0.636, allocations: 0 / 0.7601 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.956e-05/0.636, allocations: 0 / 0.7601 GB, free: 14.08 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 357 * Number of variables: 357 Notification: Performance of Generate backend data structure: time 0.004474/0.6405, allocations: 2.412 MB / 0.7624 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.6405, allocations: 8.031 kB / 0.7624 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003183/0.6409, allocations: 210.9 kB / 0.7626 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.6421, allocations: 0.9198 MB / 0.7635 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.634e-05/0.6422, allocations: 108.1 kB / 0.7636 GB, free: 11.78 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000172/0.6424, allocations: 154.8 kB / 0.7638 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002942/0.6453, allocations: 1.751 MB / 0.7655 GB, free: 11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.6453, allocations: 3.25 kB / 0.7655 GB, free: 11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.6455, allocations: 57.44 kB / 0.7655 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.091e-05/0.6455, allocations: 39.73 kB / 0.7656 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00329/0.6488, allocations: 1.743 MB / 0.7673 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007532/0.6563, allocations: 6.798 MB / 0.7739 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005192/0.6616, allocations: 2.275 MB / 0.7761 GB, free: 1.547 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.6634, allocations: 1.002 MB / 0.7771 GB, free: 0.5352 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004953/0.6683, allocations: 4.915 MB / 0.7819 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002129/0.6705, allocations: 1.155 MB / 0.7831 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 4.328e-06/0.6705, allocations: 0 / 0.7831 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=186): time 0.007149/0.6777, allocations: 3.43 MB / 0.7864 GB, free: 6.473 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.829e-05/0.6778, allocations: 211.9 kB / 0.7866 GB, free: 6.223 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.6788, allocations: 0.9864 MB / 0.7876 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.6789, allocations: 57.7 kB / 0.7876 GB, free: 5.164 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004156/0.6794, allocations: 0.6233 MB / 0.7882 GB, free: 4.535 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004137/0.6798, allocations: 0.6089 MB / 0.7888 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-05/0.6799, allocations: 36 kB / 0.7889 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.68, allocations: 373.8 kB / 0.7892 GB, free: 3.523 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/0.6816, allocations: 0.7442 MB / 0.7899 GB, free: 2.781 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.6834, allocations: 0.9688 MB / 0.7909 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00346/0.6869, allocations: 1.912 MB / 0.7928 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.6869, allocations: 4 kB / 0.7928 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004745/0.6917, allocations: 2.47 MB / 0.7952 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.002e-05/0.6918, allocations: 174.2 kB / 0.7953 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.6918, allocations: 7.938 kB / 0.7953 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006566/0.6925, allocations: 235.8 kB / 0.7956 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.6939, allocations: 408.2 kB / 0.796 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/0.6996, allocations: 8.48 MB / 0.8042 GB, free: 3.176 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.7011, allocations: 250.3 kB / 0.8045 GB, free: 2.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/0.7013, allocations: 75.97 kB / 0.8046 GB, free: 2.855 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition6,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count,$whenCondition4,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$whenCondition2,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition1,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,$whenCondition3,$PRE.pulse3.T_start,pulse3.T_start,$PRE.pulse3.count,pulse3.count,$whenCondition5,$PRE.pulse5.T_start,pulse5.T_start,$PRE.pulse5.count,pulse5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,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.0005329/0.7018, allocations: 324.5 kB / 0.8049 GB, free: 2.547 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.7021, allocations: 162 kB / 0.805 GB, free: 2.387 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005318/0.7074, allocations: 2.572 MB / 0.8075 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/0.7075, allocations: 7.969 kB / 0.8075 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.7075, allocations: 8 kB / 0.8075 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/0.7078, allocations: 254.6 kB / 0.8078 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.708, allocations: 47.94 kB / 0.8078 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.7091, allocations: 163.6 kB / 0.808 GB, free: 15.32 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000353/0.7095, allocations: 206.1 kB / 0.8082 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006231/0.7157, allocations: 2.971 MB / 0.8111 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006087/0.7218, allocations: 3.722 MB / 0.8147 GB, free: 8.43 MB / 0.5573 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001994/0.7238, allocations: 1.06 MB / 0.8158 GB, free: 7.371 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0007149/0.7246, allocations: 0.6557 MB / 0.8164 GB, free: 6.711 MB / 0.5573 GB Notification: Performance of Backend: time 4.1e-07/0.7246, allocations: 4 kB / 0.8164 GB, free: 6.707 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005866/0.7304, allocations: 3.504 MB / 0.8198 GB, free: 3.109 MB / 0.5573 GB Notification: Performance of SimCode: time 0.005425/0.7359, allocations: 4.717 MB / 0.8244 GB, free: 14.32 MB / 0.573 GB Notification: Performance of Templates: time 0.05113/0.787, allocations: 39.11 MB / 0.8626 GB, free: 7.441 MB / 0.6042 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1)