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.001972/0.001972, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.002244/0.002244, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 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.643/1.643, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.9691/0.9691, allocations: 100.9 MB / 413.3 MB, free: 2.898 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 90.52 kB / 0.5641 GB, free: 35.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2077, allocations: 74.61 MB / 0.6369 GB, free: 6.473 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.8463/1.054, allocations: 199 MB / 0.8312 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03491/1.089, allocations: 22.89 MB / 0.8536 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004832/1.094, allocations: 116.1 kB / 0.8537 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.005815/1.1, allocations: 1.445 MB / 0.8551 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01099/1.111, allocations: 2.643 MB / 0.8577 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.007297/1.118, allocations: 1.925 MB / 0.8596 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007591/1.125, allocations: 4.097 MB / 0.8636 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/1.127, allocations: 0.6358 MB / 0.8642 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004464/1.132, allocations: 1.728 MB / 0.8659 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005414/1.137, allocations: 2.005 MB / 0.8678 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001215/1.138, allocations: 316 kB / 0.8681 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00989/1.148, allocations: 2.937 MB / 0.871 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001485/1.15, allocations: 0.6617 MB / 0.8717 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003219/1.153, allocations: 1.233 MB / 0.8729 GB, free: 9.953 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01459/1.167, allocations: 4.812 MB / 0.8776 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 1.222e-05/1.167, allocations: 7.938 kB / 0.8776 GB, free: 5.117 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.705e-06/1.167, allocations: 0 / 0.8776 GB, free: 5.117 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001232/1.168, allocations: 0 / 0.8776 GB, free: 5.117 MB / 0.6231 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.009317/1.177, allocations: 3.376 MB / 0.8809 GB, free: 1.68 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/1.177, allocations: 13.47 kB / 0.8809 GB, free: 1.668 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004433/1.177, allocations: 278.5 kB / 0.8811 GB, free: 1.387 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009066/1.178, allocations: 314.1 kB / 0.8814 GB, free: 1.078 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003714/1.182, allocations: 1.707 MB / 0.8831 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/1.182, allocations: 151.8 kB / 0.8833 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003496/1.183, allocations: 207.9 kB / 0.8835 GB, free: 14.97 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004582/1.187, allocations: 2.356 MB / 0.8858 GB, free: 12.59 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.835e-05/1.187, allocations: 3.984 kB / 0.8858 GB, free: 12.59 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001962/1.187, allocations: 76 kB / 0.8858 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/1.187, allocations: 74.7 kB / 0.8859 GB, free: 12.44 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004353/1.192, allocations: 2.264 MB / 0.8881 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01335/1.205, allocations: 6.036 MB / 0.894 GB, free: 4.051 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003539/1.209, allocations: 1.749 MB / 0.8957 GB, free: 2.285 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/1.211, allocations: 0.9646 MB / 0.8967 GB, free: 1.316 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007505/1.218, allocations: 2.995 MB / 0.8996 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002122/1.22, allocations: 1.06 MB / 0.9006 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 4.138e-06/1.22, allocations: 0 / 0.9006 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01554/1.236, allocations: 5.97 MB / 0.9064 GB, free: 7.195 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/1.236, allocations: 98.92 kB / 0.9065 GB, free: 7.078 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003201/1.239, allocations: 1.437 MB / 0.9079 GB, free: 5.641 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0002611/1.239, allocations: 57.7 kB / 0.908 GB, free: 5.578 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001137/1.24, allocations: 0.9512 MB / 0.9089 GB, free: 4.617 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008938/1.241, allocations: 0.6893 MB / 0.9096 GB, free: 3.922 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000792/1.242, allocations: 299.6 kB / 0.9099 GB, free: 3.621 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001682/1.242, allocations: 301.1 kB / 0.9102 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/1.244, allocations: 0.7413 MB / 0.9109 GB, free: 2.57 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/1.246, allocations: 0.9067 MB / 0.9118 GB, free: 1.625 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00878/1.255, allocations: 2.573 MB / 0.9143 GB, free: 15 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/1.255, allocations: 4 kB / 0.9143 GB, free: 15 MB / 0.67 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006798/1.262, allocations: 2.506 MB / 0.9167 GB, free: 12.45 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-05/1.262, allocations: 67.39 kB / 0.9168 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/1.262, allocations: 0.875 kB / 0.9168 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00175/1.263, allocations: 465.3 kB / 0.9173 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/1.265, allocations: 319.5 kB / 0.9176 GB, free: 11.6 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.275, allocations: 6.16 MB / 0.9236 GB, free: 5.219 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/1.277, allocations: 60.03 kB / 0.9236 GB, free: 5.16 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004559/1.277, allocations: 75.95 kB / 0.9237 GB, free: 5.086 MB / 0.67 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.001597/1.279, allocations: 473.5 kB / 0.9242 GB, free: 4.613 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.28, allocations: 226.6 kB / 0.9244 GB, free: 4.391 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007605/1.288, allocations: 3.124 MB / 0.9274 GB, free: 1.238 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.732e-05/1.288, allocations: 27.88 kB / 0.9275 GB, free: 1.211 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/1.288, allocations: 11.94 kB / 0.9275 GB, free: 1.199 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-05/1.288, allocations: 7.969 kB / 0.9275 GB, free: 1.191 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/1.3, allocations: 4.832 MB / 0.9322 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/1.3, allocations: 0 / 0.9322 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/1.301, allocations: 311.6 kB / 0.9325 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/1.303, allocations: 489.4 kB / 0.933 GB, free: 11.49 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002367/1.303, allocations: 67.95 kB / 0.933 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009723/1.313, allocations: 6.149 MB / 0.939 GB, free: 5.039 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-06/1.313, allocations: 4.031 kB / 0.939 GB, free: 5.035 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009634/1.322, allocations: 3.681 MB / 0.9426 GB, free: 1.312 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/1.324, allocations: 430.3 kB / 0.943 GB, free: 0.8906 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006157/1.325, allocations: 51.94 kB / 0.9431 GB, free: 0.8398 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/1.326, allocations: 63.95 kB / 0.9431 GB, free: 0.7773 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005128/1.327, allocations: 181.5 kB / 0.9433 GB, free: 0.5977 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002736/1.327, allocations: 71.95 kB / 0.9434 GB, free: 0.5273 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002488/1.33, allocations: 1.021 MB / 0.9444 GB, free: 15.52 MB / 0.7012 GB Notification: Performance of sort global known variables: time 8e-08/1.33, allocations: 0 / 0.9444 GB, free: 15.52 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003892/1.333, allocations: 0.8971 MB / 0.9453 GB, free: 14.62 MB / 0.7012 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.0113/1.345, allocations: 5.079 MB / 0.9502 GB, free: 9.484 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005592/1.35, allocations: 2.368 MB / 0.9525 GB, free: 7.047 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.35, allocations: 0 / 0.9525 GB, free: 7.047 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003396/1.354, allocations: 1.463 MB / 0.954 GB, free: 5.562 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004454/1.358, allocations: 0.6608 MB / 0.9546 GB, free: 4.926 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04178/1.4, allocations: 16.99 MB / 0.9712 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/1.402, allocations: 1.009 MB / 0.9722 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002001/1.404, allocations: 442.2 kB / 0.9726 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/1.406, allocations: 0.9874 MB / 0.9736 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of SimCode: time 1.713e-06/1.406, allocations: 0 / 0.9736 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1932/1.599, allocations: 71.35 MB / 1.043 GB, free: 10.4 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/17.55, allocations: 3.125 kB / 1.043 GB, free: 10.4 MB / 0.795 GB " [Timeout remaining time 642] (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: 22.509044636040926] Failed to read output from testmodel.py, exit status != 0: 17.710556930862367 18.209899686 17.037844192 Calling exit ...