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.0009099/0.00091, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009603/0.0009607, allocations: 168.7 kB / 15.95 MB, free: 204 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.564/1.564, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7896/0.7896, allocations: 89.65 MB / 380.7 MB, free: 11.38 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.0004133, allocations: 13.94 kB / 460.1 MB, free: 24.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1784, allocations: 68.83 MB / 0.5166 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03341/0.2119, allocations: 28.71 MB / 0.5446 GB, free: 14.8 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01242/0.2244, allocations: 8.965 MB / 0.5534 GB, free: 5.809 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.001419/0.2259, allocations: 19.88 kB / 0.5534 GB, free: 5.789 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.2273, allocations: 441.5 kB / 0.5538 GB, free: 5.355 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002614/0.2299, allocations: 0.6947 MB / 0.5545 GB, free: 4.656 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.2323, allocations: 0.5291 MB / 0.555 GB, free: 4.129 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002755/0.2351, allocations: 1.443 MB / 0.5564 GB, free: 2.68 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.2356, allocations: 246 kB / 0.5566 GB, free: 2.422 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.2368, allocations: 490 kB / 0.5571 GB, free: 1.941 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005852/0.2374, allocations: 457.8 kB / 0.5575 GB, free: 1.492 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.436e-05/0.2375, allocations: 36 kB / 0.5576 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00159/0.2391, allocations: 363.7 kB / 0.5579 GB, free: 1.102 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.2392, allocations: 143.3 kB / 0.5581 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.2395, allocations: 197.3 kB / 0.5583 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.2406, allocations: 0.8689 MB / 0.5591 GB, free: 15.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.2407, allocations: 0 / 0.5591 GB, free: 15.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2407, allocations: 4 kB / 0.5591 GB, free: 15.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.2407, allocations: 0 / 0.5591 GB, free: 15.89 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.002317/0.243, allocations: 1.152 MB / 0.5602 GB, free: 14.67 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.2431, allocations: 8.031 kB / 0.5602 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000179/0.2433, allocations: 126.5 kB / 0.5604 GB, free: 14.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.2435, allocations: 102.8 kB / 0.5605 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008505/0.2444, allocations: 0.52 MB / 0.561 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.252e-05/0.2444, allocations: 69.91 kB / 0.561 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.2446, allocations: 83.91 kB / 0.5611 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.246, allocations: 0.7916 MB / 0.5619 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.246, allocations: 0 / 0.5619 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.435e-05/0.2461, allocations: 32 kB / 0.5619 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.2461, allocations: 20 kB / 0.5619 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.2473, allocations: 0.6441 MB / 0.5626 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.252, allocations: 3.71 MB / 0.5662 GB, free: 8.137 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.2532, allocations: 0.5978 MB / 0.5668 GB, free: 7.535 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005104/0.2537, allocations: 284 kB / 0.567 GB, free: 7.258 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002892/0.2566, allocations: 2.547 MB / 0.5695 GB, free: 4.332 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007288/0.2573, allocations: 377.8 kB / 0.5699 GB, free: 3.945 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.384e-06/0.2574, allocations: 0 / 0.5699 GB, free: 3.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003844/0.2612, allocations: 1.908 MB / 0.5718 GB, free: 1.945 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.2613, allocations: 89.62 kB / 0.5718 GB, free: 1.84 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.000733/0.262, allocations: 0.545 MB / 0.5724 GB, free: 1.285 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.2621, allocations: 45.64 kB / 0.5724 GB, free: 1.234 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.2625, allocations: 399.7 kB / 0.5728 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.2627, allocations: 216.8 kB / 0.573 GB, free: 0.625 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.395e-05/0.2627, allocations: 16 kB / 0.573 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.2629, allocations: 378.8 kB / 0.5734 GB, free: 236 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000421/0.2633, allocations: 217.9 kB / 0.5736 GB, free: 20 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3951/0.6585, allocations: 317.8 kB / 0.5739 GB, free: 59.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006327/0.6591, allocations: 282.3 kB / 0.5742 GB, free: 59.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.6592, allocations: 4.016 kB / 0.5742 GB, free: 59.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002034/0.6612, allocations: 0.7986 MB / 0.5749 GB, free: 59.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.6613, allocations: 35.16 kB / 0.575 GB, free: 59.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.6613, allocations: 2.688 kB / 0.575 GB, free: 59.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004562/0.6618, allocations: 109.5 kB / 0.5751 GB, free: 59.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005819/0.6623, allocations: 130.3 kB / 0.5752 GB, free: 59.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/0.6646, allocations: 1.827 MB / 0.577 GB, free: 57.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006492/0.6653, allocations: 53.3 kB / 0.577 GB, free: 57.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.6654, allocations: 29.45 kB / 0.5771 GB, free: 57.85 MB / 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.0004711/0.6659, allocations: 211.4 kB / 0.5773 GB, free: 57.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.666, allocations: 69.88 kB / 0.5773 GB, free: 57.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.668, allocations: 0.8582 MB / 0.5782 GB, free: 57.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.668, allocations: 10.2 kB / 0.5782 GB, free: 57.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.668, allocations: 1.812 kB / 0.5782 GB, free: 57.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.668, allocations: 3.141 kB / 0.5782 GB, free: 57.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/0.671, allocations: 1.59 MB / 0.5797 GB, free: 56.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.671, allocations: 2.062 kB / 0.5797 GB, free: 56.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.6715, allocations: 115.4 kB / 0.5799 GB, free: 56.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.6719, allocations: 101.6 kB / 0.58 GB, free: 56.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/0.672, allocations: 23.31 kB / 0.58 GB, free: 56.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/0.6738, allocations: 1.84 MB / 0.5818 GB, free: 55.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.6738, allocations: 5.656 kB / 0.5818 GB, free: 55.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.6759, allocations: 1.075 MB / 0.5828 GB, free: 54.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.6762, allocations: 204.9 kB / 0.583 GB, free: 54.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.25e-05/0.6763, allocations: 13.78 kB / 0.583 GB, free: 54.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.6768, allocations: 60.44 kB / 0.5831 GB, free: 54.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.6769, allocations: 56 kB / 0.5831 GB, free: 54.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-05/0.677, allocations: 25.69 kB / 0.5832 GB, free: 54.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.6775, allocations: 389.9 kB / 0.5835 GB, free: 54.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6775, allocations: 2.75 kB / 0.5835 GB, free: 54.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001055/0.6786, allocations: 276.4 kB / 0.5838 GB, free: 54.3 MB / 446.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.002452/0.681, allocations: 1.857 MB / 0.5856 GB, free: 53.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.6827, allocations: 0.7801 MB / 0.5864 GB, free: 52.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6827, allocations: 0 / 0.5864 GB, free: 52.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007843/0.6835, allocations: 473.4 kB / 0.5868 GB, free: 52.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.6847, allocations: 222.5 kB / 0.587 GB, free: 52.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00846/0.6932, allocations: 4.694 MB / 0.5916 GB, free: 50.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.6938, allocations: 0.9615 MB / 0.5926 GB, free: 49.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006633/0.6945, allocations: 134 kB / 0.5927 GB, free: 49.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.6949, allocations: 305.9 kB / 0.593 GB, free: 49.09 MB / 446.1 MB Notification: Performance of SimCode: time 1.283e-06/0.6949, allocations: 0 / 0.593 GB, free: 49.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04915/0.7441, allocations: 19.86 MB / 0.6124 GB, free: 38.85 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/0.7444, allocations: 204.1 kB / 0.6126 GB, free: 38.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/3.376, allocations: 0 / 0.6126 GB, free: 38.61 MB / 446.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