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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.007577/0.007577, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.002091/0.002091, allocations: 197.1 kB / 16.68 MB, free: 5.965 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.81/1.81, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.8617/0.8617, allocations: 89.47 MB / 380 MB, free: 10.91 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002631/0.002631, allocations: 75.88 kB / 0.5139 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.177, allocations: 67.3 MB / 0.5796 GB, free: 8.348 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7106/0.8876, allocations: 224.7 MB / 0.7991 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.04443/0.9321, allocations: 24.89 MB / 0.8234 GB, free: 2.465 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003031/0.9352, allocations: 31.88 kB / 0.8234 GB, free: 2.434 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.006833/0.942, allocations: 1.643 MB / 0.825 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.9531, allocations: 2.52 MB / 0.8275 GB, free: 14.25 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.008653/0.9618, allocations: 1.924 MB / 0.8294 GB, free: 12.32 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.007974/0.9698, allocations: 3.816 MB / 0.8331 GB, free: 8.484 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002766/0.9726, allocations: 1.101 MB / 0.8342 GB, free: 7.355 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003232/0.9758, allocations: 1.522 MB / 0.8357 GB, free: 5.828 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004993/0.9808, allocations: 2.067 MB / 0.8377 GB, free: 3.754 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.982, allocations: 316 kB / 0.838 GB, free: 3.445 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01127/0.9933, allocations: 3.365 MB / 0.8413 GB, free: 72 kB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.525/1.518, allocations: 0.6307 MB / 0.8419 GB, free: 10.55 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003389/1.522, allocations: 1.431 MB / 0.8433 GB, free: 10.55 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01522/1.537, allocations: 4.555 MB / 0.8477 GB, free: 10.27 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 1.233e-05/1.537, allocations: 0.6562 kB / 0.8477 GB, free: 10.27 MB / 0.67 GB Notification: Performance of FrontEnd: time 3.778e-06/1.537, allocations: 0.7812 kB / 0.8477 GB, free: 10.27 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0002202/1.537, allocations: 0.7812 kB / 0.8477 GB, free: 10.27 MB / 0.67 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.01132/1.549, allocations: 3.154 MB / 0.8508 GB, free: 8.844 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/1.549, allocations: 10.09 kB / 0.8508 GB, free: 8.844 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004184/1.549, allocations: 272.5 kB / 0.8511 GB, free: 8.797 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006649/1.55, allocations: 273.1 kB / 0.8513 GB, free: 8.656 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002729/1.553, allocations: 1.268 MB / 0.8526 GB, free: 8.219 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/1.553, allocations: 143.3 kB / 0.8527 GB, free: 8.215 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005027/1.553, allocations: 205.5 kB / 0.8529 GB, free: 8.211 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006439/1.56, allocations: 2.339 MB / 0.8552 GB, free: 8.078 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.434e-05/1.56, allocations: 0.5 kB / 0.8552 GB, free: 8.078 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/1.56, allocations: 79.16 kB / 0.8553 GB, free: 8.078 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/1.56, allocations: 77.95 kB / 0.8554 GB, free: 8.074 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005365/1.566, allocations: 2.233 MB / 0.8575 GB, free: 8.059 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01801/1.584, allocations: 10.16 MB / 0.8675 GB, free: 18.71 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004178/1.588, allocations: 1.921 MB / 0.8693 GB, free: 18.62 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002745/1.591, allocations: 1.067 MB / 0.8704 GB, free: 18.6 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01256/1.603, allocations: 6.611 MB / 0.8768 GB, free: 14.06 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002077/1.605, allocations: 1.063 MB / 0.8779 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=193): time 5.29e-06/1.605, allocations: 0.8438 kB / 0.8779 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of matching and sorting (n=198): time 0.01776/1.623, allocations: 6.445 MB / 0.8842 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.623, allocations: 103 kB / 0.8843 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/1.625, allocations: 1.13 MB / 0.8854 GB, free: 11.96 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001672/1.625, allocations: 60.36 kB / 0.8854 GB, free: 11.93 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006484/1.626, allocations: 0.8006 MB / 0.8862 GB, free: 11.61 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004691/1.626, allocations: 0.689 MB / 0.8869 GB, free: 11.15 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004658/1.627, allocations: 296.6 kB / 0.8872 GB, free: 11.13 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001378/1.627, allocations: 307.6 kB / 0.8875 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/1.629, allocations: 0.685 MB / 0.8881 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/1.631, allocations: 0.8518 MB / 0.889 GB, free: 10.74 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009424/1.64, allocations: 2.561 MB / 0.8915 GB, free: 10.51 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.951e-05/1.64, allocations: 0 / 0.8915 GB, free: 10.51 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006847/1.647, allocations: 2.428 MB / 0.8938 GB, free: 10.26 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 8.361e-05/1.647, allocations: 62.78 kB / 0.8939 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/1.647, allocations: 4.219 kB / 0.8939 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/1.649, allocations: 470.7 kB / 0.8943 GB, free: 10.18 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/1.651, allocations: 321.5 kB / 0.8946 GB, free: 10.18 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/1.662, allocations: 6.464 MB / 0.901 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002855/1.665, allocations: 63.53 kB / 0.901 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003487/1.666, allocations: 71.94 kB / 0.9011 GB, free: 7.242 MB / 0.6856 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.001881/1.667, allocations: 469.2 kB / 0.9015 GB, free: 7.121 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008031/1.668, allocations: 175 kB / 0.9017 GB, free: 7.027 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00659/1.675, allocations: 3.108 MB / 0.9047 GB, free: 6.723 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.34e-05/1.675, allocations: 22.28 kB / 0.9048 GB, free: 6.723 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.078e-05/1.675, allocations: 8 kB / 0.9048 GB, free: 6.723 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/1.675, allocations: 13.77 kB / 0.9048 GB, free: 6.723 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/1.687, allocations: 5.142 MB / 0.9098 GB, free: 6.148 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.343e-05/1.688, allocations: 2.531 kB / 0.9098 GB, free: 6.148 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/1.689, allocations: 311.3 kB / 0.9101 GB, free: 6.145 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/1.691, allocations: 491.8 kB / 0.9106 GB, free: 6.113 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003225/1.691, allocations: 70.3 kB / 0.9106 GB, free: 6.113 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009967/1.701, allocations: 6.485 MB / 0.917 GB, free: 3.16 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.701, allocations: 2.812 kB / 0.917 GB, free: 3.16 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008292/1.71, allocations: 3.651 MB / 0.9205 GB, free: 2.676 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/1.711, allocations: 473 kB / 0.921 GB, free: 2.484 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005766/1.712, allocations: 54.94 kB / 0.921 GB, free: 2.48 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/1.713, allocations: 58.72 kB / 0.9211 GB, free: 2.48 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005755/1.714, allocations: 180.4 kB / 0.9213 GB, free: 2.477 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003321/1.714, allocations: 70.75 kB / 0.9213 GB, free: 2.477 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001503/1.716, allocations: 0.8295 MB / 0.9221 GB, free: 2.367 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.11e-07/1.716, allocations: 0 / 0.9221 GB, free: 2.367 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003349/1.719, allocations: 0.8949 MB / 0.923 GB, free: 2.195 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.0118/1.731, allocations: 5.033 MB / 0.9279 GB, free: 15.79 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.006741/1.738, allocations: 2.429 MB / 0.9303 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.738, allocations: 3.938 kB / 0.9303 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003252/1.741, allocations: 1.538 MB / 0.9318 GB, free: 13.93 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005034/1.746, allocations: 0.6422 MB / 0.9324 GB, free: 13.71 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03873/1.785, allocations: 15.56 MB / 0.9476 GB, free: 1.449 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/1.788, allocations: 1.485 MB / 0.9491 GB, free: 96 kB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.00268/1.79, allocations: 399.6 kB / 0.9495 GB, free: 15.72 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/1.792, allocations: 0.8506 MB / 0.9503 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of SimCode: time 1.423e-06/1.792, allocations: 0 / 0.9503 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1715/1.963, allocations: 63.17 MB / 1.012 GB, free: 272 kB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.04/18, allocations: 11.92 kB / 1.012 GB, free: 260 kB / 0.7637 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)