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 dev (/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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007953/0.0007954, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.0008695/0.0008699, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7936/0.7936, allocations: 89.66 MB / 380.7 MB, free: 11.39 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000346/0.000346, allocations: 13.22 kB / 460.1 MB, free: 24.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1619, allocations: 68.83 MB / 0.5166 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6295/0.7915, allocations: 207.6 MB / 0.7193 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03577/0.8273, allocations: 23.25 MB / 0.742 GB, free: 4.316 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003928/0.8313, allocations: 39.81 kB / 0.7421 GB, free: 4.277 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.005479/0.8368, allocations: 1.415 MB / 0.7434 GB, free: 2.855 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.009375/0.8462, allocations: 2.376 MB / 0.7458 GB, free: 476 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006555/0.8528, allocations: 1.262 MB / 0.747 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006784/0.8596, allocations: 4.053 MB / 0.7509 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00223/0.8619, allocations: 0.8765 MB / 0.7518 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003049/0.8649, allocations: 1.175 MB / 0.753 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003824/0.8688, allocations: 1.791 MB / 0.7547 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0008062/0.8696, allocations: 104 kB / 0.7548 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008089/0.8777, allocations: 2.752 MB / 0.7575 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.8788, allocations: 398.2 kB / 0.7579 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001597/0.8804, allocations: 0.5043 MB / 0.7584 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006789/0.8872, allocations: 3.188 MB / 0.7615 GB, free: 308 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.8872, allocations: 7.938 kB / 0.7615 GB, free: 300 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.964e-06/0.8872, allocations: 0 / 0.7615 GB, free: 300 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001753/0.8874, allocations: 0 / 0.7615 GB, free: 300 kB / 0.5606 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.008206/0.8956, allocations: 2.672 MB / 0.7641 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.8957, allocations: 12.03 kB / 0.7641 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008977/0.8966, allocations: 270.6 kB / 0.7644 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.8976, allocations: 260.9 kB / 0.7646 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003966/0.9016, allocations: 1.2 MB / 0.7658 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/0.9018, allocations: 143.8 kB / 0.7659 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006825/0.9025, allocations: 199.9 kB / 0.7661 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005839/0.9084, allocations: 2.34 MB / 0.7684 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.136e-05/0.9085, allocations: 0 / 0.7684 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/0.9087, allocations: 79.98 kB / 0.7685 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-05/0.9088, allocations: 78.64 kB / 0.7685 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004459/0.9133, allocations: 2.249 MB / 0.7707 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/0.9316, allocations: 10.21 MB / 0.7807 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005047/0.9367, allocations: 1.926 MB / 0.7826 GB, free: 9.547 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/0.9397, allocations: 1.061 MB / 0.7836 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01264/0.9524, allocations: 6.607 MB / 0.7901 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002823/0.9552, allocations: 1.072 MB / 0.7911 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 7.284e-06/0.9553, allocations: 0 / 0.7911 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.02001/0.9753, allocations: 6.415 MB / 0.7974 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.9755, allocations: 107 kB / 0.7975 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/0.9784, allocations: 1.125 MB / 0.7986 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002607/0.9787, allocations: 61.7 kB / 0.7987 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.9798, allocations: 0.7794 MB / 0.7994 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009928/0.9808, allocations: 0.6584 MB / 0.8001 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.9811, allocations: 36 kB / 0.8001 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002673/0.9813, allocations: 373.8 kB / 0.8004 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002118/0.9835, allocations: 0.6911 MB / 0.8011 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/0.9857, allocations: 0.8488 MB / 0.802 GB, free: 4.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.9877, allocations: 0.8676 MB / 0.8028 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.9877, allocations: 0 / 0.8028 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005134/0.9928, allocations: 2.407 MB / 0.8051 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.046e-05/0.9929, allocations: 67.39 kB / 0.8052 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.9929, allocations: 11.88 kB / 0.8052 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.9945, allocations: 473.3 kB / 0.8057 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.9958, allocations: 327.5 kB / 0.806 GB, free: 404 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3924/1.388, allocations: 5.933 MB / 0.8118 GB, free: 223.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/1.39, allocations: 138.1 kB / 0.8119 GB, free: 223.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002453/1.391, allocations: 71.75 kB / 0.812 GB, free: 223 MB / 0.6075 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$whenCondition2,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001185/1.392, allocations: 449 kB / 0.8124 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003637/1.392, allocations: 167.2 kB / 0.8126 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006846/1.399, allocations: 3.147 MB / 0.8156 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.39e-05/1.399, allocations: 25.05 kB / 0.8157 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.811e-05/1.399, allocations: 7.844 kB / 0.8157 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.467e-05/1.399, allocations: 13.2 kB / 0.8157 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009426/1.409, allocations: 5.158 MB / 0.8207 GB, free: 219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/1.409, allocations: 2.625 kB / 0.8207 GB, free: 219 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/1.41, allocations: 321.4 kB / 0.821 GB, free: 219 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/1.411, allocations: 487.9 kB / 0.8215 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/1.412, allocations: 66.08 kB / 0.8216 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007012/1.419, allocations: 5.956 MB / 0.8274 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/1.419, allocations: 7.312 kB / 0.8274 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007158/1.426, allocations: 3.643 MB / 0.8309 GB, free: 212.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/1.427, allocations: 484.2 kB / 0.8314 GB, free: 212.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004069/1.428, allocations: 47.81 kB / 0.8315 GB, free: 212.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/1.429, allocations: 140.1 kB / 0.8316 GB, free: 212.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006534/1.43, allocations: 173 kB / 0.8317 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002527/1.43, allocations: 72.83 kB / 0.8318 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001907/1.432, allocations: 0.8109 MB / 0.8326 GB, free: 212 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.432, allocations: 3.938 kB / 0.8326 GB, free: 212 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005152/1.437, allocations: 0.8899 MB / 0.8335 GB, free: 211.9 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009184/1.446, allocations: 5.075 MB / 0.8384 GB, free: 209.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004748/1.451, allocations: 2.439 MB / 0.8408 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/1.451, allocations: 1.562 kB / 0.8408 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002941/1.454, allocations: 1.534 MB / 0.8423 GB, free: 207.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/1.457, allocations: 0.5868 MB / 0.8429 GB, free: 207.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02219/1.48, allocations: 12.36 MB / 0.855 GB, free: 199.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/1.481, allocations: 1.491 MB / 0.8564 GB, free: 198.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002035/1.483, allocations: 395.9 kB / 0.8568 GB, free: 198 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/1.484, allocations: 0.8468 MB / 0.8576 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of SimCode: time 9.52e-07/1.484, allocations: 0 / 0.8576 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08624/1.57, allocations: 59.43 MB / 0.9157 GB, free: 138.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/1.57, allocations: 202.8 kB / 0.9159 GB, free: 137.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.819/5.389, allocations: 3.938 kB / 0.9159 GB, free: 137.9 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)