Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 113.1 kB / 16.42 MB, free: 5.949 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.001839/0.001839, allocations: 184.1 kB / 17.35 MB, free: 5.594 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.498/1.498, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6769/0.6769, allocations: 91.19 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 80.16 kB / 0.5175 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2853, allocations: 67.69 MB / 0.5836 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5415/0.8268, allocations: 225.1 MB / 0.8034 GB, free: 404 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0236/0.8504, allocations: 25.01 MB / 0.8278 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002417/0.8529, allocations: 77.62 kB / 0.8279 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004015/0.8569, allocations: 1.67 MB / 0.8295 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006938/0.8639, allocations: 2.661 MB / 0.8321 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004901/0.8688, allocations: 1.916 MB / 0.834 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004797/0.8736, allocations: 4.019 MB / 0.8379 GB, free: 9.734 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.8751, allocations: 1.124 MB / 0.839 GB, free: 9.148 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002625/0.8777, allocations: 1.662 MB / 0.8407 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.8806, allocations: 2.11 MB / 0.8427 GB, free: 6.262 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004741/0.8811, allocations: 312 kB / 0.843 GB, free: 5.957 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007448/0.8886, allocations: 3.368 MB / 0.8463 GB, free: 3.105 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006339/0.8892, allocations: 0.6523 MB / 0.8469 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.8911, allocations: 1.509 MB / 0.8484 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008183/0.8993, allocations: 4.817 MB / 0.8531 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.8993, allocations: 0 / 0.8531 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8993, allocations: 2.531 kB / 0.8531 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.319e-05/0.8994, allocations: 0 / 0.8531 GB, free: 12.42 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.006687/0.9061, allocations: 3.438 MB / 0.8565 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.9061, allocations: 10.66 kB / 0.8565 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005216/0.9067, allocations: 310.1 kB / 0.8568 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002643/0.9093, allocations: 1.77 MB / 0.8585 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.956e-05/0.9094, allocations: 149.7 kB / 0.8587 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/0.9098, allocations: 203.9 kB / 0.8588 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003857/0.9136, allocations: 2.338 MB / 0.8611 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/0.9137, allocations: 4 kB / 0.8611 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001707/0.9139, allocations: 76 kB / 0.8612 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.312e-05/0.9139, allocations: 74.69 kB / 0.8613 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003815/0.9178, allocations: 2.23 MB / 0.8635 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/0.9297, allocations: 10.26 MB / 0.8735 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00319/0.9329, allocations: 1.913 MB / 0.8753 GB, free: 4.867 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.9348, allocations: 1.064 MB / 0.8764 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00719/0.942, allocations: 6.611 MB / 0.8828 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001825/0.9438, allocations: 1.066 MB / 0.8839 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 3.697e-06/0.9438, allocations: 0 / 0.8839 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01231/0.9562, allocations: 6.567 MB / 0.8903 GB, free: 4.617 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.9562, allocations: 98.98 kB / 0.8904 GB, free: 4.5 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.9581, allocations: 1.396 MB / 0.8918 GB, free: 3.102 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.9582, allocations: 61.7 kB / 0.8918 GB, free: 3.035 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007539/0.959, allocations: 0.9392 MB / 0.8927 GB, free: 2.086 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005283/0.9595, allocations: 0.6811 MB / 0.8934 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005022/0.96, allocations: 299.5 kB / 0.8937 GB, free: 1.117 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.9601, allocations: 313.1 kB / 0.894 GB, free: 0.8086 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.9615, allocations: 0.6794 MB / 0.8946 GB, free: 132 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.963, allocations: 0.8513 MB / 0.8955 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007/0.97, allocations: 2.567 MB / 0.898 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.97, allocations: 0 / 0.898 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004786/0.9748, allocations: 2.454 MB / 0.9004 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.18e-05/0.9749, allocations: 67.39 kB / 0.9004 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.9749, allocations: 4 kB / 0.9004 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.9763, allocations: 461.4 kB / 0.9009 GB, free: 9.656 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.9777, allocations: 325.6 kB / 0.9012 GB, free: 9.355 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007984/0.9857, allocations: 6.465 MB / 0.9075 GB, free: 2.641 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.987, allocations: 60 kB / 0.9076 GB, free: 2.582 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.9872, allocations: 75.95 kB / 0.9076 GB, free: 2.508 MB / 0.6544 GB Warning: Assuming fixed start value for the following 1 variables: flowResistance2.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true ) "Mass flow rate" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1,pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009669/0.9882, allocations: 484.1 kB / 0.9081 GB, free: 2.043 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000439/0.9886, allocations: 206.6 kB / 0.9083 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00617/0.9948, allocations: 3.123 MB / 0.9113 GB, free: 14.7 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-05/0.9949, allocations: 7.969 kB / 0.9114 GB, free: 14.7 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.9949, allocations: 0 / 0.9114 GB, free: 14.7 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.996, allocations: 0.4954 MB / 0.9118 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004597/0.9965, allocations: 51.94 kB / 0.9119 GB, free: 14.13 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.9977, allocations: 63.91 kB / 0.9119 GB, free: 14.07 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/0.998, allocations: 188.1 kB / 0.9121 GB, free: 13.89 MB / 0.67 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006227/1.004, allocations: 2.68 MB / 0.9147 GB, free: 11.23 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005824/1.01, allocations: 3.412 MB / 0.9181 GB, free: 7.801 MB / 0.67 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001577/1.012, allocations: 0.9478 MB / 0.919 GB, free: 6.852 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001507/1.013, allocations: 0.9885 MB / 0.92 GB, free: 5.871 MB / 0.67 GB Notification: Performance of Backend: time 6.11e-07/1.013, allocations: 0 / 0.92 GB, free: 5.871 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.006202/1.019, allocations: 2.819 MB / 0.9227 GB, free: 3.086 MB / 0.67 GB Notification: Performance of SimCode: time 0.00772/1.027, allocations: 4.827 MB / 0.9274 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of Templates: time 0.07675/1.104, allocations: 49.3 MB / 0.9756 GB, free: 13.39 MB / 0.7325 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)