Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.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.0009931/0.0009931, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001015/0.001015, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 18.57 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 0.92/0.92, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6512/0.6512, allocations: 118.6 MB / 378.6 MB, free: 1.52 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 483.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.801e-05, allocations: 7.5 kB / 483.6 MB, free: 8.215 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.007343/0.007371, allocations: 9.349 MB / 492.9 MB, free: 1.902 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.00995, allocations: 2.469 MB / 495.4 MB, free: 204 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003906/0.01034, allocations: 58.66 kB / 495.5 MB, free: 168 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004241/0.01076, allocations: 217.3 kB / 495.7 MB, free: 36 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.01188, allocations: 0.7031 MB / 496.4 MB, free: 15.55 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008888/0.01277, allocations: 0.5079 MB / 496.9 MB, free: 15.28 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.01423, allocations: 1.681 MB / 498.6 MB, free: 14.41 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002929/0.01452, allocations: 188 kB / 498.8 MB, free: 14.3 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.01564, allocations: 0.894 MB / 499.7 MB, free: 13.95 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005964/0.01624, allocations: 452.8 kB / 0.4884 GB, free: 13.8 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.01637, allocations: 79.69 kB / 0.4885 GB, free: 13.8 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003977/0.01676, allocations: 209.6 kB / 0.4887 GB, free: 13.76 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.01695, allocations: 218 kB / 0.4889 GB, free: 13.61 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004031/0.01736, allocations: 376.5 kB / 0.4892 GB, free: 13.47 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.01861, allocations: 1.015 MB / 0.4902 GB, free: 13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.01861, allocations: 1.062 kB / 0.4902 GB, free: 13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01861, allocations: 0 / 0.4902 GB, free: 13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.01864, allocations: 0 / 0.4902 GB, free: 13 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.001873/0.02051, allocations: 1.519 MB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.02055, allocations: 12.78 kB / 0.4917 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.02089, allocations: 210.4 kB / 0.4919 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009852/0.02187, allocations: 0.7952 MB / 0.4927 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.02191, allocations: 58.38 kB / 0.4927 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.355e-05/0.022, allocations: 88.98 kB / 0.4928 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008767/0.02288, allocations: 0.803 MB / 0.4936 GB, free: 9.922 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.0229, allocations: 3.938 kB / 0.4936 GB, free: 9.918 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.02294, allocations: 32.7 kB / 0.4936 GB, free: 9.887 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.02296, allocations: 20 kB / 0.4937 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005136/0.02347, allocations: 319 kB / 0.494 GB, free: 9.621 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002495/0.02597, allocations: 2.372 MB / 0.4963 GB, free: 7.516 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006052/0.02657, allocations: 450.3 kB / 0.4967 GB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.02679, allocations: 161.1 kB / 0.4969 GB, free: 6.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/0.02789, allocations: 0.8802 MB / 0.4977 GB, free: 6.203 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000405/0.02829, allocations: 457.2 kB / 0.4982 GB, free: 5.746 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 1.694e-06/0.0283, allocations: 4 kB / 0.4982 GB, free: 5.742 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001986/0.03028, allocations: 1.41 MB / 0.4995 GB, free: 4.391 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.03033, allocations: 112.1 kB / 0.4997 GB, free: 4.254 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.03086, allocations: 0.6847 MB / 0.5003 GB, free: 3.578 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.0309, allocations: 37.7 kB / 0.5004 GB, free: 3.535 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.03115, allocations: 0.5149 MB / 0.5009 GB, free: 3.012 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.03127, allocations: 218.1 kB / 0.5011 GB, free: 2.797 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.03139, allocations: 124 kB / 0.5012 GB, free: 2.668 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.03151, allocations: 0.5042 MB / 0.5017 GB, free: 2.156 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.03168, allocations: 123 kB / 0.5018 GB, free: 2.027 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.03195, allocations: 409.4 kB / 0.5022 GB, free: 1.531 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.03236, allocations: 410.2 kB / 0.5026 GB, free: 1.074 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.03236, allocations: 3.938 kB / 0.5026 GB, free: 1.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007103/0.03307, allocations: 0.6361 MB / 0.5032 GB, free: 420 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.0331, allocations: 33.7 kB / 0.5032 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.03311, allocations: 0 / 0.5032 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002941/0.03341, allocations: 103.8 kB / 0.5033 GB, free: 272 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.03367, allocations: 123.8 kB / 0.5035 GB, free: 148 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.03496, allocations: 2.096 MB / 0.5055 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.03517, allocations: 27.98 kB / 0.5055 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.03521, allocations: 27.98 kB / 0.5056 GB, free: 13.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.03539, allocations: 192.4 kB / 0.5057 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-05/0.03548, allocations: 115.4 kB / 0.5058 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007575/0.03624, allocations: 0.6067 MB / 0.5064 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.03624, allocations: 11.98 kB / 0.5064 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.03625, allocations: 0 / 0.5064 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.03625, allocations: 3.984 kB / 0.5065 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.03755, allocations: 1.191 MB / 0.5076 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.03756, allocations: 4 kB / 0.5076 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.03778, allocations: 95.88 kB / 0.5077 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.03801, allocations: 103.6 kB / 0.5078 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.03804, allocations: 19.98 kB / 0.5078 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.03921, allocations: 2.1 MB / 0.5099 GB, free: 9.215 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.03921, allocations: 4 kB / 0.5099 GB, free: 9.211 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008089/0.04002, allocations: 0.7746 MB / 0.5106 GB, free: 8.402 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.04017, allocations: 127.3 kB / 0.5108 GB, free: 8.277 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.04022, allocations: 16 kB / 0.5108 GB, free: 8.262 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.04041, allocations: 23.92 kB / 0.5108 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.0405, allocations: 60.39 kB / 0.5109 GB, free: 8.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/0.04053, allocations: 20.05 kB / 0.5109 GB, free: 8.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003281/0.04086, allocations: 454.9 kB / 0.5113 GB, free: 7.719 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.04086, allocations: 0 / 0.5113 GB, free: 7.719 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004404/0.0413, allocations: 223.9 kB / 0.5115 GB, free: 7.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002289/0.04153, allocations: 171.2 kB / 0.5117 GB, free: 7.324 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007522/0.04228, allocations: 0.6424 MB / 0.5123 GB, free: 6.641 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.04229, allocations: 0.6875 kB / 0.5123 GB, free: 6.641 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004193/0.04271, allocations: 412.9 kB / 0.5127 GB, free: 6.219 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/0.04353, allocations: 314.3 kB / 0.513 GB, free: 5.922 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.04601, allocations: 1.721 MB / 0.5147 GB, free: 4.145 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001227/0.04613, allocations: 179.6 kB / 0.5149 GB, free: 3.949 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002882/0.04642, allocations: 138.2 kB / 0.515 GB, free: 3.809 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.04655, allocations: 80.47 kB / 0.5151 GB, free: 3.73 MB / 442.7 MB Notification: Performance of SimCode: time 1.042e-06/0.04655, allocations: 0 / 0.5151 GB, free: 3.73 MB / 442.7 MB Notification: Performance of Templates: time 0.01445/0.061, allocations: 12.77 MB / 0.5275 GB, free: 7.316 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.871492975857109]