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.001297/0.001297, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.001573/0.001573, allocations: 219.8 kB / 23.04 MB, free: 5.074 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.402/1.402, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7188/0.7188, allocations: 94.55 MB / 407.8 MB, free: 9.184 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="cs",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.002328/0.002328, allocations: 80.88 kB / 0.5557 GB, free: 38.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1272, allocations: 73.05 MB / 0.6271 GB, free: 480 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5334/0.6606, allocations: 227.4 MB / 0.8491 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03114/0.6917, allocations: 25.25 MB / 0.8738 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002812/0.6945, allocations: 115 kB / 0.8739 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004287/0.6988, allocations: 1.67 MB / 0.8755 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.008491/0.7073, allocations: 2.695 MB / 0.8782 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.00578/0.7131, allocations: 1.966 MB / 0.8801 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.007183/0.7203, allocations: 4.104 MB / 0.8841 GB, free: 8.711 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.7221, allocations: 0.6753 MB / 0.8848 GB, free: 7.988 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.7255, allocations: 1.74 MB / 0.8865 GB, free: 6.242 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003723/0.7292, allocations: 2.164 MB / 0.8886 GB, free: 4.07 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0006962/0.7299, allocations: 312 kB / 0.8889 GB, free: 3.766 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007972/0.7379, allocations: 3.443 MB / 0.8922 GB, free: 324 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001038/0.739, allocations: 0.6617 MB / 0.8929 GB, free: 15.65 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002707/0.7417, allocations: 1.509 MB / 0.8943 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.7526, allocations: 4.855 MB / 0.8991 GB, free: 9.266 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.7526, allocations: 0 / 0.8991 GB, free: 9.266 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.044e-06/0.7526, allocations: 0 / 0.8991 GB, free: 9.266 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001234/0.7527, allocations: 3.938 kB / 0.8991 GB, free: 9.262 MB / 0.6387 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.008913/0.7616, allocations: 3.392 MB / 0.9024 GB, free: 5.805 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.7617, allocations: 12.03 kB / 0.9024 GB, free: 5.793 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.743e-05/0.7617, allocations: 47.84 kB / 0.9025 GB, free: 5.746 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003831/0.7621, allocations: 278.5 kB / 0.9027 GB, free: 5.465 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006217/0.7627, allocations: 314 kB / 0.903 GB, free: 5.156 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.766, allocations: 1.695 MB / 0.9047 GB, free: 3.418 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.7661, allocations: 143.8 kB / 0.9048 GB, free: 3.277 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/0.7664, allocations: 215.9 kB / 0.905 GB, free: 3.066 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.7704, allocations: 2.348 MB / 0.9073 GB, free: 0.6914 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.7705, allocations: 3.938 kB / 0.9073 GB, free: 0.6875 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001759/0.7706, allocations: 80 kB / 0.9074 GB, free: 0.6094 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.144e-05/0.7707, allocations: 74.69 kB / 0.9075 GB, free: 0.5352 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003905/0.7746, allocations: 2.284 MB / 0.9097 GB, free: 14.24 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01341/0.788, allocations: 10.18 MB / 0.9196 GB, free: 3.125 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003354/0.7914, allocations: 1.76 MB / 0.9214 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.7932, allocations: 0.966 MB / 0.9223 GB, free: 400 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007044/0.8003, allocations: 3.368 MB / 0.9256 GB, free: 12.99 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001965/0.8022, allocations: 1.06 MB / 0.9266 GB, free: 11.91 MB / 0.67 GB Notification: Performance of pre-optimization done (n=193): time 3.897e-06/0.8022, allocations: 3.938 kB / 0.9266 GB, free: 11.91 MB / 0.67 GB Notification: Performance of matching and sorting (n=198): time 0.01322/0.8154, allocations: 5.961 MB / 0.9325 GB, free: 5.883 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.8155, allocations: 102.9 kB / 0.9326 GB, free: 5.766 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/0.8175, allocations: 1.417 MB / 0.9339 GB, free: 4.348 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002508/0.8178, allocations: 65.69 kB / 0.934 GB, free: 4.277 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008966/0.8187, allocations: 0.9512 MB / 0.9349 GB, free: 3.316 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006531/0.8193, allocations: 0.6894 MB / 0.9356 GB, free: 2.621 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005056/0.8198, allocations: 299.5 kB / 0.9359 GB, free: 2.324 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.82, allocations: 301.1 kB / 0.9362 GB, free: 2.027 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.8213, allocations: 0.6872 MB / 0.9368 GB, free: 1.34 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.8229, allocations: 0.8526 MB / 0.9377 GB, free: 468 kB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007438/0.8303, allocations: 2.569 MB / 0.9402 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.8303, allocations: 0 / 0.9402 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004993/0.8353, allocations: 2.44 MB / 0.9426 GB, free: 11.37 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 6.354e-05/0.8354, allocations: 65.75 kB / 0.9426 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.8354, allocations: 4 kB / 0.9426 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.8368, allocations: 469.3 kB / 0.9431 GB, free: 10.82 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.8382, allocations: 319.5 kB / 0.9434 GB, free: 10.51 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008274/0.8464, allocations: 6.263 MB / 0.9495 GB, free: 4.023 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.8478, allocations: 60 kB / 0.9496 GB, free: 3.965 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/0.848, allocations: 75.95 kB / 0.9496 GB, free: 3.891 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.0009904/0.849, allocations: 485.6 kB / 0.9501 GB, free: 3.406 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/0.8494, allocations: 218.5 kB / 0.9503 GB, free: 3.191 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005892/0.8553, allocations: 3.108 MB / 0.9533 GB, free: 56 kB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.8553, allocations: 24.05 kB / 0.9534 GB, free: 32 kB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.8553, allocations: 15.88 kB / 0.9534 GB, free: 16 kB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.278e-05/0.8553, allocations: 11.95 kB / 0.9534 GB, free: 4 kB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008692/0.864, allocations: 5.179 MB / 0.9584 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.864, allocations: 0 / 0.9584 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.8652, allocations: 311.5 kB / 0.9587 GB, free: 10.44 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001358/0.8666, allocations: 493.6 kB / 0.9592 GB, free: 9.949 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.8667, allocations: 67.89 kB / 0.9593 GB, free: 9.883 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007887/0.8746, allocations: 6.244 MB / 0.9654 GB, free: 3.414 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.8746, allocations: 0 / 0.9654 GB, free: 3.414 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006532/0.8812, allocations: 3.688 MB / 0.969 GB, free: 15.67 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009559/0.8821, allocations: 438.2 kB / 0.9694 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.8824, allocations: 48.05 kB / 0.9694 GB, free: 15.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000959/0.8833, allocations: 59.95 kB / 0.9695 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003511/0.8837, allocations: 189.5 kB / 0.9697 GB, free: 14.95 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/0.8839, allocations: 75.95 kB / 0.9698 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001436/0.8853, allocations: 1.013 MB / 0.9707 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8853, allocations: 0 / 0.9707 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002299/0.8876, allocations: 0.8972 MB / 0.9716 GB, free: 12.98 MB / 0.7169 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.008433/0.896, allocations: 5.066 MB / 0.9766 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004608/0.9006, allocations: 2.318 MB / 0.9788 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.9006, allocations: 0 / 0.9788 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002829/0.9035, allocations: 1.451 MB / 0.9802 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/0.9066, allocations: 0.6646 MB / 0.9809 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03105/0.9376, allocations: 16.75 MB / 0.9973 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.9389, allocations: 1.585 MB / 0.9988 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001495/0.9404, allocations: 435.9 kB / 0.9992 GB, free: 276 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.9418, allocations: 0.9875 MB / 1 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of SimCode: time 1.263e-06/0.9418, allocations: 0 / 1 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3813/1.323, allocations: 68.87 MB / 1.067 GB, free: 308.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/16.71, allocations: 6.203 kB / 1.067 GB, free: 308.5 MB / 0.7794 GB " [Timeout remaining time 643] (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: 20.245517435017973] Failed to read output from testmodel.py, exit status != 0: 16.906778607983142 16.918690314 16.163511155 Calling exit ...