Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.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.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.003759/0.003759, allocations: 194.9 kB / 16.14 MB, free: 6.684 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.773/1.773, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8073/0.8073, allocations: 93.71 MB / 383.7 MB, free: 7.145 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 81.78 kB / 462.7 MB, free: 22.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.155, allocations: 68.26 MB / 0.5185 GB, free: 7.449 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03058/0.1856, allocations: 31.55 MB / 0.5493 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.1972, allocations: 9.825 MB / 0.5589 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.199, allocations: 47.69 kB / 0.559 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.2004, allocations: 473.5 kB / 0.5594 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002408/0.2029, allocations: 0.7301 MB / 0.5602 GB, free: 12.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.2048, allocations: 0.6271 MB / 0.5608 GB, free: 12.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002032/0.2068, allocations: 1.723 MB / 0.5624 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004441/0.2073, allocations: 278 kB / 0.5627 GB, free: 10.03 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.2083, allocations: 0.5677 MB / 0.5633 GB, free: 9.461 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005597/0.2089, allocations: 0.5208 MB / 0.5638 GB, free: 8.938 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.209, allocations: 52 kB / 0.5638 GB, free: 8.887 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.2106, allocations: 499.5 kB / 0.5643 GB, free: 8.398 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.2108, allocations: 171.1 kB / 0.5645 GB, free: 8.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005271/0.2114, allocations: 0.5011 MB / 0.565 GB, free: 7.727 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001727/0.2131, allocations: 1.293 MB / 0.5662 GB, free: 6.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2131, allocations: 0 / 0.5662 GB, free: 6.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2131, allocations: 0 / 0.5662 GB, free: 6.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2131, allocations: 0 / 0.5662 GB, free: 6.43 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002631/0.2158, allocations: 1.417 MB / 0.5676 GB, free: 4.953 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.2158, allocations: 8.031 kB / 0.5676 GB, free: 4.945 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002896/0.2161, allocations: 135.4 kB / 0.5677 GB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009984/0.2171, allocations: 0.6924 MB / 0.5684 GB, free: 4.078 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.938e-05/0.2172, allocations: 58 kB / 0.5685 GB, free: 4.023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.2173, allocations: 75.91 kB / 0.5685 GB, free: 3.949 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.2187, allocations: 0.7954 MB / 0.5693 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.2187, allocations: 0 / 0.5693 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.2188, allocations: 28 kB / 0.5693 GB, free: 3.105 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.2188, allocations: 16 kB / 0.5694 GB, free: 3.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2199, allocations: 0.6285 MB / 0.57 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004487/0.2244, allocations: 3.718 MB / 0.5736 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.2256, allocations: 0.588 MB / 0.5742 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004904/0.2261, allocations: 280 kB / 0.5744 GB, free: 13.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002775/0.2289, allocations: 2.543 MB / 0.5769 GB, free: 10.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006989/0.2296, allocations: 365.9 kB / 0.5773 GB, free: 10.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 2.364e-06/0.2296, allocations: 3.938 kB / 0.5773 GB, free: 10.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.003884/0.2335, allocations: 1.939 MB / 0.5792 GB, free: 8.176 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.2336, allocations: 89.67 kB / 0.5793 GB, free: 8.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000737/0.2344, allocations: 0.6259 MB / 0.5799 GB, free: 7.434 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.2344, allocations: 37.7 kB / 0.5799 GB, free: 7.391 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003479/0.2348, allocations: 443.9 kB / 0.5803 GB, free: 6.953 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.235, allocations: 232.7 kB / 0.5806 GB, free: 6.723 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.2352, allocations: 118.3 kB / 0.5807 GB, free: 6.602 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2353, allocations: 334 kB / 0.581 GB, free: 6.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004302/0.2357, allocations: 213.5 kB / 0.5812 GB, free: 6.062 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/0.2362, allocations: 323.5 kB / 0.5815 GB, free: 5.707 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009456/0.2372, allocations: 0.5691 MB / 0.5821 GB, free: 5.102 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2372, allocations: 0 / 0.5821 GB, free: 5.102 MB / 462.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001449/0.2387, allocations: 0.7991 MB / 0.5828 GB, free: 4.285 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.312e-05/0.2387, allocations: 37.7 kB / 0.5829 GB, free: 4.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.2387, allocations: 4.266 kB / 0.5829 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.2391, allocations: 96.73 kB / 0.583 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005023/0.2396, allocations: 135.8 kB / 0.5831 GB, free: 4.008 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.2422, allocations: 1.828 MB / 0.5849 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005151/0.2427, allocations: 51.98 kB / 0.5849 GB, free: 1.996 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.219e-05/0.2428, allocations: 27.98 kB / 0.585 GB, free: 1.969 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (73): * Single equations (assignments): 71 * 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.0003766/0.2432, allocations: 217.8 kB / 0.5852 GB, free: 1.746 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.2433, allocations: 82.97 kB / 0.5852 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001628/0.245, allocations: 0.8622 MB / 0.5861 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.245, allocations: 8 kB / 0.5861 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.245, allocations: 4 kB / 0.5861 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.245, allocations: 3.984 kB / 0.5861 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2841/0.5291, allocations: 1.613 MB / 0.5877 GB, free: 70.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.5292, allocations: 1.438 kB / 0.5877 GB, free: 70.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/0.5297, allocations: 111.1 kB / 0.5878 GB, free: 70.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004059/0.5301, allocations: 104.4 kB / 0.5879 GB, free: 70.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.5302, allocations: 24.58 kB / 0.5879 GB, free: 70.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.532, allocations: 1.827 MB / 0.5897 GB, free: 68.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.532, allocations: 6.766 kB / 0.5897 GB, free: 68.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/0.5341, allocations: 1.077 MB / 0.5907 GB, free: 68.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003508/0.5344, allocations: 208.7 kB / 0.5909 GB, free: 68.28 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.5346, allocations: 18.86 kB / 0.591 GB, free: 68.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/0.5351, allocations: 50.09 kB / 0.591 GB, free: 68.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.5352, allocations: 58.84 kB / 0.5911 GB, free: 68.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.5353, allocations: 28.39 kB / 0.5911 GB, free: 68.24 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006585/0.536, allocations: 453.8 kB / 0.5915 GB, free: 68.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.536, allocations: 0.8125 kB / 0.5915 GB, free: 68.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001048/0.537, allocations: 278.8 kB / 0.5918 GB, free: 68.01 MB / 462.1 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 (55): * Single equations (assignments): 52 * 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.0005841/0.5376, allocations: 362.5 kB / 0.5921 GB, free: 67.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.5392, allocations: 0.7733 MB / 0.5929 GB, free: 67.53 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.5392, allocations: 0.8438 kB / 0.5929 GB, free: 67.53 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008649/0.5401, allocations: 478.3 kB / 0.5934 GB, free: 67.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.5412, allocations: 212.7 kB / 0.5936 GB, free: 67.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/0.5445, allocations: 2.165 MB / 0.5957 GB, free: 66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005174/0.545, allocations: 0.9991 MB / 0.5966 GB, free: 65.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005382/0.5456, allocations: 152.1 kB / 0.5968 GB, free: 65.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.5458, allocations: 77.81 kB / 0.5969 GB, free: 65.21 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5458, allocations: 0 / 0.5969 GB, free: 65.21 MB / 462.1 MB Notification: Performance of Templates: time 0.02426/0.57, allocations: 13.36 MB / 0.6099 GB, free: 61.26 MB / 462.1 MB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches