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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.002/1.002, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.6303/0.6303, allocations: 80.17 MB / 339.4 MB, free: 7.562 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 0.4924 GB, free: 6.637 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.63e-05/1.781e-05, allocations: 3.406 kB / 0.4924 GB, free: 6.633 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6342/0.6342, allocations: 206.1 MB / 0.6936 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.02382/0.658, allocations: 19.82 MB / 0.713 GB, free: 2.977 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003287/0.6613, allocations: 121.8 kB / 0.7131 GB, free: 2.977 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.003932/0.6652, allocations: 1.5 MB / 0.7146 GB, free: 2.77 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.007615/0.6728, allocations: 2.903 MB / 0.7174 GB, free: 1.914 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.004907/0.6777, allocations: 1.996 MB / 0.7194 GB, free: 1.16 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.005391/0.6831, allocations: 4.595 MB / 0.7239 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009827/0.6841, allocations: 0.6447 MB / 0.7245 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003194/0.6873, allocations: 2.54 MB / 0.727 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.6897, allocations: 1.906 MB / 0.7288 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002824/0.69, allocations: 314.7 kB / 0.7291 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005215/0.6952, allocations: 2.975 MB / 0.732 GB, free: 11.6 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005133/0.6957, allocations: 0.6864 MB / 0.7327 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.6968, allocations: 1.102 MB / 0.7338 GB, free: 10.53 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.00641/0.7032, allocations: 5.054 MB / 0.7387 GB, free: 7.574 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.7032, allocations: 4 kB / 0.7387 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.355e-06/0.7032, allocations: 0 / 0.7387 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.459e-05/0.7033, allocations: 3.938 kB / 0.7387 GB, free: 7.566 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.00547/0.7088, allocations: 3.467 MB / 0.7421 GB, free: 5.129 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.7088, allocations: 12.25 kB / 0.7421 GB, free: 5.129 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002568/0.7091, allocations: 274.9 kB / 0.7424 GB, free: 4.914 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000488/0.7096, allocations: 334.9 kB / 0.7427 GB, free: 4.746 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00238/0.7119, allocations: 1.753 MB / 0.7444 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.7121, allocations: 147.7 kB / 0.7446 GB, free: 3.473 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002802/0.7124, allocations: 210.6 kB / 0.7448 GB, free: 3.395 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003529/0.7159, allocations: 2.419 MB / 0.7471 GB, free: 1.723 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.7159, allocations: 6.625 kB / 0.7471 GB, free: 1.719 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/0.7161, allocations: 79.75 kB / 0.7472 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.599e-05/0.7162, allocations: 78.69 kB / 0.7473 GB, free: 1.566 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.7189, allocations: 2.278 MB / 0.7495 GB, free: 15.29 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008662/0.7276, allocations: 6.694 MB / 0.756 GB, free: 8.68 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00228/0.7299, allocations: 1.763 MB / 0.7578 GB, free: 6.906 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.731, allocations: 0.9649 MB / 0.7587 GB, free: 5.941 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004553/0.7355, allocations: 3.006 MB / 0.7616 GB, free: 2.957 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.7369, allocations: 1.062 MB / 0.7627 GB, free: 1.879 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 3.226e-06/0.7369, allocations: 0 / 0.7627 GB, free: 1.879 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.009274/0.7462, allocations: 6.004 MB / 0.7685 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.7463, allocations: 106.1 kB / 0.7686 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.7478, allocations: 1.513 MB / 0.7701 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.801e-05/0.7479, allocations: 61.7 kB / 0.7702 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006778/0.7485, allocations: 1.005 MB / 0.7712 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003688/0.7489, allocations: 0.6871 MB / 0.7718 GB, free: 8.418 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004016/0.7493, allocations: 307.5 kB / 0.7721 GB, free: 8.113 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.181e-05/0.7494, allocations: 301.1 kB / 0.7724 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009292/0.7503, allocations: 0.7491 MB / 0.7731 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.7514, allocations: 0.9419 MB / 0.7741 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004677/0.756, allocations: 2.64 MB / 0.7766 GB, free: 3.359 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.756, allocations: 4 kB / 0.7766 GB, free: 3.355 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003267/0.7593, allocations: 2.569 MB / 0.7792 GB, free: 0.7891 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.052e-05/0.7594, allocations: 63.41 kB / 0.7792 GB, free: 0.7148 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.7594, allocations: 0 / 0.7792 GB, free: 0.7148 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008168/0.7602, allocations: 481.5 kB / 0.7797 GB, free: 244 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.7609, allocations: 334.5 kB / 0.78 GB, free: 15.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005808/0.7667, allocations: 6.142 MB / 0.786 GB, free: 9.582 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006763/0.7674, allocations: 67.95 kB / 0.7861 GB, free: 9.516 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.7675, allocations: 83.95 kB / 0.7861 GB, free: 9.434 MB / 0.6042 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: 16 * 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 (180): * Single equations (assignments): 176 * 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.0006984/0.7682, allocations: 487 kB / 0.7866 GB, free: 8.969 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003614/0.7686, allocations: 242.5 kB / 0.7868 GB, free: 8.73 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/0.7727, allocations: 3.131 MB / 0.7899 GB, free: 5.602 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.7727, allocations: 20 kB / 0.7899 GB, free: 5.582 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/0.7727, allocations: 8 kB / 0.7899 GB, free: 5.574 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.812e-05/0.7728, allocations: 7.969 kB / 0.7899 GB, free: 5.566 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005925/0.7787, allocations: 4.861 MB / 0.7947 GB, free: 0.6953 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.7787, allocations: 4 kB / 0.7947 GB, free: 0.6914 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000619/0.7793, allocations: 309.6 kB / 0.795 GB, free: 416 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008168/0.7801, allocations: 485.3 kB / 0.7954 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.7803, allocations: 71.95 kB / 0.7955 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00579/0.786, allocations: 6.139 MB / 0.8015 GB, free: 9.516 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.7861, allocations: 8 kB / 0.8015 GB, free: 9.508 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004936/0.791, allocations: 3.692 MB / 0.8051 GB, free: 5.805 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009061/0.7919, allocations: 446.1 kB / 0.8055 GB, free: 5.367 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.7921, allocations: 44 kB / 0.8056 GB, free: 5.324 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005544/0.7926, allocations: 59.95 kB / 0.8056 GB, free: 5.266 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003004/0.7929, allocations: 184.2 kB / 0.8058 GB, free: 5.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.48e-05/0.793, allocations: 71.95 kB / 0.8059 GB, free: 5.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001104/0.7941, allocations: 1.067 MB / 0.8069 GB, free: 3.93 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-08/0.7941, allocations: 0 / 0.8069 GB, free: 3.93 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002589/0.7967, allocations: 0.9518 MB / 0.8078 GB, free: 2.977 MB / 0.6198 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.006304/0.803, allocations: 5.126 MB / 0.8129 GB, free: 13.89 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.003299/0.8063, allocations: 2.389 MB / 0.8152 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.8063, allocations: 0 / 0.8152 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.8081, allocations: 1.453 MB / 0.8166 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.8111, allocations: 1.003 MB / 0.8176 GB, free: 9.047 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/0.8335, allocations: 17.67 MB / 0.8348 GB, free: 7.098 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008815/0.8344, allocations: 1.043 MB / 0.8359 GB, free: 6.016 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001402/0.8358, allocations: 473.8 kB / 0.8363 GB, free: 5.578 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.8369, allocations: 1.027 MB / 0.8373 GB, free: 4.551 MB / 0.6511 GB Notification: Performance of SimCode: time 1.082e-06/0.8369, allocations: 0 / 0.8373 GB, free: 4.551 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.9383, allocations: 80.28 MB / 0.9157 GB, free: 5.129 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.72, allocations: 3.938 kB / 0.9157 GB, free: 5.125 MB / 0.7292 GB " [Timeout remaining time 648] (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 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 14.94454811885953] Failed to read output from testmodel.py, exit status != 0: 11.848559265956283 12.169671168 11.462643045 Calling exit ...