Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_dev_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.02107/0.02107, allocations: 104.2 kB / 15.73 MB, free: 5.953 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.004535/0.004535, allocations: 190.2 kB / 16.67 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.031/2.031, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.252/1.252, allocations: 93.7 MB / 384.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003568/0.003568, allocations: 76.16 kB / 0.5199 GB, free: 1.098 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7245/0.7281, allocations: 68.27 MB / 0.5866 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 1.244/1.972, allocations: 225.1 MB / 0.8064 GB, free: 264 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.05044/2.023, allocations: 25.07 MB / 0.8309 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007568/2.031, allocations: 83.44 kB / 0.831 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.009674/2.04, allocations: 1.667 MB / 0.8326 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01836/2.059, allocations: 2.638 MB / 0.8352 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.01228/2.071, allocations: 1.895 MB / 0.837 GB, free: 9.562 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01377/2.085, allocations: 4.097 MB / 0.841 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003273/2.089, allocations: 1.127 MB / 0.8421 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007325/2.096, allocations: 1.651 MB / 0.8437 GB, free: 5.723 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007568/2.104, allocations: 2.111 MB / 0.8458 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001922/2.106, allocations: 316 kB / 0.8461 GB, free: 3.461 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01737/2.123, allocations: 3.367 MB / 0.8494 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002772/2.126, allocations: 0.6492 MB / 0.85 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.006547/2.132, allocations: 1.521 MB / 0.8515 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02298/2.156, allocations: 4.848 MB / 0.8562 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.788e-05/2.156, allocations: 4 kB / 0.8562 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.088e-06/2.156, allocations: 0 / 0.8562 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0002573/2.156, allocations: 4 kB / 0.8562 GB, free: 9.879 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.01571/2.172, allocations: 3.457 MB / 0.8596 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 9.657e-05/2.172, allocations: 12.03 kB / 0.8596 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007605/2.173, allocations: 274.6 kB / 0.8599 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/2.174, allocations: 314 kB / 0.8602 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005856/2.18, allocations: 1.79 MB / 0.8619 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/2.18, allocations: 154.8 kB / 0.8621 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005434/2.181, allocations: 207.9 kB / 0.8623 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00691/2.188, allocations: 2.333 MB / 0.8646 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.497e-05/2.188, allocations: 3.984 kB / 0.8646 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002812/2.188, allocations: 78.97 kB / 0.8646 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/2.188, allocations: 78.69 kB / 0.8647 GB, free: 1.188 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005938/2.194, allocations: 2.239 MB / 0.8669 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02477/2.219, allocations: 10.26 MB / 0.8769 GB, free: 3.926 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005606/2.225, allocations: 1.905 MB / 0.8788 GB, free: 2.012 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002864/2.228, allocations: 1.06 MB / 0.8798 GB, free: 0.9531 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01474/2.242, allocations: 6.608 MB / 0.8863 GB, free: 9.582 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00323/2.246, allocations: 1.06 MB / 0.8873 GB, free: 8.504 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 1.753e-05/2.246, allocations: 0 / 0.8873 GB, free: 8.504 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.02151/2.267, allocations: 6.595 MB / 0.8937 GB, free: 1.742 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/2.268, allocations: 103 kB / 0.8938 GB, free: 1.625 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004234/2.272, allocations: 1.421 MB / 0.8952 GB, free: 208 kB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0005784/2.272, allocations: 61.7 kB / 0.8953 GB, free: 140 kB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001633/2.274, allocations: 0.9565 MB / 0.8962 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001365/2.275, allocations: 0.6812 MB / 0.8969 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009942/2.277, allocations: 299.5 kB / 0.8972 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002024/2.277, allocations: 305.1 kB / 0.8975 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002259/2.279, allocations: 0.6872 MB / 0.8981 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002464/2.281, allocations: 0.8519 MB / 0.899 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/2.292, allocations: 2.569 MB / 0.9015 GB, free: 9.727 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.636e-05/2.292, allocations: 0 / 0.9015 GB, free: 9.727 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.008187/2.3, allocations: 2.459 MB / 0.9039 GB, free: 7.273 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/2.3, allocations: 63.39 kB / 0.9039 GB, free: 7.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/2.3, allocations: 0 / 0.9039 GB, free: 7.199 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/2.302, allocations: 477.2 kB / 0.9044 GB, free: 6.727 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/2.304, allocations: 320.9 kB / 0.9047 GB, free: 6.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/2.317, allocations: 6.46 MB / 0.911 GB, free: 15.71 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002915/2.32, allocations: 55.95 kB / 0.9111 GB, free: 15.66 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008049/2.321, allocations: 75.97 kB / 0.9111 GB, free: 15.59 MB / 0.67 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.002503/2.323, allocations: 480 kB / 0.9116 GB, free: 15.12 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/2.325, allocations: 214.6 kB / 0.9118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/2.335, allocations: 3.143 MB / 0.9149 GB, free: 11.77 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.05e-05/2.335, allocations: 20 kB / 0.9149 GB, free: 11.75 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.284e-05/2.335, allocations: 11.94 kB / 0.9149 GB, free: 11.74 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.473e-05/2.335, allocations: 11.95 kB / 0.9149 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/2.351, allocations: 5.234 MB / 0.92 GB, free: 6.488 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.602e-05/2.351, allocations: 4 kB / 0.92 GB, free: 6.484 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/2.353, allocations: 308.3 kB / 0.9203 GB, free: 6.199 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/2.355, allocations: 0.4899 MB / 0.9208 GB, free: 5.703 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002697/2.355, allocations: 63.95 kB / 0.9209 GB, free: 5.641 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/2.368, allocations: 6.463 MB / 0.9272 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/2.368, allocations: 6.562 kB / 0.9272 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/2.378, allocations: 3.687 MB / 0.9308 GB, free: 11.22 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002128/2.381, allocations: 0.4994 MB / 0.9313 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000442/2.381, allocations: 51.92 kB / 0.9313 GB, free: 10.65 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/2.382, allocations: 59.97 kB / 0.9314 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006101/2.383, allocations: 176.8 kB / 0.9315 GB, free: 10.42 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000224/2.383, allocations: 71.95 kB / 0.9316 GB, free: 10.35 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002235/2.385, allocations: 1.017 MB / 0.9326 GB, free: 9.344 MB / 0.6856 GB Notification: Performance of sort global known variables: time 4.71e-07/2.385, allocations: 3.938 kB / 0.9326 GB, free: 9.34 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.005077/2.39, allocations: 0.9049 MB / 0.9335 GB, free: 8.434 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.01264/2.403, allocations: 5.084 MB / 0.9385 GB, free: 3.387 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00706/2.41, allocations: 2.428 MB / 0.9408 GB, free: 0.9258 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/2.41, allocations: 4 kB / 0.9408 GB, free: 0.9219 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003934/2.414, allocations: 1.54 MB / 0.9423 GB, free: 15.39 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004807/2.419, allocations: 0.6668 MB / 0.943 GB, free: 14.74 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04686/2.466, allocations: 16.78 MB / 0.9594 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003352/2.47, allocations: 1.577 MB / 0.9609 GB, free: 12.16 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.003433/2.473, allocations: 444 kB / 0.9613 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00262/2.476, allocations: 0.9874 MB / 0.9623 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of SimCode: time 2.905e-06/2.476, allocations: 0 / 0.9623 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2185/2.694, allocations: 67 MB / 1.028 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.82/25.51, allocations: 7.859 kB / 1.028 GB, free: 8.109 MB / 0.7794 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)