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.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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_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_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002175/0.002175, allocations: 195.7 kB / 16.53 MB, free: 6.656 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.626/1.626, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 1.011/1.011, allocations: 89.48 MB / 379.9 MB, free: 11 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 86.16 kB / 458.2 MB, free: 23.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1973, allocations: 67.3 MB / 0.5132 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03094/0.2284, allocations: 30.74 MB / 0.5432 GB, free: 13.58 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.2406, allocations: 9.636 MB / 0.5526 GB, free: 3.914 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/FlowControl/BasicControlValve.mo:22:3-23:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/FlowControl/BasicControlValve.mo:26:3-27:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.2421, allocations: 19.88 kB / 0.5526 GB, free: 3.895 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.2438, allocations: 0.5241 MB / 0.5531 GB, free: 3.367 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003013/0.2468, allocations: 0.7529 MB / 0.5539 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002312/0.2491, allocations: 0.6842 MB / 0.5545 GB, free: 1.926 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002055/0.2512, allocations: 1.381 MB / 0.5559 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004961/0.2517, allocations: 289.6 kB / 0.5562 GB, free: 248 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.2528, allocations: 0.5642 MB / 0.5567 GB, free: 15.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006131/0.2534, allocations: 0.5095 MB / 0.5572 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.2535, allocations: 80 kB / 0.5573 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001855/0.2554, allocations: 0.5112 MB / 0.5578 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.2556, allocations: 203.1 kB / 0.558 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005125/0.2561, allocations: 0.4897 MB / 0.5585 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001872/0.258, allocations: 1.25 MB / 0.5597 GB, free: 12.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.258, allocations: 7.938 kB / 0.5597 GB, free: 12.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.258, allocations: 0 / 0.5597 GB, free: 12.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.2581, allocations: 0 / 0.5597 GB, free: 12.62 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: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.002587/0.2606, allocations: 1.308 MB / 0.561 GB, free: 11.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.2607, allocations: 12.03 kB / 0.561 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.261, allocations: 111.7 kB / 0.5611 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007794/0.2618, allocations: 0.5403 MB / 0.5616 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/0.2619, allocations: 62.38 kB / 0.5617 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.262, allocations: 80.12 kB / 0.5617 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.2633, allocations: 0.7954 MB / 0.5625 GB, free: 9.602 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.2633, allocations: 0 / 0.5625 GB, free: 9.602 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.024e-05/0.2634, allocations: 32 kB / 0.5626 GB, free: 9.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.2634, allocations: 19.94 kB / 0.5626 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.2646, allocations: 0.6441 MB / 0.5632 GB, free: 8.906 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004505/0.2691, allocations: 3.718 MB / 0.5668 GB, free: 4.824 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.2703, allocations: 0.5775 MB / 0.5674 GB, free: 4.242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.2708, allocations: 291.8 kB / 0.5677 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002816/0.2736, allocations: 2.531 MB / 0.5701 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007115/0.2743, allocations: 381.7 kB / 0.5705 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.835e-06/0.2743, allocations: 0 / 0.5705 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003978/0.2783, allocations: 1.9 MB / 0.5724 GB, free: 14.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.2784, allocations: 89.67 kB / 0.5724 GB, free: 14.56 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/FlowControl/BasicControlValve.mo:26:3-27:92:writable] Warning: Parameter valveLinear.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter valveLinear.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/FlowControl/BasicControlValve.mo:22:3-23:88:writable] Warning: Parameter valveLinear.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000801/0.2792, allocations: 0.543 MB / 0.573 GB, free: 14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/0.2793, allocations: 37.7 kB / 0.573 GB, free: 13.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.2797, allocations: 391.9 kB / 0.5734 GB, free: 13.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.2799, allocations: 228.7 kB / 0.5736 GB, free: 13.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.2801, allocations: 122.7 kB / 0.5737 GB, free: 13.22 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.2803, allocations: 378.8 kB / 0.5741 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004334/0.2808, allocations: 217.8 kB / 0.5743 GB, free: 12.63 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.2813, allocations: 324 kB / 0.5746 GB, free: 12.28 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009898/0.2823, allocations: 0.5614 MB / 0.5752 GB, free: 11.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2824, allocations: 0 / 0.5752 GB, free: 11.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001526/0.2839, allocations: 0.8032 MB / 0.5759 GB, free: 10.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.077e-05/0.2839, allocations: 29.7 kB / 0.576 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.978e-05/0.284, allocations: 4 kB / 0.576 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004128/0.2844, allocations: 101 kB / 0.5761 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/0.2849, allocations: 135.8 kB / 0.5762 GB, free: 10.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/0.2873, allocations: 1.981 MB / 0.5781 GB, free: 8.461 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004297/0.2877, allocations: 32.02 kB / 0.5782 GB, free: 8.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-05/0.2878, allocations: 28 kB / 0.5782 GB, free: 8.402 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 (74): * Single equations (assignments): 72 * 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.0004567/0.2883, allocations: 217.6 kB / 0.5784 GB, free: 8.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.2884, allocations: 67.16 kB / 0.5785 GB, free: 8.113 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.2901, allocations: 0.8528 MB / 0.5793 GB, free: 7.234 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.2901, allocations: 8 kB / 0.5793 GB, free: 7.227 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2901, allocations: 0 / 0.5793 GB, free: 7.227 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.2902, allocations: 3.984 kB / 0.5793 GB, free: 7.223 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/0.2927, allocations: 1.574 MB / 0.5808 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.2927, allocations: 4 kB / 0.5808 GB, free: 5.574 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/0.2932, allocations: 111.8 kB / 0.5809 GB, free: 5.465 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003213/0.2935, allocations: 104.9 kB / 0.581 GB, free: 5.359 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.2936, allocations: 15.98 kB / 0.5811 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.2957, allocations: 1.985 MB / 0.583 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2957, allocations: 0 / 0.583 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.2975, allocations: 1.069 MB / 0.584 GB, free: 2.121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.2978, allocations: 196.2 kB / 0.5842 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.905e-05/0.2979, allocations: 12.28 kB / 0.5842 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003918/0.2983, allocations: 31.95 kB / 0.5843 GB, free: 1.867 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.2985, allocations: 68.36 kB / 0.5843 GB, free: 1.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-05/0.2985, allocations: 27.92 kB / 0.5844 GB, free: 1.773 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005283/0.2991, allocations: 391.1 kB / 0.5847 GB, free: 1.395 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.2991, allocations: 4 kB / 0.5847 GB, free: 1.391 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001132/0.3002, allocations: 271.9 kB / 0.585 GB, free: 1.125 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.000774/0.301, allocations: 358.8 kB / 0.5853 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.3951/0.6962, allocations: 0.7914 MB / 0.5861 GB, free: 74.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.615e-05/0.6963, allocations: 1.938 kB / 0.5861 GB, free: 74.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.6979, allocations: 466.6 kB / 0.5866 GB, free: 74.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.6997, allocations: 238.3 kB / 0.5868 GB, free: 74.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.7041, allocations: 1.679 MB / 0.5884 GB, free: 74.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008862/0.705, allocations: 0.9591 MB / 0.5894 GB, free: 73.49 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008231/0.7058, allocations: 132.3 kB / 0.5895 GB, free: 73.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.7061, allocations: 67.48 kB / 0.5896 GB, free: 73.45 MB / 462.1 MB Notification: Performance of SimCode: time 2.505e-06/0.7061, allocations: 0 / 0.5896 GB, free: 73.45 MB / 462.1 MB Notification: Performance of Templates: time 0.03946/0.7455, allocations: 13.61 MB / 0.6028 GB, free: 70 MB / 462.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile (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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches