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.001414/0.001414, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.00142/0.00142, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7071/0.7071, allocations: 91.18 MB / 382.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 79.88 kB / 0.5175 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3382, allocations: 67.68 MB / 0.5836 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6135/0.9518, allocations: 225.1 MB / 0.8034 GB, free: 400 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02984/0.9816, allocations: 25.01 MB / 0.8278 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.9851, allocations: 77.97 kB / 0.8279 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.005189/0.9903, allocations: 1.662 MB / 0.8295 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008613/0.999, allocations: 2.609 MB / 0.8321 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005985/1.005, allocations: 1.906 MB / 0.8339 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006211/1.011, allocations: 4.015 MB / 0.8378 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002174/1.013, allocations: 1.123 MB / 0.8389 GB, free: 9.188 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003807/1.017, allocations: 1.659 MB / 0.8406 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004292/1.022, allocations: 2.11 MB / 0.8426 GB, free: 6.266 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.00118/1.023, allocations: 312 kB / 0.8429 GB, free: 5.961 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008797/1.032, allocations: 3.367 MB / 0.8462 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001127/1.033, allocations: 0.6483 MB / 0.8468 GB, free: 2.488 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003113/1.036, allocations: 1.508 MB / 0.8483 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01021/1.046, allocations: 4.809 MB / 0.853 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/1.046, allocations: 7.922 kB / 0.853 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.405e-06/1.046, allocations: 0 / 0.853 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001325/1.046, allocations: 0 / 0.853 GB, free: 12.43 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.008316/1.055, allocations: 3.34 MB / 0.8563 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/1.055, allocations: 8.031 kB / 0.8563 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007969/1.056, allocations: 288.5 kB / 0.8566 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003093/1.059, allocations: 1.755 MB / 0.8583 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/1.059, allocations: 151.8 kB / 0.8584 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004427/1.059, allocations: 199.9 kB / 0.8586 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004535/1.064, allocations: 2.341 MB / 0.8609 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/1.064, allocations: 0 / 0.8609 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001704/1.064, allocations: 79.12 kB / 0.861 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-05/1.064, allocations: 73.31 kB / 0.861 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003802/1.068, allocations: 2.236 MB / 0.8632 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01316/1.081, allocations: 10.23 MB / 0.8732 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/1.084, allocations: 1.905 MB / 0.8751 GB, free: 5.043 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001956/1.086, allocations: 1.066 MB / 0.8761 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007578/1.094, allocations: 6.603 MB / 0.8826 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00187/1.096, allocations: 1.069 MB / 0.8836 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 5.37e-06/1.096, allocations: 0 / 0.8836 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01291/1.109, allocations: 6.507 MB / 0.89 GB, free: 4.848 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/1.109, allocations: 110.9 kB / 0.8901 GB, free: 4.719 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/1.111, allocations: 1.392 MB / 0.8914 GB, free: 3.324 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001859/1.111, allocations: 57.7 kB / 0.8915 GB, free: 3.262 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007315/1.112, allocations: 0.9221 MB / 0.8924 GB, free: 2.328 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005481/1.112, allocations: 0.6609 MB / 0.893 GB, free: 1.676 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004951/1.113, allocations: 295.6 kB / 0.8933 GB, free: 1.383 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 8.472e-05/1.113, allocations: 305.1 kB / 0.8936 GB, free: 1.082 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/1.114, allocations: 0.6898 MB / 0.8943 GB, free: 404 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/1.116, allocations: 0.8488 MB / 0.8951 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007394/1.123, allocations: 2.563 MB / 0.8976 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/1.123, allocations: 0 / 0.8976 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005617/1.129, allocations: 2.449 MB / 0.9 GB, free: 10.47 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.000108/1.129, allocations: 59.41 kB / 0.9001 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/1.129, allocations: 0 / 0.9001 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001653/1.131, allocations: 469.3 kB / 0.9005 GB, free: 9.934 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/1.132, allocations: 325.6 kB / 0.9008 GB, free: 9.633 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008906/1.141, allocations: 6.449 MB / 0.9071 GB, free: 2.934 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/1.143, allocations: 60 kB / 0.9072 GB, free: 2.875 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003585/1.143, allocations: 71.97 kB / 0.9072 GB, free: 2.805 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.001298/1.144, allocations: 495.2 kB / 0.9077 GB, free: 2.332 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006499/1.145, allocations: 193.6 kB / 0.9079 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006413/1.151, allocations: 3.126 MB / 0.911 GB, free: 15.01 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/1.152, allocations: 20.11 kB / 0.911 GB, free: 14.99 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.941e-05/1.152, allocations: 15.88 kB / 0.911 GB, free: 14.97 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-05/1.152, allocations: 14.48 kB / 0.911 GB, free: 14.96 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/1.162, allocations: 5.231 MB / 0.9161 GB, free: 9.727 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.162, allocations: 8.031 kB / 0.9161 GB, free: 9.719 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/1.163, allocations: 311.1 kB / 0.9164 GB, free: 9.43 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/1.164, allocations: 489 kB / 0.9169 GB, free: 8.945 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002754/1.165, allocations: 67.95 kB / 0.9169 GB, free: 8.879 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008767/1.173, allocations: 6.471 MB / 0.9233 GB, free: 2.152 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.299e-06/1.173, allocations: 4.031 kB / 0.9233 GB, free: 2.148 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007561/1.181, allocations: 3.67 MB / 0.9269 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/1.182, allocations: 494.3 kB / 0.9273 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000498/1.183, allocations: 55.84 kB / 0.9274 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/1.184, allocations: 63.95 kB / 0.9274 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003932/1.184, allocations: 172.9 kB / 0.9276 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/1.185, allocations: 71.95 kB / 0.9277 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00168/1.186, allocations: 0.9967 MB / 0.9286 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.4e-07/1.186, allocations: 0 / 0.9286 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002845/1.189, allocations: 0.8902 MB / 0.9295 GB, free: 11.73 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,flowResistance3.inlet.m_flow,flowResistance6.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,pulse.T_start,pulse.count,$whenCondition2,pulse1.T_start,pulse1.count) * Number of discrete states: 2 (pulse1.count,pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 Backend phase and start with SimCode phase: time 0.001732/1.191, allocations: 0.937 MB / 0.9304 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004642/1.196, allocations: 2.412 MB / 0.9328 GB, free: 8.406 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.196, allocations: 4 kB / 0.9328 GB, free: 8.402 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002898/1.199, allocations: 1.516 MB / 0.9343 GB, free: 6.898 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003544/1.202, allocations: 0.6721 MB / 0.9349 GB, free: 6.246 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00808/1.21, allocations: 4.33 MB / 0.9392 GB, free: 1.871 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/1.212, allocations: 1.573 MB / 0.9407 GB, free: 268 kB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008196/1.212, allocations: 207.3 kB / 0.9409 GB, free: 60 kB / 0.6856 GB Notification: Performance of SimCode: time 5.41e-07/1.212, allocations: 0 / 0.9409 GB, free: 60 kB / 0.6856 GB Notification: Performance of Templates: time 0.0728/1.285, allocations: 60.93 MB / 1 GB, free: 3.258 MB / 0.7481 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)