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: "" <> 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.0007636/0.0007637, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005121/0.005121, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.185/1.185, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.561/0.561, allocations: 89.63 MB / 381.1 MB, free: 11.32 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003585, allocations: 12.78 kB / 460.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09984, allocations: 68.83 MB / 0.5172 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3789/0.4788, allocations: 221.7 MB / 0.7337 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02433/0.5032, allocations: 24.97 MB / 0.758 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.5046, allocations: 35.88 kB / 0.7581 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.5074, allocations: 1.478 MB / 0.7595 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004372/0.5118, allocations: 2.351 MB / 0.7618 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003346/0.5151, allocations: 1.651 MB / 0.7634 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00368/0.5188, allocations: 4.549 MB / 0.7679 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.52, allocations: 0.9885 MB / 0.7688 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.5213, allocations: 1.202 MB / 0.77 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001966/0.5233, allocations: 1.86 MB / 0.7718 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.5235, allocations: 104 kB / 0.7719 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005186/0.5287, allocations: 3.166 MB / 0.775 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003285/0.529, allocations: 413.9 kB / 0.7754 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009601/0.53, allocations: 1.214 MB / 0.7766 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004109/0.5341, allocations: 4.268 MB / 0.7808 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.5341, allocations: 0 / 0.7808 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5341, allocations: 4 kB / 0.7808 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.037e-05/0.5341, allocations: 0 / 0.7808 GB, free: 12.47 MB / 0.5919 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.004718/0.5389, allocations: 2.652 MB / 0.7834 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.5389, allocations: 8.031 kB / 0.7834 GB, free: 9.734 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002968/0.5392, allocations: 274.8 kB / 0.7836 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003332/0.5395, allocations: 257.8 kB / 0.7839 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/0.5411, allocations: 1.243 MB / 0.7851 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.825e-05/0.5412, allocations: 148.2 kB / 0.7852 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002798/0.5415, allocations: 204.4 kB / 0.7854 GB, free: 7.562 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/0.5449, allocations: 2.356 MB / 0.7877 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.5449, allocations: 0 / 0.7877 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001612/0.5451, allocations: 76 kB / 0.7878 GB, free: 5.105 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.748e-05/0.5452, allocations: 78.69 kB / 0.7879 GB, free: 5.027 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003405/0.5486, allocations: 2.253 MB / 0.7901 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.5587, allocations: 10.23 MB / 0.8001 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.5616, allocations: 1.93 MB / 0.8019 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.5632, allocations: 1.065 MB / 0.803 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1827/0.7459, allocations: 6.604 MB / 0.8094 GB, free: 226.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001679/0.7476, allocations: 1.077 MB / 0.8105 GB, free: 226.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 5.2e-06/0.7477, allocations: 0 / 0.8105 GB, free: 226.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.0103/0.758, allocations: 6.45 MB / 0.8168 GB, free: 223.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.758, allocations: 99.8 kB / 0.8169 GB, free: 223.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.7593, allocations: 1.126 MB / 0.818 GB, free: 222.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.69e-05/0.7594, allocations: 66.33 kB / 0.818 GB, free: 222.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.7598, allocations: 0.7881 MB / 0.8188 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000371/0.7602, allocations: 0.6561 MB / 0.8194 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.7604, allocations: 139.3 kB / 0.8196 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.025e-05/0.7604, allocations: 301.1 kB / 0.8199 GB, free: 221.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.7615, allocations: 0.6973 MB / 0.8205 GB, free: 221 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.7627, allocations: 0.856 MB / 0.8214 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005962/0.7687, allocations: 2.722 MB / 0.824 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.7687, allocations: 0 / 0.824 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003777/0.7725, allocations: 2.434 MB / 0.8264 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.7725, allocations: 60.58 kB / 0.8265 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.7725, allocations: 5.75 kB / 0.8265 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.7737, allocations: 481.5 kB / 0.8269 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.7749, allocations: 328.5 kB / 0.8273 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/0.7812, allocations: 5.953 MB / 0.8331 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.7823, allocations: 136.5 kB / 0.8332 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.7825, allocations: 68.66 kB / 0.8333 GB, free: 213.8 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 ($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.0006732/0.7831, allocations: 459.4 kB / 0.8337 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.7833, allocations: 171.5 kB / 0.8339 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004809/0.7882, allocations: 3.138 MB / 0.8369 GB, free: 212 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.7882, allocations: 20.47 kB / 0.837 GB, free: 212 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.7882, allocations: 12.56 kB / 0.837 GB, free: 212 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.7882, allocations: 8.578 kB / 0.837 GB, free: 212 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006638/0.7949, allocations: 5.184 MB / 0.842 GB, free: 209.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.7949, allocations: 13.58 kB / 0.842 GB, free: 209.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7959, allocations: 312.8 kB / 0.8423 GB, free: 209.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.797, allocations: 491.7 kB / 0.8428 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.7971, allocations: 63.77 kB / 0.8429 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005222/0.8024, allocations: 5.963 MB / 0.8487 GB, free: 204.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8024, allocations: 7.906 kB / 0.8487 GB, free: 204.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004611/0.807, allocations: 3.671 MB / 0.8523 GB, free: 202.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000532/0.8075, allocations: 484.7 kB / 0.8528 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.8077, allocations: 46.16 kB / 0.8528 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.8088, allocations: 135.2 kB / 0.8529 GB, free: 201.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.809, allocations: 182.7 kB / 0.8531 GB, free: 201.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.8092, allocations: 75.8 kB / 0.8532 GB, free: 201.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008131/0.81, allocations: 0.8257 MB / 0.854 GB, free: 201.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.81, allocations: 0 / 0.854 GB, free: 201.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001633/0.8116, allocations: 0.8868 MB / 0.8548 GB, free: 201 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 (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.005786/0.8174, allocations: 5.108 MB / 0.8598 GB, free: 196.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003161/0.8206, allocations: 2.444 MB / 0.8622 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.8206, allocations: 0 / 0.8622 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.8226, allocations: 1.545 MB / 0.8637 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.8252, allocations: 0.5914 MB / 0.8643 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01975/0.845, allocations: 18.12 MB / 0.882 GB, free: 172.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007164/0.8457, allocations: 1.49 MB / 0.8835 GB, free: 170.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001076/0.8468, allocations: 404 kB / 0.8838 GB, free: 170.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008388/0.8476, allocations: 0.8429 MB / 0.8847 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of SimCode: time 3.1e-07/0.8476, allocations: 0 / 0.8847 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.038/5.885, allocations: 60.11 MB / 0.9434 GB, free: 110 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/5.885, allocations: 225.9 kB / 0.9436 GB, free: 109.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.436/9.322, allocations: 0 / 0.9436 GB, free: 109.7 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/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)