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.001485/0.001485, allocations: 108.1 kB / 16.41 MB, free: 6.512 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.001717/0.001717, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.371/1.371, 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.6878/0.6878, allocations: 91.18 MB / 382.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 87.86 kB / 0.5175 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2761, allocations: 67.68 MB / 0.5836 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4847/0.7609, allocations: 225.1 MB / 0.8034 GB, free: 380 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02419/0.7851, allocations: 25.02 MB / 0.8278 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002601/0.7877, allocations: 78.31 kB / 0.8279 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004258/0.792, allocations: 1.661 MB / 0.8295 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007253/0.7993, allocations: 2.668 MB / 0.8321 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005304/0.8047, allocations: 1.916 MB / 0.834 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005215/0.8099, allocations: 4.018 MB / 0.8379 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00191/0.8118, allocations: 1.124 MB / 0.839 GB, free: 9.137 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003005/0.8149, allocations: 1.663 MB / 0.8406 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003591/0.8185, allocations: 2.108 MB / 0.8427 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000787/0.8193, allocations: 312 kB / 0.843 GB, free: 5.938 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007849/0.8271, allocations: 3.367 MB / 0.8463 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0008913/0.828, allocations: 0.6513 MB / 0.8469 GB, free: 2.461 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002635/0.8307, allocations: 1.51 MB / 0.8484 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.009273/0.84, allocations: 4.805 MB / 0.8531 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.84, allocations: 0 / 0.8531 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.423e-06/0.84, allocations: 4 kB / 0.8531 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001161/0.8401, allocations: 0 / 0.8531 GB, free: 12.41 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.008113/0.8483, allocations: 3.341 MB / 0.8564 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.8483, allocations: 11.97 kB / 0.8564 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007773/0.8491, allocations: 292.5 kB / 0.8567 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003324/0.8525, allocations: 1.756 MB / 0.8584 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.8526, allocations: 143.8 kB / 0.8585 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004505/0.853, allocations: 207.9 kB / 0.8587 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004594/0.8576, allocations: 2.339 MB / 0.861 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.821e-05/0.8577, allocations: 4 kB / 0.861 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/0.8579, allocations: 76 kB / 0.8611 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.822e-05/0.858, allocations: 74.69 kB / 0.8611 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00414/0.8622, allocations: 2.238 MB / 0.8633 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/0.8751, allocations: 10.23 MB / 0.8733 GB, free: 6.926 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003366/0.8785, allocations: 1.905 MB / 0.8752 GB, free: 5.012 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002134/0.8807, allocations: 1.069 MB / 0.8762 GB, free: 3.945 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008843/0.8896, allocations: 6.602 MB / 0.8827 GB, free: 12.58 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002021/0.8916, allocations: 1.064 MB / 0.8837 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 4.749e-06/0.8916, allocations: 2.531 kB / 0.8837 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01321/0.9049, allocations: 6.512 MB / 0.8901 GB, free: 4.812 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.905, allocations: 103 kB / 0.8902 GB, free: 4.691 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.907, allocations: 1.388 MB / 0.8915 GB, free: 3.301 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001735/0.9072, allocations: 61.7 kB / 0.8916 GB, free: 3.234 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007313/0.9079, allocations: 0.9221 MB / 0.8925 GB, free: 2.301 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005737/0.9085, allocations: 0.65 MB / 0.8931 GB, free: 1.656 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005196/0.909, allocations: 299.6 kB / 0.8934 GB, free: 1.359 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.9091, allocations: 309.1 kB / 0.8937 GB, free: 1.055 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.9105, allocations: 0.6872 MB / 0.8944 GB, free: 376 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.9121, allocations: 0.8475 MB / 0.8952 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007552/0.9196, allocations: 2.567 MB / 0.8977 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.9197, allocations: 3.938 kB / 0.8977 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005093/0.9248, allocations: 2.437 MB / 0.9001 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.879e-05/0.9249, allocations: 68.48 kB / 0.9001 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.9249, allocations: 8 kB / 0.9002 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001504/0.9264, allocations: 469.3 kB / 0.9006 GB, free: 9.898 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.9278, allocations: 317.6 kB / 0.9009 GB, free: 9.605 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008355/0.9362, allocations: 6.455 MB / 0.9072 GB, free: 2.902 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.9378, allocations: 68.05 kB / 0.9073 GB, free: 2.836 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003768/0.9382, allocations: 71.97 kB / 0.9073 GB, free: 2.766 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.001199/0.9394, allocations: 484 kB / 0.9078 GB, free: 2.301 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005476/0.9399, allocations: 193.6 kB / 0.908 GB, free: 2.109 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006344/0.9463, allocations: 3.127 MB / 0.911 GB, free: 14.97 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-05/0.9463, allocations: 11.97 kB / 0.9111 GB, free: 14.96 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.9464, allocations: 0 / 0.9111 GB, free: 14.96 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.9474, allocations: 0.4904 MB / 0.9115 GB, free: 14.45 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004192/0.9478, allocations: 44 kB / 0.9116 GB, free: 14.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.949, allocations: 59.95 kB / 0.9116 GB, free: 14.34 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.9493, allocations: 188 kB / 0.9118 GB, free: 14.16 MB / 0.67 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006397/0.9557, allocations: 2.683 MB / 0.9144 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005946/0.9617, allocations: 3.399 MB / 0.9178 GB, free: 8.086 MB / 0.67 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001621/0.9633, allocations: 0.9478 MB / 0.9187 GB, free: 7.137 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001542/0.9649, allocations: 0.9846 MB / 0.9196 GB, free: 6.16 MB / 0.67 GB Notification: Performance of Backend: time 4.31e-07/0.9649, allocations: 0 / 0.9196 GB, free: 6.16 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.006297/0.9712, allocations: 2.806 MB / 0.9224 GB, free: 3.387 MB / 0.67 GB Notification: Performance of SimCode: time 0.007925/0.9792, allocations: 4.737 MB / 0.927 GB, free: 14.62 MB / 0.6856 GB Notification: Performance of Templates: time 0.07439/1.054, allocations: 49.31 MB / 0.9752 GB, free: 13.78 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)