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.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.0007969/0.0007969, allocations: 76.44 kB / 19.17 MB, free: 0.7305 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.0008333/0.0008333, allocations: 165.9 kB / 22.45 MB, free: 2.098 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 0.8486/0.8486, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.584/0.584, allocations: 116 MB / 375.2 MB, free: 4.172 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 3.938 kB / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.496e-05/1.638e-05, allocations: 6.219 kB / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3774/0.3774, allocations: 206.2 MB / 0.7546 GB, free: 12.26 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01656/0.394, allocations: 19.91 MB / 0.7741 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002247/0.3962, allocations: 134.8 kB / 0.7742 GB, free: 11.42 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003041/0.3993, allocations: 1.513 MB / 0.7757 GB, free: 9.898 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.005979/0.4053, allocations: 2.926 MB / 0.7785 GB, free: 6.953 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003788/0.409, allocations: 2.051 MB / 0.7805 GB, free: 4.895 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.004334/0.4134, allocations: 4.681 MB / 0.7851 GB, free: 196 kB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008498/0.4142, allocations: 0.6797 MB / 0.7858 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002545/0.4168, allocations: 2.572 MB / 0.7883 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.4184, allocations: 1.909 MB / 0.7901 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0003183/0.4187, allocations: 316 kB / 0.7904 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00404/0.4227, allocations: 2.973 MB / 0.7933 GB, free: 7.68 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0004029/0.4231, allocations: 0.6849 MB / 0.794 GB, free: 6.992 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0009953/0.4241, allocations: 1.115 MB / 0.7951 GB, free: 5.875 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.006272/0.4304, allocations: 5.161 MB / 0.8001 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.4304, allocations: 4 kB / 0.8001 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4304, allocations: 0 / 0.8001 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.949e-05/0.4305, allocations: 0 / 0.8001 GB, free: 0.6953 MB / 0.6355 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.004391/0.4349, allocations: 3.534 MB / 0.8036 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.4349, allocations: 12.03 kB / 0.8036 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002243/0.4351, allocations: 274.8 kB / 0.8039 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004497/0.4356, allocations: 345.9 kB / 0.8042 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.4378, allocations: 1.866 MB / 0.806 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.4378, allocations: 147.9 kB / 0.8062 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.438, allocations: 211.8 kB / 0.8064 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.4405, allocations: 2.413 MB / 0.8087 GB, free: 7.754 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.4406, allocations: 0 / 0.8087 GB, free: 7.754 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.4407, allocations: 83.94 kB / 0.8088 GB, free: 7.672 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.422e-05/0.4407, allocations: 74.69 kB / 0.8089 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.4431, allocations: 2.284 MB / 0.8111 GB, free: 5.305 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006876/0.45, allocations: 6.671 MB / 0.8176 GB, free: 14.53 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/0.4519, allocations: 1.729 MB / 0.8193 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.453, allocations: 0.949 MB / 0.8202 GB, free: 11.82 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003525/0.4565, allocations: 2.935 MB / 0.8231 GB, free: 8.863 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.4577, allocations: 1.053 MB / 0.8241 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=193): time 3.226e-06/0.4577, allocations: 0 / 0.8241 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of matching and sorting (n=198): time 0.007582/0.4653, allocations: 5.984 MB / 0.83 GB, free: 1.746 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.4653, allocations: 106.9 kB / 0.8301 GB, free: 1.625 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.4667, allocations: 1.581 MB / 0.8316 GB, free: 4 kB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.766e-05/0.4668, allocations: 61.7 kB / 0.8317 GB, free: 15.94 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005545/0.4674, allocations: 1.026 MB / 0.8327 GB, free: 14.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003544/0.4677, allocations: 0.6854 MB / 0.8333 GB, free: 14.21 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003035/0.468, allocations: 307.5 kB / 0.8336 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.415e-05/0.4681, allocations: 301.1 kB / 0.8339 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009183/0.469, allocations: 0.7374 MB / 0.8346 GB, free: 12.86 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009212/0.4699, allocations: 0.9361 MB / 0.8356 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003825/0.4737, allocations: 2.602 MB / 0.8381 GB, free: 9.184 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.4737, allocations: 0 / 0.8381 GB, free: 9.184 MB / 0.6823 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003019/0.4768, allocations: 2.557 MB / 0.8406 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.4768, allocations: 63.41 kB / 0.8407 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4768, allocations: 3.938 kB / 0.8407 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008767/0.4777, allocations: 469.6 kB / 0.8411 GB, free: 6.043 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.4784, allocations: 335.5 kB / 0.8414 GB, free: 5.715 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/0.4832, allocations: 6.144 MB / 0.8474 GB, free: 15.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008256/0.484, allocations: 72.02 kB / 0.8475 GB, free: 15.28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.4841, allocations: 79.95 kB / 0.8476 GB, free: 15.2 MB / 0.698 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.0007891/0.4849, allocations: 491.7 kB / 0.848 GB, free: 14.71 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003261/0.4852, allocations: 247.3 kB / 0.8483 GB, free: 14.47 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.4886, allocations: 3.12 MB / 0.8513 GB, free: 11.32 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.988e-06/0.4886, allocations: 20 kB / 0.8513 GB, free: 11.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4886, allocations: 8 kB / 0.8513 GB, free: 11.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4887, allocations: 11.95 kB / 0.8514 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00528/0.4939, allocations: 4.817 MB / 0.8561 GB, free: 6.383 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4939, allocations: 0.5625 kB / 0.8561 GB, free: 6.383 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006069/0.4945, allocations: 311.6 kB / 0.8564 GB, free: 6.078 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007719/0.4953, allocations: 0.4898 MB / 0.8568 GB, free: 5.582 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.727e-05/0.4954, allocations: 67.95 kB / 0.8569 GB, free: 5.516 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004767/0.5002, allocations: 6.137 MB / 0.8629 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5002, allocations: 3.938 kB / 0.8629 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004118/0.5043, allocations: 3.658 MB / 0.8665 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007063/0.505, allocations: 454.1 kB / 0.8669 GB, free: 11 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/0.5052, allocations: 44 kB / 0.8669 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005463/0.5057, allocations: 63.95 kB / 0.867 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000248/0.506, allocations: 181.6 kB / 0.8672 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.5061, allocations: 71.95 kB / 0.8672 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001018/0.5071, allocations: 1.105 MB / 0.8683 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2e-07/0.5071, allocations: 7.938 kB / 0.8683 GB, free: 9.512 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001707/0.5088, allocations: 0.9557 MB / 0.8693 GB, free: 8.555 MB / 0.7136 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.005035/0.5138, allocations: 5.077 MB / 0.8742 GB, free: 3.43 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002838/0.5167, allocations: 2.372 MB / 0.8765 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5167, allocations: 0 / 0.8765 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.5182, allocations: 1.439 MB / 0.8779 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/0.5207, allocations: 1.001 MB / 0.8789 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/0.5405, allocations: 17.88 MB / 0.8964 GB, free: 12.24 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008242/0.5414, allocations: 1.061 MB / 0.8974 GB, free: 11.15 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.001246/0.5426, allocations: 459.1 kB / 0.8979 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/0.5437, allocations: 1.047 MB / 0.8989 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of SimCode: time 2.404e-06/0.5437, allocations: 4 kB / 0.8989 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2817/0.8255, allocations: 81.26 MB / 0.9782 GB, free: 286.3 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.643/9.468, allocations: 6.516 kB / 0.9783 GB, free: 286.3 MB / 0.7761 GB " [Timeout remaining time 650] (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 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 11.881575517356396] Failed to read output from testmodel.py, exit status != 0: 9.584698709659278 9.591999448 9.160146196 Calling exit ...