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.002049/0.002049, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00273/0.00273, allocations: 220.1 kB / 22.26 MB, free: 5.125 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.576/1.576, allocations: 230.6 MB / 256 MB, free: 7.996 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.8252/0.8252, allocations: 94.56 MB / 407 MB, free: 9.188 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="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: 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.002722/0.002722, allocations: 89.52 kB / 0.555 GB, free: 38.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1759, allocations: 73.05 MB / 0.6263 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7048/0.8807, allocations: 227.4 MB / 0.8484 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03796/0.9187, allocations: 25.27 MB / 0.873 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003946/0.9226, allocations: 115 kB / 0.8731 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.005775/0.9284, allocations: 1.67 MB / 0.8748 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.9389, allocations: 2.695 MB / 0.8774 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.007221/0.9461, allocations: 1.947 MB / 0.8793 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.009042/0.9552, allocations: 4.119 MB / 0.8833 GB, free: 8.746 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002189/0.9574, allocations: 0.6714 MB / 0.884 GB, free: 8.027 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004964/0.9623, allocations: 1.744 MB / 0.8857 GB, free: 6.277 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004941/0.9673, allocations: 2.16 MB / 0.8878 GB, free: 4.109 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001382/0.9687, allocations: 312 kB / 0.8881 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01059/0.9793, allocations: 3.447 MB / 0.8915 GB, free: 360 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.9807, allocations: 0.6578 MB / 0.8921 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.00376/0.9845, allocations: 1.516 MB / 0.8936 GB, free: 14.17 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01391/0.9984, allocations: 4.851 MB / 0.8983 GB, free: 9.301 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 1.435e-05/0.9984, allocations: 0 / 0.8983 GB, free: 9.301 MB / 0.6387 GB Notification: Performance of FrontEnd: time 3.046e-06/0.9984, allocations: 0 / 0.8983 GB, free: 9.301 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002155/0.9986, allocations: 0 / 0.8983 GB, free: 9.301 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.01103/1.01, allocations: 3.396 MB / 0.9016 GB, free: 5.84 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/1.01, allocations: 8.031 kB / 0.9016 GB, free: 5.832 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007663/1.01, allocations: 274.6 kB / 0.9019 GB, free: 5.555 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001075/1.012, allocations: 314 kB / 0.9022 GB, free: 5.246 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004387/1.016, allocations: 1.691 MB / 0.9039 GB, free: 3.512 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/1.016, allocations: 151.8 kB / 0.904 GB, free: 3.363 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005276/1.017, allocations: 211.9 kB / 0.9042 GB, free: 3.156 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005682/1.022, allocations: 2.352 MB / 0.9065 GB, free: 0.7773 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.357e-05/1.022, allocations: 0 / 0.9065 GB, free: 0.7773 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/1.023, allocations: 79.94 kB / 0.9066 GB, free: 0.6992 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/1.023, allocations: 78.69 kB / 0.9067 GB, free: 0.6211 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005152/1.028, allocations: 2.276 MB / 0.9089 GB, free: 14.33 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01851/1.046, allocations: 10.19 MB / 0.9188 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004011/1.05, allocations: 1.762 MB / 0.9205 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/1.052, allocations: 0.9621 MB / 0.9215 GB, free: 488 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008507/1.061, allocations: 3.372 MB / 0.9248 GB, free: 13.07 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002278/1.063, allocations: 1.052 MB / 0.9258 GB, free: 12 MB / 0.67 GB Notification: Performance of pre-optimization done (n=193): time 6.102e-06/1.063, allocations: 0 / 0.9258 GB, free: 12 MB / 0.67 GB Notification: Performance of matching and sorting (n=198): time 0.01583/1.079, allocations: 5.965 MB / 0.9316 GB, free: 5.973 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.88e-05/1.079, allocations: 98.92 kB / 0.9317 GB, free: 5.859 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/1.082, allocations: 1.425 MB / 0.9331 GB, free: 4.434 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001976/1.082, allocations: 57.7 kB / 0.9332 GB, free: 4.371 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001127/1.083, allocations: 0.9628 MB / 0.9341 GB, free: 3.398 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008525/1.084, allocations: 0.6894 MB / 0.9348 GB, free: 2.703 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007313/1.085, allocations: 299.5 kB / 0.9351 GB, free: 2.406 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.085, allocations: 301.1 kB / 0.9354 GB, free: 2.109 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/1.087, allocations: 0.6833 MB / 0.936 GB, free: 1.426 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/1.089, allocations: 0.8535 MB / 0.9369 GB, free: 0.543 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007634/1.096, allocations: 2.569 MB / 0.9394 GB, free: 13.92 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/1.096, allocations: 0 / 0.9394 GB, free: 13.92 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005697/1.102, allocations: 2.441 MB / 0.9418 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/1.102, allocations: 67.39 kB / 0.9418 GB, free: 11.38 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.706e-05/1.102, allocations: 4 kB / 0.9418 GB, free: 11.37 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/1.104, allocations: 465.3 kB / 0.9423 GB, free: 10.91 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/1.105, allocations: 319.5 kB / 0.9426 GB, free: 10.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009791/1.115, allocations: 6.267 MB / 0.9487 GB, free: 4.105 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/1.117, allocations: 63.98 kB / 0.9488 GB, free: 4.043 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003924/1.117, allocations: 71.97 kB / 0.9488 GB, free: 3.973 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.001595/1.119, allocations: 479 kB / 0.9493 GB, free: 3.496 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007172/1.119, allocations: 218.6 kB / 0.9495 GB, free: 3.281 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007405/1.127, allocations: 3.112 MB / 0.9525 GB, free: 144 kB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/1.127, allocations: 20 kB / 0.9525 GB, free: 124 kB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.819e-05/1.127, allocations: 11.94 kB / 0.9526 GB, free: 112 kB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.427e-05/1.127, allocations: 8.078 kB / 0.9526 GB, free: 104 kB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/1.138, allocations: 5.183 MB / 0.9576 GB, free: 10.84 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/1.138, allocations: 4 kB / 0.9576 GB, free: 10.83 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/1.14, allocations: 311.5 kB / 0.9579 GB, free: 10.53 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001662/1.141, allocations: 489.6 kB / 0.9584 GB, free: 10.04 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/1.142, allocations: 67.95 kB / 0.9585 GB, free: 9.977 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009349/1.151, allocations: 6.25 MB / 0.9646 GB, free: 3.5 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/1.151, allocations: 4.125 kB / 0.9646 GB, free: 3.496 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008523/1.159, allocations: 3.68 MB / 0.9682 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/1.161, allocations: 430.3 kB / 0.9686 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005595/1.161, allocations: 59.81 kB / 0.9686 GB, free: 15.28 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/1.163, allocations: 63.95 kB / 0.9687 GB, free: 15.22 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005216/1.163, allocations: 185.5 kB / 0.9689 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002176/1.163, allocations: 75.95 kB / 0.9689 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00203/1.165, allocations: 1.01 MB / 0.9699 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/1.165, allocations: 0 / 0.9699 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003134/1.169, allocations: 0.901 MB / 0.9708 GB, free: 13.06 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.009962/1.179, allocations: 5.064 MB / 0.9757 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005251/1.184, allocations: 2.318 MB / 0.978 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.184, allocations: 0 / 0.978 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003333/1.187, allocations: 1.451 MB / 0.9794 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003963/1.191, allocations: 0.665 MB / 0.9801 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03693/1.228, allocations: 16.76 MB / 0.9964 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/1.23, allocations: 1.581 MB / 0.998 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002162/1.232, allocations: 437.6 kB / 0.9984 GB, free: 364 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001884/1.234, allocations: 0.9914 MB / 0.9994 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of SimCode: time 2.134e-06/1.234, allocations: 0 / 0.9994 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5318/1.766, allocations: 68.83 MB / 1.067 GB, free: 308.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.44/20.2, allocations: 11.09 kB / 1.067 GB, free: 308.5 MB / 0.7794 GB " [Timeout remaining time 640] (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: 24.23027172894217] Failed to read output from testmodel.py, exit status != 0: 20.35986704309471 20.382416665 19.379529016 Calling exit ...