Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009816/0.0009816, allocations: 169.7 kB / 16.1 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205 MB / 221.9 MB, free: 9.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008243/0.0008243, allocations: 92.5 kB / 269.9 MB, free: 8.652 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.731/0.731, allocations: 90.51 MB / 408.3 MB, free: 3.934 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002975/0.0002975, allocations: 8 kB / 484.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3076, allocations: 65.81 MB / 0.5377 GB, free: 34.99 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02326/0.3309, allocations: 30.41 MB / 0.5674 GB, free: 8.492 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.009067/0.34, allocations: 9.586 MB / 0.5768 GB, free: 14.87 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.3412, allocations: 19.88 kB / 0.5768 GB, free: 14.85 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.3425, allocations: 473.6 kB / 0.5773 GB, free: 14.39 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002039/0.3446, allocations: 0.6874 MB / 0.5779 GB, free: 13.7 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.3463, allocations: 0.625 MB / 0.5786 GB, free: 13.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001602/0.3479, allocations: 1.623 MB / 0.5801 GB, free: 11.44 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003483/0.3483, allocations: 253.6 kB / 0.5804 GB, free: 11.19 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007267/0.349, allocations: 485.9 kB / 0.5808 GB, free: 10.71 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004712/0.3495, allocations: 477.7 kB / 0.5813 GB, free: 10.24 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-05/0.3496, allocations: 32 kB / 0.5813 GB, free: 10.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.3509, allocations: 0.4955 MB / 0.5818 GB, free: 9.715 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.3511, allocations: 147.2 kB / 0.582 GB, free: 9.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003937/0.3515, allocations: 433.6 kB / 0.5824 GB, free: 9.145 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009875/0.3525, allocations: 0.9078 MB / 0.5833 GB, free: 8.234 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3525, allocations: 0 / 0.5833 GB, free: 8.234 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3525, allocations: 0 / 0.5833 GB, free: 8.234 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3525, allocations: 0 / 0.5833 GB, free: 8.234 MB / 410.7 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.001976/0.3545, allocations: 1.121 MB / 0.5843 GB, free: 7.055 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3546, allocations: 8.031 kB / 0.5844 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002405/0.3548, allocations: 115.7 kB / 0.5845 GB, free: 6.934 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.3555, allocations: 0.5286 MB / 0.585 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/0.3555, allocations: 54.38 kB / 0.585 GB, free: 6.312 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.3557, allocations: 80.12 kB / 0.5851 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.3569, allocations: 0.7986 MB / 0.5859 GB, free: 5.422 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3569, allocations: 4 kB / 0.5859 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-05/0.357, allocations: 32 kB / 0.5859 GB, free: 5.387 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.357, allocations: 16 kB / 0.5859 GB, free: 5.371 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.3581, allocations: 0.648 MB / 0.5866 GB, free: 4.723 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004011/0.3621, allocations: 3.74 MB / 0.5902 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.3632, allocations: 0.6566 MB / 0.5909 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.3637, allocations: 298.4 kB / 0.5912 GB, free: 15.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002385/0.3661, allocations: 2.55 MB / 0.5936 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006314/0.3668, allocations: 389.9 kB / 0.594 GB, free: 12.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.144e-06/0.3668, allocations: 3.938 kB / 0.594 GB, free: 12.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.003591/0.3704, allocations: 1.986 MB / 0.596 GB, free: 10.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.3705, allocations: 89.61 kB / 0.596 GB, free: 10.12 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28: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 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26: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 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24: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.0005533/0.371, allocations: 495 kB / 0.5965 GB, free: 9.629 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.3711, allocations: 37.7 kB / 0.5965 GB, free: 9.586 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.3714, allocations: 379.8 kB / 0.5969 GB, free: 9.207 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.3715, allocations: 224.8 kB / 0.5971 GB, free: 8.984 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.3716, allocations: 16 kB / 0.5971 GB, free: 8.969 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3717, allocations: 370.8 kB / 0.5975 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004268/0.3722, allocations: 233.9 kB / 0.5977 GB, free: 8.371 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004978/0.3727, allocations: 347.9 kB / 0.598 GB, free: 7.996 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009427/0.3736, allocations: 0.5926 MB / 0.5986 GB, free: 7.363 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3736, allocations: 0 / 0.5986 GB, free: 7.363 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001474/0.3751, allocations: 0.8268 MB / 0.5994 GB, free: 6.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.192e-05/0.3752, allocations: 37.69 kB / 0.5995 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3752, allocations: 0 / 0.5995 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003985/0.3756, allocations: 100.9 kB / 0.5996 GB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3761, allocations: 135.8 kB / 0.5997 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.3781, allocations: 1.832 MB / 0.6015 GB, free: 4.281 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004941/0.3786, allocations: 63.98 kB / 0.6015 GB, free: 4.219 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002597/0.3789, allocations: 35.92 kB / 0.6016 GB, free: 4.184 MB / 426.7 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.000494/0.3794, allocations: 205.7 kB / 0.6018 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.3795, allocations: 67.16 kB / 0.6018 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.3812, allocations: 0.8226 MB / 0.6026 GB, free: 3.066 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3812, allocations: 11.98 kB / 0.6027 GB, free: 3.055 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3812, allocations: 7.984 kB / 0.6027 GB, free: 3.047 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.3813, allocations: 0 / 0.6027 GB, free: 3.047 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.3837, allocations: 1.639 MB / 0.6043 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3837, allocations: 4 kB / 0.6043 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.3842, allocations: 115.9 kB / 0.6044 GB, free: 1.223 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002811/0.3845, allocations: 104.7 kB / 0.6045 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-05/0.3845, allocations: 23.98 kB / 0.6045 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001715/0.3863, allocations: 1.839 MB / 0.6063 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3863, allocations: 0 / 0.6063 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.3881, allocations: 1.139 MB / 0.6074 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.3883, allocations: 204.2 kB / 0.6076 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.085e-05/0.3884, allocations: 15.98 kB / 0.6076 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.3889, allocations: 67.8 kB / 0.6077 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.389, allocations: 60.42 kB / 0.6077 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.459e-05/0.3891, allocations: 28.11 kB / 0.6078 GB, free: 13.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003542/0.3894, allocations: 338.8 kB / 0.6081 GB, free: 13.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3895, allocations: 0 / 0.6081 GB, free: 13.24 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008441/0.3903, allocations: 271.9 kB / 0.6084 GB, free: 12.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005443/0.3909, allocations: 363.9 kB / 0.6087 GB, free: 12.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.3923, allocations: 0.822 MB / 0.6095 GB, free: 11.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3923, allocations: 0.5625 kB / 0.6095 GB, free: 11.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000776/0.3931, allocations: 493.7 kB / 0.61 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.3941, allocations: 197.8 kB / 0.6102 GB, free: 11.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.3969, allocations: 2.03 MB / 0.6121 GB, free: 9.008 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.3974, allocations: 0.9539 MB / 0.6131 GB, free: 8.023 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001933/0.3976, allocations: 75.41 kB / 0.6131 GB, free: 7.953 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3976, allocations: 0 / 0.6131 GB, free: 7.953 MB / 442.7 MB Notification: Performance of Templates: time 0.01825/0.4159, allocations: 15.44 MB / 0.6282 GB, free: 8.535 MB / 458.7 MB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches