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-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/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: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001413/0.001413, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8319/0.8319, allocations: 89.65 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003716, allocations: 14.66 kB / 460 MB, free: 24.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1502, allocations: 68.83 MB / 0.5165 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02744/0.1777, allocations: 26.13 MB / 0.542 GB, free: 1.441 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.1884, allocations: 8.071 MB / 0.5499 GB, free: 9.352 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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-main/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-main/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.001068/0.1895, allocations: 19.88 kB / 0.5499 GB, free: 9.332 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.1909, allocations: 453.8 kB / 0.5503 GB, free: 8.887 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002583/0.1935, allocations: 0.7359 MB / 0.551 GB, free: 8.148 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.1953, allocations: 0.541 MB / 0.5516 GB, free: 7.609 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.1971, allocations: 0.9125 MB / 0.5524 GB, free: 6.695 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004256/0.1975, allocations: 246.2 kB / 0.5527 GB, free: 6.438 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008605/0.1984, allocations: 454.3 kB / 0.5531 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004689/0.1988, allocations: 398.1 kB / 0.5535 GB, free: 5.602 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.132e-05/0.1989, allocations: 36 kB / 0.5535 GB, free: 5.566 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.2004, allocations: 479.6 kB / 0.554 GB, free: 5.098 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.2005, allocations: 143.4 kB / 0.5541 GB, free: 4.957 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002111/0.2007, allocations: 201.2 kB / 0.5543 GB, free: 4.754 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.2019, allocations: 0.8611 MB / 0.5552 GB, free: 3.891 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2019, allocations: 0 / 0.5552 GB, free: 3.891 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2019, allocations: 0 / 0.5552 GB, free: 3.891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.2019, allocations: 4 kB / 0.5552 GB, free: 3.887 MB / 430.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.002237/0.2041, allocations: 1.148 MB / 0.5563 GB, free: 2.676 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2042, allocations: 8.031 kB / 0.5563 GB, free: 2.668 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.2043, allocations: 118.5 kB / 0.5564 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.2046, allocations: 114.8 kB / 0.5565 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008223/0.2054, allocations: 0.5238 MB / 0.557 GB, free: 1.867 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/0.2055, allocations: 54 kB / 0.5571 GB, free: 1.812 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.2056, allocations: 91.88 kB / 0.5572 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.2069, allocations: 0.7838 MB / 0.5579 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.207, allocations: 7.938 kB / 0.5579 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.85e-05/0.207, allocations: 31.98 kB / 0.558 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.2071, allocations: 20 kB / 0.558 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.2082, allocations: 0.6364 MB / 0.5586 GB, free: 232 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.2128, allocations: 3.757 MB / 0.5623 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.2139, allocations: 0.5958 MB / 0.5629 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002645/0.2166, allocations: 2.574 MB / 0.5654 GB, free: 8.551 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006249/0.2172, allocations: 377.7 kB / 0.5657 GB, free: 8.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.264e-06/0.2172, allocations: 0 / 0.5657 GB, free: 8.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003814/0.221, allocations: 1.921 MB / 0.5676 GB, free: 6.148 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.2211, allocations: 93.61 kB / 0.5677 GB, free: 6.039 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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-main/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-main/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.0006576/0.2218, allocations: 0.5352 MB / 0.5682 GB, free: 5.492 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.57e-05/0.2218, allocations: 37.7 kB / 0.5683 GB, free: 5.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003312/0.2222, allocations: 403.7 kB / 0.5686 GB, free: 5.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002326/0.2224, allocations: 216.8 kB / 0.5688 GB, free: 4.836 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.2225, allocations: 12 kB / 0.5689 GB, free: 4.824 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002858/0.2227, allocations: 386.7 kB / 0.5692 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.2232, allocations: 217.9 kB / 0.5694 GB, free: 4.227 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.2237, allocations: 324 kB / 0.5697 GB, free: 3.875 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00048/0.2242, allocations: 280.8 kB / 0.57 GB, free: 3.594 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2242, allocations: 4 kB / 0.57 GB, free: 3.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001426/0.2256, allocations: 0.7956 MB / 0.5708 GB, free: 2.777 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.2257, allocations: 37.64 kB / 0.5708 GB, free: 2.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.2257, allocations: 4 kB / 0.5708 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003637/0.226, allocations: 100.8 kB / 0.5709 GB, free: 2.629 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000517/0.2266, allocations: 131.8 kB / 0.5711 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.2286, allocations: 1.867 MB / 0.5729 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.2291, allocations: 55.92 kB / 0.5729 GB, free: 452 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.084e-05/0.2292, allocations: 27.98 kB / 0.573 GB, free: 424 kB / 446.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 ($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 (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003541/0.2295, allocations: 215.8 kB / 0.5732 GB, free: 200 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/0.2296, allocations: 67.16 kB / 0.5732 GB, free: 132 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.2313, allocations: 0.8647 MB / 0.5741 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2313, allocations: 8 kB / 0.5741 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.2313, allocations: 4 kB / 0.5741 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2314, allocations: 3.984 kB / 0.5741 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.2339, allocations: 1.609 MB / 0.5757 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.2339, allocations: 0 / 0.5757 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/0.2344, allocations: 119.9 kB / 0.5758 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003074/0.2347, allocations: 100.7 kB / 0.5759 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.2348, allocations: 19.98 kB / 0.5759 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.2366, allocations: 1.867 MB / 0.5777 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2366, allocations: 0 / 0.5777 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.2385, allocations: 1.105 MB / 0.5788 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/0.2388, allocations: 224 kB / 0.579 GB, free: 9.922 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.096e-05/0.2389, allocations: 20 kB / 0.579 GB, free: 9.902 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004915/0.2394, allocations: 51.95 kB / 0.5791 GB, free: 9.852 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.2395, allocations: 52.47 kB / 0.5791 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.237e-05/0.2396, allocations: 32.55 kB / 0.5792 GB, free: 9.766 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000447/0.2401, allocations: 379.1 kB / 0.5795 GB, free: 9.398 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2401, allocations: 0 / 0.5795 GB, free: 9.398 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000864/0.2409, allocations: 283.9 kB / 0.5798 GB, free: 9.121 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002553/0.2435, allocations: 2.111 MB / 0.5818 GB, free: 6.965 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.245, allocations: 0.7715 MB / 0.5826 GB, free: 6.164 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.245, allocations: 0 / 0.5826 GB, free: 6.164 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000789/0.2458, allocations: 478.1 kB / 0.5831 GB, free: 5.684 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.2468, allocations: 200.8 kB / 0.5832 GB, free: 5.488 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004378/0.2512, allocations: 4.141 MB / 0.5873 GB, free: 1.246 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.2518, allocations: 0.9814 MB / 0.5882 GB, free: 244 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005326/0.2523, allocations: 128.9 kB / 0.5884 GB, free: 112 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2666/0.5189, allocations: 303.4 kB / 0.5887 GB, free: 72.08 MB / 462.1 MB Notification: Performance of SimCode: time 1.193e-06/0.5189, allocations: 0 / 0.5887 GB, free: 72.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0485/0.5674, allocations: 19.47 MB / 0.6077 GB, free: 66.79 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.5677, allocations: 191.1 kB / 0.6079 GB, free: 66.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.122, allocations: 3.828 kB / 0.6079 GB, free: 66.55 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat does not exist to compare? outputFormat=mat