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.002461/0.002461, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002569/0.00257, allocations: 197.2 kB / 16.14 MB, free: 6.734 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.438/1.438, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6797/0.6797, allocations: 91.21 MB / 381.2 MB, free: 9.609 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 78.16 kB / 459.6 MB, free: 23.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1207, allocations: 67.69 MB / 0.515 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5132/0.634, allocations: 224.9 MB / 0.7346 GB, free: 15.15 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03387/0.6679, allocations: 25.47 MB / 0.7595 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003622/0.6716, allocations: 99.31 kB / 0.7596 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.005047/0.6767, allocations: 1.493 MB / 0.761 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007651/0.6844, allocations: 2.417 MB / 0.7634 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00561/0.69, allocations: 1.644 MB / 0.765 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006414/0.6965, allocations: 4.748 MB / 0.7696 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00231/0.6988, allocations: 1.024 MB / 0.7706 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00329/0.7021, allocations: 1.431 MB / 0.772 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003688/0.7058, allocations: 2.059 MB / 0.774 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001444/0.7073, allocations: 172 kB / 0.7742 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009109/0.7165, allocations: 3.224 MB / 0.7773 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.7177, allocations: 0.5251 MB / 0.7778 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003171/0.7209, allocations: 1.372 MB / 0.7792 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.7309, allocations: 4.542 MB / 0.7836 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.731, allocations: 0 / 0.7836 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.353e-06/0.731, allocations: 0 / 0.7836 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001621/0.7312, allocations: 0 / 0.7836 GB, free: 12.73 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.0101/0.7413, allocations: 3.339 MB / 0.7869 GB, free: 9.309 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.7414, allocations: 8.031 kB / 0.7869 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001119/0.7425, allocations: 288.5 kB / 0.7872 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003273/0.7458, allocations: 1.644 MB / 0.7888 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.746, allocations: 143.8 kB / 0.7889 GB, free: 7.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005481/0.7465, allocations: 207.9 kB / 0.7891 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005305/0.7518, allocations: 2.336 MB / 0.7914 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.455e-05/0.7519, allocations: 0 / 0.7914 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002726/0.7522, allocations: 76 kB / 0.7915 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.682e-05/0.7523, allocations: 78.69 kB / 0.7915 GB, free: 4.461 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004494/0.7568, allocations: 2.237 MB / 0.7937 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/0.7713, allocations: 10.26 MB / 0.8037 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003553/0.7749, allocations: 1.907 MB / 0.8056 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.7769, allocations: 1.066 MB / 0.8066 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008203/0.7852, allocations: 6.599 MB / 0.8131 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002078/0.7873, allocations: 1.072 MB / 0.8141 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=193): time 4.749e-06/0.7873, allocations: 0 / 0.8141 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=198): time 0.01418/0.8015, allocations: 6.506 MB / 0.8205 GB, free: 4.785 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.8016, allocations: 98.98 kB / 0.8206 GB, free: 4.668 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/0.804, allocations: 1.399 MB / 0.8219 GB, free: 3.266 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0003353/0.8043, allocations: 65.69 kB / 0.822 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007617/0.8051, allocations: 0.9221 MB / 0.8229 GB, free: 2.262 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008293/0.8059, allocations: 0.6506 MB / 0.8235 GB, free: 1.602 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007377/0.8067, allocations: 303.4 kB / 0.8238 GB, free: 1.301 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.8068, allocations: 309.1 kB / 0.8241 GB, free: 0.9961 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.8084, allocations: 0.6833 MB / 0.8248 GB, free: 320 kB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2443/1.053, allocations: 0.8461 MB / 0.8256 GB, free: 240.8 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008751/1.062, allocations: 2.565 MB / 0.8281 GB, free: 240.4 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/1.062, allocations: 0.9688 kB / 0.8281 GB, free: 240.4 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006246/1.068, allocations: 2.439 MB / 0.8305 GB, free: 239.5 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.309e-05/1.068, allocations: 64.78 kB / 0.8306 GB, free: 239.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/1.068, allocations: 3.203 kB / 0.8306 GB, free: 239.4 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/1.07, allocations: 475.1 kB / 0.831 GB, free: 239.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/1.071, allocations: 315.7 kB / 0.8313 GB, free: 239.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006868/1.078, allocations: 5.938 MB / 0.8371 GB, free: 234.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/1.08, allocations: 132.5 kB / 0.8373 GB, free: 234.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003465/1.08, allocations: 70.88 kB / 0.8373 GB, free: 234.9 MB / 0.6231 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.001196/1.082, allocations: 485.3 kB / 0.8378 GB, free: 234.6 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000587/1.082, allocations: 202.4 kB / 0.838 GB, free: 234.6 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006211/1.088, allocations: 3.135 MB / 0.841 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/1.088, allocations: 21.78 kB / 0.8411 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.245e-05/1.088, allocations: 6.625 kB / 0.8411 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.442e-05/1.089, allocations: 9.844 kB / 0.8411 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/1.099, allocations: 5.246 MB / 0.8462 GB, free: 230.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/1.099, allocations: 0 / 0.8462 GB, free: 230.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/1.1, allocations: 313.7 kB / 0.8465 GB, free: 230.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001667/1.102, allocations: 497.2 kB / 0.847 GB, free: 230.6 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002687/1.102, allocations: 66.67 kB / 0.847 GB, free: 230.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007553/1.11, allocations: 5.944 MB / 0.8528 GB, free: 226.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.11, allocations: 2.906 kB / 0.8528 GB, free: 226.3 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007316/1.117, allocations: 3.682 MB / 0.8564 GB, free: 224.5 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/1.118, allocations: 493.7 kB / 0.8569 GB, free: 224.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005055/1.118, allocations: 53.12 kB / 0.857 GB, free: 224.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/1.12, allocations: 127.7 kB / 0.8571 GB, free: 224.1 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004495/1.121, allocations: 171.5 kB / 0.8572 GB, free: 224 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.121, allocations: 75.19 kB / 0.8573 GB, free: 224 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001724/1.122, allocations: 0.9989 MB / 0.8583 GB, free: 223.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/1.122, allocations: 1.188 kB / 0.8583 GB, free: 223.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00309/1.126, allocations: 0.8884 MB / 0.8592 GB, free: 223.5 MB / 0.6231 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.001887/1.127, allocations: 0.935 MB / 0.8601 GB, free: 223.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004551/1.132, allocations: 2.408 MB / 0.8624 GB, free: 222.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/1.132, allocations: 3.969 kB / 0.8624 GB, free: 222.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002898/1.135, allocations: 1.536 MB / 0.8639 GB, free: 221.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003822/1.139, allocations: 0.619 MB / 0.8645 GB, free: 221.2 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007878/1.147, allocations: 5.282 MB / 0.8697 GB, free: 217.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/1.148, allocations: 1.574 MB / 0.8712 GB, free: 216.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001914/1.15, allocations: 438 kB / 0.8716 GB, free: 216.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000714/1.151, allocations: 183.4 kB / 0.8718 GB, free: 216.3 MB / 0.6231 GB Notification: Performance of SimCode: time 8.32e-07/1.151, allocations: 0 / 0.8718 GB, free: 216.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.05861/1.209, allocations: 43.9 MB / 0.9147 GB, free: 173.8 MB / 0.6231 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches