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.001161/0.001161, allocations: 100 kB / 15.05 MB, free: 1.105 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.001296/0.001296, allocations: 177.3 kB / 15.95 MB, free: 216 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.584/1.584, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7987/0.7987, allocations: 89.64 MB / 380.6 MB, free: 11.44 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.000395, allocations: 13.28 kB / 460 MB, free: 24.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1826, allocations: 68.84 MB / 0.5165 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6044/0.7871, allocations: 191.6 MB / 0.7036 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03004/0.8172, allocations: 20.9 MB / 0.724 GB, free: 5.184 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003343/0.8206, allocations: 39.88 kB / 0.7241 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.005467/0.8261, allocations: 1.454 MB / 0.7255 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.009364/0.8355, allocations: 2.45 MB / 0.7279 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005206/0.8407, allocations: 1.3 MB / 0.7292 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005968/0.8467, allocations: 2.448 MB / 0.7315 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/0.8485, allocations: 0.8678 MB / 0.7324 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.8511, allocations: 1.086 MB / 0.7335 GB, free: 11.49 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003485/0.8546, allocations: 1.53 MB / 0.7349 GB, free: 9.953 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004874/0.8551, allocations: 111.9 kB / 0.7351 GB, free: 9.844 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008852/0.864, allocations: 2.934 MB / 0.7379 GB, free: 6.906 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0009871/0.865, allocations: 398.4 kB / 0.7383 GB, free: 6.516 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.8663, allocations: 0.5004 MB / 0.7388 GB, free: 6.008 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00675/0.873, allocations: 3.164 MB / 0.7419 GB, free: 2.836 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.8731, allocations: 0 / 0.7419 GB, free: 2.836 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.505e-06/0.8731, allocations: 0 / 0.7419 GB, free: 2.836 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.792e-05/0.8732, allocations: 0 / 0.7419 GB, free: 2.836 MB / 0.545 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.007005/0.8802, allocations: 2.676 MB / 0.7445 GB, free: 92 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.8803, allocations: 12.03 kB / 0.7445 GB, free: 80 kB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000701/0.881, allocations: 270.6 kB / 0.7448 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000508/0.8815, allocations: 260.8 kB / 0.745 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.8837, allocations: 1.196 MB / 0.7462 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.8838, allocations: 147.8 kB / 0.7463 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003304/0.8842, allocations: 203.9 kB / 0.7465 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004203/0.8884, allocations: 2.32 MB / 0.7488 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.8884, allocations: 3.953 kB / 0.7488 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001651/0.8886, allocations: 80 kB / 0.7489 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-05/0.8887, allocations: 74.69 kB / 0.7489 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004203/0.8929, allocations: 2.245 MB / 0.7511 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01635/0.9093, allocations: 10.36 MB / 0.7612 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/0.9126, allocations: 1.926 MB / 0.7631 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008792/0.9215, allocations: 6.743 MB / 0.7697 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002014/0.9235, allocations: 1.06 MB / 0.7707 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=193): time 4.659e-06/0.9236, allocations: 0 / 0.7707 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of matching and sorting (n=198): time 0.01336/0.9369, allocations: 6.398 MB / 0.777 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/0.9371, allocations: 107 kB / 0.7771 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.9387, allocations: 1.125 MB / 0.7782 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.9388, allocations: 57.7 kB / 0.7782 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000814/0.9397, allocations: 0.7911 MB / 0.779 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007167/0.9404, allocations: 0.6584 MB / 0.7797 GB, free: 9.922 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.9405, allocations: 28 kB / 0.7797 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002674/0.9408, allocations: 373.9 kB / 0.78 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.9421, allocations: 0.6911 MB / 0.7807 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.9435, allocations: 0.8449 MB / 0.7815 GB, free: 7.957 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.9449, allocations: 0.8559 MB / 0.7824 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.9449, allocations: 0 / 0.7824 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004701/0.9496, allocations: 2.414 MB / 0.7847 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/0.9497, allocations: 61.59 kB / 0.7848 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.9498, allocations: 3.938 kB / 0.7848 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/0.9513, allocations: 469.3 kB / 0.7853 GB, free: 4.109 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.9526, allocations: 335.5 kB / 0.7856 GB, free: 3.781 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007632/0.9603, allocations: 6.093 MB / 0.7915 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/0.9623, allocations: 131.8 kB / 0.7916 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003053/0.9627, allocations: 71.95 kB / 0.7917 GB, free: 13.22 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,87.5%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001233/0.9639, allocations: 453.5 kB / 0.7921 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004287/0.9643, allocations: 169.9 kB / 0.7923 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005971/0.9703, allocations: 3.147 MB / 0.7954 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.9704, allocations: 20 kB / 0.7954 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.9704, allocations: 12 kB / 0.7954 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/0.9704, allocations: 7.969 kB / 0.7954 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00936/0.9798, allocations: 5.216 MB / 0.8005 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.9798, allocations: 4 kB / 0.8005 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.9811, allocations: 319.5 kB / 0.8008 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001423/0.9825, allocations: 485.7 kB / 0.8013 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.9827, allocations: 67.95 kB / 0.8014 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3661/1.349, allocations: 6.089 MB / 0.8073 GB, free: 221.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/1.349, allocations: 6.734 kB / 0.8073 GB, free: 221.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007738/1.357, allocations: 3.683 MB / 0.8109 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/1.358, allocations: 0.516 MB / 0.8114 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003561/1.358, allocations: 50.84 kB / 0.8115 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/1.36, allocations: 134.3 kB / 0.8116 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/1.36, allocations: 178.1 kB / 0.8118 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001797/1.36, allocations: 75.72 kB / 0.8118 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001238/1.362, allocations: 0.8066 MB / 0.8126 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/1.362, allocations: 0 / 0.8126 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002949/1.365, allocations: 0.8874 MB / 0.8135 GB, free: 220 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch.tanValve1.inlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve1.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,87.5%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007269/1.372, allocations: 5.502 MB / 0.8189 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004339/1.376, allocations: 2.43 MB / 0.8212 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.376, allocations: 0 / 0.8212 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002912/1.379, allocations: 1.528 MB / 0.8227 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002956/1.382, allocations: 0.552 MB / 0.8233 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/1.409, allocations: 13.5 MB / 0.8364 GB, free: 207.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/1.41, allocations: 1.523 MB / 0.8379 GB, free: 206.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001776/1.411, allocations: 403.9 kB / 0.8383 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009619/1.412, allocations: 0.8334 MB / 0.8391 GB, free: 205.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.011e-06/1.412, allocations: 0 / 0.8391 GB, free: 205.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08233/1.495, allocations: 59.21 MB / 0.8969 GB, free: 154.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/1.495, allocations: 201.2 kB / 0.8971 GB, free: 154.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.537/5.032, allocations: 0 / 0.8971 GB, free: 154.2 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)