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.001696/0.001696, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001841/0.001841, allocations: 193.1 kB / 16.25 MB, free: 6.633 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.634/0.634, allocations: 91.2 MB / 381.3 MB, free: 9.547 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 81.19 kB / 459.9 MB, free: 23.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.09567, allocations: 67.7 MB / 0.5153 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3674/0.4631, allocations: 224.8 MB / 0.7348 GB, free: 15.03 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02393/0.4871, allocations: 25.22 MB / 0.7594 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.4891, allocations: 103.3 kB / 0.7595 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003119/0.4922, allocations: 1.512 MB / 0.761 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004776/0.497, allocations: 2.401 MB / 0.7633 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.5006, allocations: 1.758 MB / 0.7651 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003192/0.5038, allocations: 4.011 MB / 0.769 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.505, allocations: 1.131 MB / 0.7701 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.5065, allocations: 1.63 MB / 0.7717 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001997/0.5085, allocations: 2.137 MB / 0.7738 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003046/0.5088, allocations: 312 kB / 0.7741 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004982/0.5138, allocations: 3.392 MB / 0.7774 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004257/0.5143, allocations: 0.6501 MB / 0.778 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.5153, allocations: 1.505 MB / 0.7795 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004337/0.5197, allocations: 4.729 MB / 0.7841 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.5197, allocations: 0 / 0.7841 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5197, allocations: 3.938 kB / 0.7841 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.067e-05/0.5197, allocations: 4 kB / 0.7841 GB, free: 12.34 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.005345/0.5251, allocations: 3.332 MB / 0.7874 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.5251, allocations: 8.031 kB / 0.7874 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00028/0.5254, allocations: 278.6 kB / 0.7876 GB, free: 8.637 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.5258, allocations: 288.5 kB / 0.7879 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002015/0.5278, allocations: 1.648 MB / 0.7895 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.652e-05/0.5279, allocations: 147.8 kB / 0.7897 GB, free: 6.508 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.5282, allocations: 207.8 kB / 0.7899 GB, free: 6.305 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003306/0.5315, allocations: 2.34 MB / 0.7921 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.433e-05/0.5316, allocations: 4 kB / 0.7921 GB, free: 3.934 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/0.5317, allocations: 76 kB / 0.7922 GB, free: 3.859 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.475e-05/0.5318, allocations: 70.69 kB / 0.7923 GB, free: 3.789 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003252/0.535, allocations: 2.233 MB / 0.7945 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009663/0.5447, allocations: 10.26 MB / 0.8045 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.5474, allocations: 1.907 MB / 0.8064 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.549, allocations: 1.062 MB / 0.8074 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005937/0.5549, allocations: 6.603 MB / 0.8138 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001595/0.5565, allocations: 1.068 MB / 0.8149 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 2.946e-06/0.5565, allocations: 0 / 0.8149 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.01041/0.567, allocations: 6.503 MB / 0.8212 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.567, allocations: 103 kB / 0.8213 GB, free: 4.008 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.5685, allocations: 1.407 MB / 0.8227 GB, free: 2.598 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.5687, allocations: 61.7 kB / 0.8228 GB, free: 2.531 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005966/0.5693, allocations: 0.9183 MB / 0.8237 GB, free: 1.602 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.5697, allocations: 0.6545 MB / 0.8243 GB, free: 0.9375 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000413/0.5701, allocations: 303.5 kB / 0.8246 GB, free: 0.6367 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 7.49e-05/0.5702, allocations: 301.1 kB / 0.8249 GB, free: 348 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1725/0.7427, allocations: 0.6897 MB / 0.8255 GB, free: 240.7 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.7444, allocations: 0.8457 MB / 0.8264 GB, free: 240.6 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006511/0.7509, allocations: 2.573 MB / 0.8289 GB, free: 240.1 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.7509, allocations: 0 / 0.8289 GB, free: 240.1 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004287/0.7552, allocations: 2.449 MB / 0.8313 GB, free: 239.1 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.7553, allocations: 62.25 kB / 0.8313 GB, free: 239 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.7553, allocations: 2.25 kB / 0.8313 GB, free: 239 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.7566, allocations: 477.3 kB / 0.8318 GB, free: 238.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.7577, allocations: 319.2 kB / 0.8321 GB, free: 238.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/0.7634, allocations: 6.456 MB / 0.8384 GB, free: 234.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.7647, allocations: 135.6 kB / 0.8385 GB, free: 234.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.7648, allocations: 70.62 kB / 0.8386 GB, free: 234.1 MB / 0.6231 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.000684/0.7655, allocations: 478.3 kB / 0.8391 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.7658, allocations: 198.8 kB / 0.8392 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004677/0.7705, allocations: 3.138 MB / 0.8423 GB, free: 232.4 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.7705, allocations: 24.94 kB / 0.8423 GB, free: 232.4 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.7705, allocations: 7.031 kB / 0.8423 GB, free: 232.4 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-05/0.7705, allocations: 14.02 kB / 0.8424 GB, free: 232.4 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006908/0.7775, allocations: 5.242 MB / 0.8475 GB, free: 230 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.7775, allocations: 3.641 kB / 0.8475 GB, free: 230 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.7786, allocations: 314.3 kB / 0.8478 GB, free: 230 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/0.7799, allocations: 491 kB / 0.8482 GB, free: 229.9 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.78, allocations: 66.38 kB / 0.8483 GB, free: 229.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006036/0.7861, allocations: 6.472 MB / 0.8546 GB, free: 225.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7861, allocations: 7 kB / 0.8546 GB, free: 225.1 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004949/0.791, allocations: 3.674 MB / 0.8582 GB, free: 223.3 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005775/0.7916, allocations: 492.3 kB / 0.8587 GB, free: 223 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.7919, allocations: 50.52 kB / 0.8587 GB, free: 222.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.7929, allocations: 132.2 kB / 0.8589 GB, free: 222.9 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.7932, allocations: 171.8 kB / 0.859 GB, free: 222.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.7933, allocations: 73.25 kB / 0.8591 GB, free: 222.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001031/0.7944, allocations: 0.998 MB / 0.8601 GB, free: 222.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7944, allocations: 0 / 0.8601 GB, free: 222.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001765/0.7962, allocations: 0.8947 MB / 0.8609 GB, free: 222.3 MB / 0.6231 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.00576/0.8019, allocations: 5.071 MB / 0.8659 GB, free: 219.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004445/0.8064, allocations: 2.648 MB / 0.8685 GB, free: 218.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.8064, allocations: 0 / 0.8685 GB, free: 218.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001971/0.8084, allocations: 1.547 MB / 0.87 GB, free: 217.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/0.8106, allocations: 0.6486 MB / 0.8706 GB, free: 217.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/0.8308, allocations: 19.61 MB / 0.8898 GB, free: 197.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006743/0.8315, allocations: 1.581 MB / 0.8913 GB, free: 196.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00113/0.8326, allocations: 426.1 kB / 0.8917 GB, free: 195.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008858/0.8335, allocations: 0.9795 MB / 0.8927 GB, free: 194.7 MB / 0.6231 GB Notification: Performance of SimCode: time 6.41e-07/0.8335, allocations: 4 kB / 0.8927 GB, free: 194.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9371/1.771, allocations: 65.64 MB / 0.9568 GB, free: 129.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/1.771, allocations: 218.3 kB / 0.957 GB, free: 129.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.228/4.999, allocations: 0 / 0.957 GB, free: 129.2 MB / 0.6231 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)