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.001616/0.001616, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001816/0.001816, allocations: 220.6 kB / 23 MB, free: 4.914 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.7756/0.7756, allocations: 100.9 MB / 414.1 MB, free: 2.871 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: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch") [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.002526/0.002526, allocations: 82.91 kB / 0.5653 GB, free: 35.38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1139, allocations: 74.62 MB / 0.6382 GB, free: 5.996 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5074/0.6213, allocations: 199 MB / 0.8325 GB, free: 6.863 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03213/0.6535, allocations: 22.89 MB / 0.8548 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.6563, allocations: 114.9 kB / 0.8549 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004447/0.6607, allocations: 1.445 MB / 0.8563 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007693/0.6684, allocations: 2.637 MB / 0.8589 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005459/0.6739, allocations: 1.924 MB / 0.8608 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005496/0.6794, allocations: 4.096 MB / 0.8648 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.6807, allocations: 0.644 MB / 0.8654 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.6839, allocations: 1.728 MB / 0.8671 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003787/0.6877, allocations: 2.002 MB / 0.8691 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0006936/0.6884, allocations: 316 kB / 0.8694 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007057/0.6954, allocations: 2.941 MB / 0.8722 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000815/0.6962, allocations: 0.6655 MB / 0.8729 GB, free: 11 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002115/0.6983, allocations: 1.225 MB / 0.8741 GB, free: 9.766 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.008815/0.7072, allocations: 4.8 MB / 0.8788 GB, free: 4.949 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.7072, allocations: 11.94 kB / 0.8788 GB, free: 4.938 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7072, allocations: 0 / 0.8788 GB, free: 4.938 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.481e-05/0.7072, allocations: 3.938 kB / 0.8788 GB, free: 4.934 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.007188/0.7144, allocations: 3.38 MB / 0.8821 GB, free: 1.492 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.7145, allocations: 13.41 kB / 0.8821 GB, free: 1.48 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006898/0.7152, allocations: 326 kB / 0.8824 GB, free: 1.16 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/0.7183, allocations: 1.699 MB / 0.8841 GB, free: 15.42 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.7184, allocations: 143.8 kB / 0.8842 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003342/0.7188, allocations: 207.9 kB / 0.8844 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00411/0.7229, allocations: 2.363 MB / 0.8867 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/0.7229, allocations: 0 / 0.8867 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/0.7231, allocations: 79.98 kB / 0.8868 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.519e-05/0.7232, allocations: 74.7 kB / 0.8868 GB, free: 12.53 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004016/0.7272, allocations: 2.264 MB / 0.8891 GB, free: 10.26 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01088/0.7381, allocations: 5.787 MB / 0.8947 GB, free: 4.406 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00326/0.7413, allocations: 1.756 MB / 0.8964 GB, free: 2.637 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001812/0.7432, allocations: 0.9608 MB / 0.8974 GB, free: 1.676 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006061/0.7492, allocations: 2.991 MB / 0.9003 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001916/0.7511, allocations: 1.064 MB / 0.9013 GB, free: 13.58 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 4.268e-06/0.7511, allocations: 0 / 0.9013 GB, free: 13.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01247/0.7636, allocations: 5.951 MB / 0.9071 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.198e-05/0.7637, allocations: 102.9 kB / 0.9072 GB, free: 7.449 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001853/0.7655, allocations: 1.346 MB / 0.9085 GB, free: 6.098 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.7657, allocations: 57.7 kB / 0.9086 GB, free: 6.035 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008476/0.7665, allocations: 0.9467 MB / 0.9095 GB, free: 5.078 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006281/0.7671, allocations: 0.6971 MB / 0.9102 GB, free: 4.375 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004882/0.7676, allocations: 295.6 kB / 0.9105 GB, free: 4.078 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.7678, allocations: 309 kB / 0.9108 GB, free: 3.773 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.7691, allocations: 0.7413 MB / 0.9115 GB, free: 3.02 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.7707, allocations: 0.9028 MB / 0.9124 GB, free: 2.078 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00719/0.7779, allocations: 2.577 MB / 0.9149 GB, free: 15.45 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.7779, allocations: 0 / 0.9149 GB, free: 15.45 MB / 0.67 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005011/0.7829, allocations: 2.495 MB / 0.9173 GB, free: 12.91 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.783, allocations: 67.39 kB / 0.9174 GB, free: 12.83 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.783, allocations: 8 kB / 0.9174 GB, free: 12.82 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/0.7844, allocations: 465.3 kB / 0.9179 GB, free: 12.36 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.7857, allocations: 323.5 kB / 0.9182 GB, free: 12.05 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/0.7939, allocations: 6.084 MB / 0.9241 GB, free: 5.762 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.7952, allocations: 71.92 kB / 0.9242 GB, free: 5.691 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001826/0.7953, allocations: 67.97 kB / 0.9242 GB, free: 5.625 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.0009491/0.7963, allocations: 485.5 kB / 0.9247 GB, free: 5.141 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000502/0.7968, allocations: 218.6 kB / 0.9249 GB, free: 4.926 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005918/0.8027, allocations: 3.117 MB / 0.928 GB, free: 1.781 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-05/0.8027, allocations: 23.94 kB / 0.928 GB, free: 1.758 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.8027, allocations: 8 kB / 0.928 GB, free: 1.75 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.8028, allocations: 11.95 kB / 0.928 GB, free: 1.738 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008491/0.8113, allocations: 4.604 MB / 0.9325 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.8113, allocations: 4 kB / 0.9325 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.8125, allocations: 311.5 kB / 0.9328 GB, free: 12.75 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.8138, allocations: 481.4 kB / 0.9333 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/0.814, allocations: 71.95 kB / 0.9333 GB, free: 12.21 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008112/0.8221, allocations: 6.094 MB / 0.9393 GB, free: 5.91 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.8221, allocations: 7.938 kB / 0.9393 GB, free: 5.902 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006736/0.8288, allocations: 3.671 MB / 0.9429 GB, free: 2.191 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009988/0.8298, allocations: 414.4 kB / 0.9433 GB, free: 1.785 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002651/0.8301, allocations: 63.88 kB / 0.9433 GB, free: 1.723 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009521/0.8311, allocations: 59.97 kB / 0.9434 GB, free: 1.664 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/0.8314, allocations: 181.5 kB / 0.9436 GB, free: 1.484 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.8316, allocations: 75.95 kB / 0.9436 GB, free: 1.41 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001383/0.8329, allocations: 0.9601 MB / 0.9446 GB, free: 468 kB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8329, allocations: 0 / 0.9446 GB, free: 468 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00225/0.8352, allocations: 0.8973 MB / 0.9454 GB, free: 15.55 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.001457/0.8366, allocations: 0.9382 MB / 0.9464 GB, free: 14.61 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004457/0.8411, allocations: 2.372 MB / 0.9487 GB, free: 12.17 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.8411, allocations: 0 / 0.9487 GB, free: 12.17 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002776/0.8439, allocations: 1.443 MB / 0.9501 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.8466, allocations: 0.6198 MB / 0.9507 GB, free: 10.11 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007801/0.8544, allocations: 4.43 MB / 0.955 GB, free: 5.613 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.8556, allocations: 1.009 MB / 0.956 GB, free: 4.562 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007521/0.8563, allocations: 211.3 kB / 0.9562 GB, free: 4.355 MB / 0.7012 GB Notification: Performance of SimCode: time 1.283e-06/0.8564, allocations: 0 / 0.9562 GB, free: 4.355 MB / 0.7012 GB Notification: Performance of Templates: time 0.0793/0.9356, allocations: 62.13 MB / 1.017 GB, free: 6.316 MB / 0.7637 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1200] [Calling os._exit(0), Time elapsed: 12.559223185759038] Failed to read output from testmodel.py, exit status != 0: 0.9441211870871484 0.9585568839999999 0.248191709 Calling exit ...