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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 104 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 190.4 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6517/0.6517, allocations: 89.5 MB / 380.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 83.88 kB / 459.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1095, allocations: 67.3 MB / 0.5146 GB, free: 7.164 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.395/0.5046, allocations: 224.7 MB / 0.7341 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.2837/0.7883, allocations: 24.88 MB / 0.7584 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001877/0.7902, allocations: 32.22 kB / 0.7584 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00356/0.7938, allocations: 1.647 MB / 0.76 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00585/0.7997, allocations: 2.524 MB / 0.7625 GB, free: 0.9609 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004722/0.8044, allocations: 1.912 MB / 0.7643 GB, free: 0.918 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004803/0.8092, allocations: 3.811 MB / 0.7681 GB, free: 0.918 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.8109, allocations: 1.104 MB / 0.7691 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002695/0.8136, allocations: 1.527 MB / 0.7706 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003292/0.8169, allocations: 2.066 MB / 0.7727 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005856/0.8175, allocations: 316 kB / 0.773 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007798/0.8253, allocations: 3.368 MB / 0.7762 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006829/0.826, allocations: 0.6369 MB / 0.7769 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.8282, allocations: 1.435 MB / 0.7783 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007725/0.8359, allocations: 4.536 MB / 0.7827 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.8359, allocations: 3.938 kB / 0.7827 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.452e-06/0.8359, allocations: 1.781 kB / 0.7827 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.571e-05/0.836, allocations: 0 / 0.7827 GB, free: 15.86 MB / 0.5919 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.006729/0.8427, allocations: 3.075 MB / 0.7857 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.8428, allocations: 9.812 kB / 0.7857 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005387/0.8433, allocations: 259 kB / 0.786 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001854/0.8452, allocations: 1.242 MB / 0.7872 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.66e-05/0.8453, allocations: 155.2 kB / 0.7873 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002911/0.8456, allocations: 204.5 kB / 0.7875 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003795/0.8494, allocations: 2.334 MB / 0.7898 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.901e-05/0.8495, allocations: 6.844 kB / 0.7898 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/0.8496, allocations: 78.89 kB / 0.7899 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.491e-05/0.8497, allocations: 74.91 kB / 0.79 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/0.8531, allocations: 2.238 MB / 0.7921 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01075/0.8638, allocations: 10.15 MB / 0.802 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002775/0.8666, allocations: 1.914 MB / 0.8039 GB, free: 8.336 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.8682, allocations: 1.054 MB / 0.8049 GB, free: 8.316 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006704/0.8749, allocations: 6.61 MB / 0.8114 GB, free: 3.777 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001644/0.8766, allocations: 1.067 MB / 0.8124 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=193): time 3.376e-06/0.8766, allocations: 0.8438 kB / 0.8124 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of matching and sorting (n=198): time 0.01268/0.8893, allocations: 6.376 MB / 0.8187 GB, free: 1.613 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.8894, allocations: 107.8 kB / 0.8188 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/0.8915, allocations: 1.13 MB / 0.8199 GB, free: 1.211 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001643/0.8917, allocations: 61.02 kB / 0.8199 GB, free: 1.18 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008643/0.8926, allocations: 0.7908 MB / 0.8207 GB, free: 0.7812 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006839/0.8933, allocations: 0.6538 MB / 0.8213 GB, free: 304 kB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007015/0.894, allocations: 296.4 kB / 0.8216 GB, free: 232 kB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.8941, allocations: 310.2 kB / 0.8219 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/0.8961, allocations: 0.6853 MB / 0.8226 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/0.8982, allocations: 0.8418 MB / 0.8234 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009414/0.9076, allocations: 2.568 MB / 0.8259 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-06/0.9076, allocations: 3.906 kB / 0.8259 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006607/0.9142, allocations: 2.418 MB / 0.8283 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.536e-05/0.9143, allocations: 60.38 kB / 0.8283 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.9143, allocations: 0 / 0.8283 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/0.9164, allocations: 471.5 kB / 0.8288 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.9183, allocations: 327.5 kB / 0.8291 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008695/0.927, allocations: 6.451 MB / 0.8354 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.9286, allocations: 63.94 kB / 0.8355 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003331/0.929, allocations: 74.03 kB / 0.8355 GB, free: 4.188 MB / 0.6075 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.001141/0.9301, allocations: 460 kB / 0.836 GB, free: 3.75 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004907/0.9306, allocations: 169.9 kB / 0.8361 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005924/0.9365, allocations: 3.115 MB / 0.8392 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/0.9366, allocations: 20 kB / 0.8392 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/0.9366, allocations: 8 kB / 0.8392 GB, free: 500 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/0.9366, allocations: 11.95 kB / 0.8392 GB, free: 488 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008506/0.9451, allocations: 5.137 MB / 0.8442 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.9452, allocations: 4 kB / 0.8442 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/0.9464, allocations: 310.6 kB / 0.8445 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/0.9478, allocations: 0.4895 MB / 0.845 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000158/0.9479, allocations: 67.95 kB / 0.8451 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007452/0.9554, allocations: 6.47 MB / 0.8514 GB, free: 3.766 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.9554, allocations: 3.094 kB / 0.8514 GB, free: 3.766 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006068/0.9615, allocations: 3.643 MB / 0.855 GB, free: 104 kB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008777/0.9624, allocations: 470.4 kB / 0.8554 GB, free: 15.63 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.9626, allocations: 51.91 kB / 0.8555 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009762/0.9636, allocations: 63.89 kB / 0.8555 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/0.9639, allocations: 176.7 kB / 0.8557 GB, free: 15.35 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.9641, allocations: 71.95 kB / 0.8558 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001089/0.9652, allocations: 0.8298 MB / 0.8566 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9652, allocations: 0 / 0.8566 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002327/0.9675, allocations: 0.8941 MB / 0.8574 GB, free: 13.55 MB / 0.6387 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.001368/0.9689, allocations: 0.9172 MB / 0.8583 GB, free: 12.73 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004053/0.973, allocations: 2.417 MB / 0.8607 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.973, allocations: 3.938 kB / 0.8607 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.9756, allocations: 1.54 MB / 0.8622 GB, free: 8.77 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/0.9781, allocations: 0.6338 MB / 0.8628 GB, free: 8.199 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00629/0.9844, allocations: 3.982 MB / 0.8667 GB, free: 4.199 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.9855, allocations: 1.478 MB / 0.8682 GB, free: 2.684 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001296/0.9868, allocations: 396.3 kB / 0.8685 GB, free: 2.324 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.9873, allocations: 171.4 kB / 0.8687 GB, free: 2.16 MB / 0.6387 GB Notification: Performance of SimCode: time 5.91e-07/0.9873, allocations: 0 / 0.8687 GB, free: 2.16 MB / 0.6387 GB Notification: Performance of Templates: time 0.06276/1.05, allocations: 44.78 MB / 0.9124 GB, free: 5.965 MB / 0.6856 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile (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 & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches