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.001583/0.001583, allocations: 103.6 kB / 18.95 MB, free: 2.812 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.001852/0.001852, allocations: 213.6 kB / 22.25 MB, free: 5.105 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.432/1.432, allocations: 230.6 MB / 256 MB, free: 7.824 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.7694/0.7694, allocations: 100.9 MB / 413.3 MB, free: 2.965 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.002628/0.002628, allocations: 89 kB / 0.5646 GB, free: 35.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1098, allocations: 74.61 MB / 0.6374 GB, free: 6.023 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5048/0.6146, allocations: 199 MB / 0.8317 GB, free: 6.891 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03006/0.6446, allocations: 22.89 MB / 0.8541 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.6473, allocations: 117.6 kB / 0.8542 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004301/0.6516, allocations: 1.451 MB / 0.8556 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007393/0.659, allocations: 2.632 MB / 0.8582 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005338/0.6643, allocations: 1.923 MB / 0.86 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005261/0.6696, allocations: 4.092 MB / 0.864 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001334/0.6709, allocations: 0.6496 MB / 0.8647 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003004/0.6739, allocations: 1.729 MB / 0.8664 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003655/0.6776, allocations: 2 MB / 0.8683 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0007669/0.6783, allocations: 312 kB / 0.8686 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006992/0.6853, allocations: 2.949 MB / 0.8715 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0008519/0.6862, allocations: 0.6539 MB / 0.8721 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002024/0.6882, allocations: 1.233 MB / 0.8733 GB, free: 9.754 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.008271/0.6965, allocations: 4.804 MB / 0.878 GB, free: 4.934 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.6965, allocations: 0 / 0.878 GB, free: 4.934 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.904e-06/0.6965, allocations: 0 / 0.878 GB, free: 4.934 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.386e-05/0.6966, allocations: 0 / 0.878 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.007252/0.7038, allocations: 3.392 MB / 0.8813 GB, free: 1.48 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.7038, allocations: 13.47 kB / 0.8814 GB, free: 1.469 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007081/0.7046, allocations: 322 kB / 0.8817 GB, free: 1.152 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003342/0.7079, allocations: 1.692 MB / 0.8833 GB, free: 15.42 MB / 0.6388 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.708, allocations: 151.8 kB / 0.8835 GB, free: 15.27 MB / 0.6388 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003625/0.7084, allocations: 203.9 kB / 0.8837 GB, free: 15.07 MB / 0.6388 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004296/0.7127, allocations: 2.352 MB / 0.8859 GB, free: 12.69 MB / 0.6388 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.113e-05/0.7127, allocations: 4 kB / 0.886 GB, free: 12.69 MB / 0.6388 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.7129, allocations: 79.98 kB / 0.886 GB, free: 12.61 MB / 0.6388 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-05/0.713, allocations: 78.64 kB / 0.8861 GB, free: 12.53 MB / 0.6388 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004239/0.7172, allocations: 2.268 MB / 0.8883 GB, free: 10.25 MB / 0.6388 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01154/0.7288, allocations: 5.781 MB / 0.894 GB, free: 4.41 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003398/0.7322, allocations: 1.767 MB / 0.8957 GB, free: 2.629 MB / 0.6388 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001882/0.7341, allocations: 0.9646 MB / 0.8966 GB, free: 1.664 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00628/0.7403, allocations: 2.991 MB / 0.8996 GB, free: 14.65 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001972/0.7423, allocations: 1.064 MB / 0.9006 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=193): time 4.549e-06/0.7423, allocations: 0 / 0.9006 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of matching and sorting (n=198): time 0.01311/0.7554, allocations: 5.946 MB / 0.9064 GB, free: 7.562 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.29e-05/0.7555, allocations: 102.9 kB / 0.9065 GB, free: 7.441 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.7576, allocations: 1.35 MB / 0.9078 GB, free: 6.086 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001788/0.7578, allocations: 65.64 kB / 0.9079 GB, free: 6.016 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008825/0.7587, allocations: 0.9467 MB / 0.9088 GB, free: 5.059 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007168/0.7594, allocations: 0.6893 MB / 0.9095 GB, free: 4.363 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005556/0.7599, allocations: 295.6 kB / 0.9098 GB, free: 4.066 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.7601, allocations: 313.1 kB / 0.9101 GB, free: 3.758 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.7615, allocations: 0.7335 MB / 0.9108 GB, free: 3.012 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.7632, allocations: 0.899 MB / 0.9117 GB, free: 2.074 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007328/0.7705, allocations: 2.582 MB / 0.9142 GB, free: 15.43 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.7705, allocations: 0 / 0.9142 GB, free: 15.43 MB / 0.67 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005285/0.7758, allocations: 2.499 MB / 0.9166 GB, free: 12.89 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.02e-05/0.7759, allocations: 67.39 kB / 0.9167 GB, free: 12.82 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.7759, allocations: 0 / 0.9167 GB, free: 12.82 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.7774, allocations: 471.1 kB / 0.9171 GB, free: 12.35 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.7787, allocations: 320.5 kB / 0.9174 GB, free: 12.04 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008714/0.7874, allocations: 6.09 MB / 0.9234 GB, free: 5.75 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.7887, allocations: 71.95 kB / 0.9234 GB, free: 5.68 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/0.789, allocations: 71.97 kB / 0.9235 GB, free: 5.609 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.001113/0.7901, allocations: 473.6 kB / 0.924 GB, free: 5.137 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006357/0.7908, allocations: 218.6 kB / 0.9242 GB, free: 4.922 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006439/0.7972, allocations: 3.117 MB / 0.9272 GB, free: 1.777 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.7972, allocations: 23.94 kB / 0.9272 GB, free: 1.754 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.7972, allocations: 8 kB / 0.9273 GB, free: 1.746 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/0.7973, allocations: 11.95 kB / 0.9273 GB, free: 1.734 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009639/0.8069, allocations: 4.604 MB / 0.9318 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.8069, allocations: 0 / 0.9318 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.8082, allocations: 319.5 kB / 0.9321 GB, free: 12.75 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/0.8097, allocations: 489.4 kB / 0.9325 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/0.8099, allocations: 63.95 kB / 0.9326 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008624/0.8185, allocations: 6.104 MB / 0.9386 GB, free: 5.891 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.8185, allocations: 4.031 kB / 0.9386 GB, free: 5.887 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007338/0.8259, allocations: 3.667 MB / 0.9421 GB, free: 2.18 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.827, allocations: 422.4 kB / 0.9425 GB, free: 1.766 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003913/0.8274, allocations: 47.94 kB / 0.9426 GB, free: 1.719 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.8285, allocations: 63.97 kB / 0.9426 GB, free: 1.656 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003892/0.8289, allocations: 189.5 kB / 0.9428 GB, free: 1.469 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000173/0.8291, allocations: 75.94 kB / 0.9429 GB, free: 1.395 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001586/0.8307, allocations: 0.9523 MB / 0.9438 GB, free: 460 kB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8307, allocations: 0 / 0.9438 GB, free: 460 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002606/0.8333, allocations: 0.9011 MB / 0.9447 GB, free: 15.54 MB / 0.7013 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.001739/0.835, allocations: 0.9382 MB / 0.9456 GB, free: 14.6 MB / 0.7013 GB Notification: Performance of simCode: created initialization part: time 0.004797/0.8398, allocations: 2.36 MB / 0.9479 GB, free: 12.18 MB / 0.7013 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.8398, allocations: 0 / 0.9479 GB, free: 12.18 MB / 0.7013 GB Notification: Performance of simCode: created simulation system equations: time 0.002991/0.8428, allocations: 1.459 MB / 0.9494 GB, free: 10.7 MB / 0.7013 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002968/0.8458, allocations: 0.6217 MB / 0.95 GB, free: 10.1 MB / 0.7013 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008809/0.8546, allocations: 4.39 MB / 0.9542 GB, free: 5.648 MB / 0.7013 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.8562, allocations: 1.013 MB / 0.9552 GB, free: 4.594 MB / 0.7013 GB Notification: Performance of simCode: alias equations: time 0.001599/0.8578, allocations: 425.5 kB / 0.9556 GB, free: 4.195 MB / 0.7013 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006044/0.8584, allocations: 187.4 kB / 0.9558 GB, free: 4.012 MB / 0.7013 GB Notification: Performance of SimCode: time 6.71e-07/0.8584, allocations: 0 / 0.9558 GB, free: 4.012 MB / 0.7013 GB Notification: Performance of Templates: time 0.08073/0.9391, allocations: 49.5 MB / 1.004 GB, free: 3.148 MB / 0.7481 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] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.722833318635821]