Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",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.001286/0.001286, allocations: 108 kB / 15.61 MB, free: 152 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.001334/0.001334, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.239/1.239, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.444/2.444, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 65.39 kB / 0.8992 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2476, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01601/0.2637, allocations: 14.46 MB / 1.067 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004921/0.2686, allocations: 3.635 MB / 1.071 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004388/0.2691, allocations: 15.94 kB / 1.071 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005942/0.2697, allocations: 206.7 kB / 1.071 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001343/0.2711, allocations: 0.5868 MB / 1.071 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008636/0.272, allocations: 385.4 kB / 1.072 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001244/0.2732, allocations: 1.092 MB / 1.073 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004463/0.2737, allocations: 320.8 kB / 1.073 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008928/0.2746, allocations: 377.8 kB / 1.073 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004205/0.275, allocations: 318.6 kB / 1.074 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.252e-05/0.2751, allocations: 32 kB / 1.074 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005296/0.2756, allocations: 251.5 kB / 1.074 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.2757, allocations: 99.62 kB / 1.074 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.276, allocations: 215 kB / 1.074 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007408/0.2767, allocations: 0.5803 MB / 1.075 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2767, allocations: 7.984 kB / 1.075 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2767, allocations: 4 kB / 1.075 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.2768, allocations: 0 / 1.075 GB, free: 1.633 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001115/0.2779, allocations: 0.7379 MB / 1.076 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.2779, allocations: 8.625 kB / 1.076 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.613e-05/0.278, allocations: 62.72 kB / 1.076 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.2782, allocations: 48.47 kB / 1.076 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006372/0.2788, allocations: 455.6 kB / 1.076 GB, free: 232 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.2789, allocations: 28.62 kB / 1.076 GB, free: 204 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.943e-05/0.2789, allocations: 28 kB / 1.076 GB, free: 176 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005582/0.2795, allocations: 302.2 kB / 1.077 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.2795, allocations: 4 kB / 1.077 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.2795, allocations: 12 kB / 1.077 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.2796, allocations: 11.94 kB / 1.077 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004653/0.28, allocations: 190.1 kB / 1.077 GB, free: 15.65 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.2818, allocations: 1.497 MB / 1.078 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/0.2822, allocations: 150.6 kB / 1.078 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.2824, allocations: 72.81 kB / 1.078 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.2826, allocations: 97.02 kB / 1.078 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.2828, allocations: 119.3 kB / 1.079 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.2829, allocations: 0 / 1.079 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006138/0.2835, allocations: 238.9 kB / 1.079 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.2835, allocations: 55.41 kB / 1.079 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/0.2839, allocations: 357.5 kB / 1.079 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.2839, allocations: 29.7 kB / 1.079 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.2841, allocations: 215.7 kB / 1.079 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.643e-05/0.2841, allocations: 51.3 kB / 1.08 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.664e-05/0.2842, allocations: 53.61 kB / 1.08 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.2844, allocations: 346.8 kB / 1.08 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.2846, allocations: 67.95 kB / 1.08 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.2848, allocations: 146.6 kB / 1.08 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/0.2852, allocations: 240.9 kB / 1.08 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2852, allocations: 0 / 1.08 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006107/0.2859, allocations: 320.5 kB / 1.081 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.2859, allocations: 29.7 kB / 1.081 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2859, allocations: 4 kB / 1.081 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2859, allocations: 7.938 kB / 1.081 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.2862, allocations: 55.91 kB / 1.081 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.2862, allocations: 4 kB / 1.081 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.2864, allocations: 32.05 kB / 1.081 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.16e-05/0.2865, allocations: 23.92 kB / 1.081 GB, free: 11.18 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.2866, allocations: 153.8 kB / 1.081 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.504e-05/0.2867, allocations: 35.56 kB / 1.081 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004548/0.2872, allocations: 192.5 kB / 1.081 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2872, allocations: 3.938 kB / 1.081 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2872, allocations: 4 kB / 1.081 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004912/0.2877, allocations: 486.4 kB / 1.082 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003983/0.2881, allocations: 361.3 kB / 1.082 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2881, allocations: 0 / 1.082 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.2883, allocations: 31.91 kB / 1.082 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2883, allocations: 4 kB / 1.082 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.2883, allocations: 4 kB / 1.082 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.2883, allocations: 3.938 kB / 1.082 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2883, allocations: 0 / 1.082 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006083/0.289, allocations: 285.5 kB / 1.082 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.2891, allocations: 124.7 kB / 1.082 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.2891, allocations: 4 kB / 1.082 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.2894, allocations: 23.86 kB / 1.082 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.2895, allocations: 23.97 kB / 1.082 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2895, allocations: 8 kB / 1.082 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002515/0.2897, allocations: 247.2 kB / 1.083 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2897, allocations: 0 / 1.083 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004084/0.2902, allocations: 128 kB / 1.083 GB, free: 8.918 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * 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 (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00108/0.2912, allocations: 0.9086 MB / 1.084 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004974/0.2918, allocations: 237.7 kB / 1.084 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2918, allocations: 0 / 1.084 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.292, allocations: 72.52 kB / 1.084 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009383/0.2929, allocations: 220.7 kB / 1.084 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004081/0.297, allocations: 3.064 MB / 1.087 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.2974, allocations: 0.7918 MB / 1.088 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002556/0.2976, allocations: 59.27 kB / 1.088 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.2978, allocations: 119.4 kB / 1.088 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.2978, allocations: 0 / 1.088 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.3275, allocations: 10.14 MB / 1.098 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.069/9.397, allocations: 13.42 kB / 1.098 GB, free: 9.273 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)