Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_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.001422/0.001422, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001626/0.001626, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.198/1.198, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.385/2.385, allocations: 437 MB / 0.7099 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 60.14 kB / 0.8686 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4857/0.487, allocations: 151.6 MB / 1.017 GB, free: 2.914 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01505/0.5021, allocations: 14.4 MB / 1.031 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004719/0.5068, allocations: 3.671 MB / 1.034 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003575/0.5072, allocations: 15.88 kB / 1.034 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005209/0.5078, allocations: 175 kB / 1.035 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.5088, allocations: 0.5405 MB / 1.035 GB, free: 44 kB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007281/0.5096, allocations: 347 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001221/0.5108, allocations: 1.461 MB / 1.037 GB, free: 14.24 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003421/0.5112, allocations: 274.6 kB / 1.037 GB, free: 13.97 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000369/0.5115, allocations: 322.5 kB / 1.037 GB, free: 13.66 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.5119, allocations: 318.6 kB / 1.038 GB, free: 13.34 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.5119, allocations: 16 kB / 1.038 GB, free: 13.33 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004495/0.5124, allocations: 243.5 kB / 1.038 GB, free: 13.09 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.481e-05/0.5125, allocations: 83.55 kB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.5127, allocations: 195 kB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.5133, allocations: 0.5764 MB / 1.039 GB, free: 12.24 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.5133, allocations: 0 / 1.039 GB, free: 12.24 MB / 0.795 GB Notification: Performance of FrontEnd: time 9.72e-07/0.5133, allocations: 0 / 1.039 GB, free: 12.24 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.5133, allocations: 0 / 1.039 GB, free: 12.24 MB / 0.795 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.00104/0.5144, allocations: 0.7534 MB / 1.04 GB, free: 11.43 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.5144, allocations: 8.031 kB / 1.04 GB, free: 11.42 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.314e-05/0.5145, allocations: 62.72 kB / 1.04 GB, free: 11.35 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.5146, allocations: 48.47 kB / 1.04 GB, free: 11.3 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006618/0.5153, allocations: 475.8 kB / 1.04 GB, free: 10.8 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.5153, allocations: 24.5 kB / 1.04 GB, free: 10.77 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.042e-05/0.5154, allocations: 28 kB / 1.04 GB, free: 10.75 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.516, allocations: 310.2 kB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.516, allocations: 0 / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.516, allocations: 12 kB / 1.04 GB, free: 10.41 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.516, allocations: 8 kB / 1.04 GB, free: 10.41 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004568/0.5165, allocations: 194.1 kB / 1.041 GB, free: 10.22 MB / 0.795 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.001604/0.5181, allocations: 1.481 MB / 1.042 GB, free: 8.609 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004102/0.5185, allocations: 154.6 kB / 1.042 GB, free: 8.449 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.5187, allocations: 64.81 kB / 1.042 GB, free: 8.383 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001625/0.5189, allocations: 97.08 kB / 1.042 GB, free: 8.27 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/0.5192, allocations: 123.3 kB / 1.043 GB, free: 8.137 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 2.985e-06/0.5192, allocations: 0 / 1.043 GB, free: 8.137 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.000614/0.5198, allocations: 243.3 kB / 1.043 GB, free: 7.895 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.5199, allocations: 59.41 kB / 1.043 GB, free: 7.824 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.5202, allocations: 337.6 kB / 1.043 GB, free: 7.484 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.5202, allocations: 33.7 kB / 1.043 GB, free: 7.445 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.5204, allocations: 211.8 kB / 1.043 GB, free: 7.23 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.5204, allocations: 51.3 kB / 1.043 GB, free: 7.18 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.934e-05/0.5205, allocations: 57.59 kB / 1.043 GB, free: 7.117 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5206, allocations: 338.8 kB / 1.044 GB, free: 6.777 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.5208, allocations: 71.95 kB / 1.044 GB, free: 6.707 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.5211, allocations: 149.3 kB / 1.044 GB, free: 6.527 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004046/0.5215, allocations: 244.8 kB / 1.044 GB, free: 6.25 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5215, allocations: 0 / 1.044 GB, free: 6.25 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005743/0.5221, allocations: 310.9 kB / 1.045 GB, free: 5.934 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.5221, allocations: 45.66 kB / 1.045 GB, free: 5.883 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.5221, allocations: 0 / 1.045 GB, free: 5.883 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.5222, allocations: 7.938 kB / 1.045 GB, free: 5.875 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.5224, allocations: 59.91 kB / 1.045 GB, free: 5.816 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.5224, allocations: 4 kB / 1.045 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.5227, allocations: 35.67 kB / 1.045 GB, free: 5.777 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.5227, allocations: 12 kB / 1.045 GB, free: 5.766 MB / 0.795 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.0001486/0.5229, allocations: 162.3 kB / 1.045 GB, free: 5.598 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.172e-05/0.5229, allocations: 31.62 kB / 1.045 GB, free: 5.566 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000462/0.5234, allocations: 196.4 kB / 1.045 GB, free: 5.371 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.5234, allocations: 4 kB / 1.045 GB, free: 5.367 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.5234, allocations: 0 / 1.045 GB, free: 5.367 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000462/0.5239, allocations: 489 kB / 1.046 GB, free: 4.805 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000386/0.5243, allocations: 353.3 kB / 1.046 GB, free: 4.41 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5243, allocations: 0 / 1.046 GB, free: 4.41 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.5245, allocations: 31.98 kB / 1.046 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5245, allocations: 0 / 1.046 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.5245, allocations: 7.938 kB / 1.046 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.5245, allocations: 0 / 1.046 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5245, allocations: 3.938 kB / 1.046 GB, free: 4.367 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000601/0.5251, allocations: 288.5 kB / 1.046 GB, free: 4.066 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.5252, allocations: 120.8 kB / 1.046 GB, free: 3.93 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.5253, allocations: 7.938 kB / 1.046 GB, free: 3.922 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.5256, allocations: 19.97 kB / 1.046 GB, free: 3.902 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.5256, allocations: 15.98 kB / 1.046 GB, free: 3.887 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.5257, allocations: 7.984 kB / 1.046 GB, free: 3.879 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002264/0.5259, allocations: 243.2 kB / 1.047 GB, free: 3.641 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5259, allocations: 0 / 1.047 GB, free: 3.641 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000389/0.5263, allocations: 116 kB / 1.047 GB, free: 3.527 MB / 0.795 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.001034/0.5273, allocations: 0.9092 MB / 1.048 GB, free: 2.594 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004724/0.5278, allocations: 231.7 kB / 1.048 GB, free: 2.355 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5278, allocations: 0 / 1.048 GB, free: 2.355 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.528, allocations: 71.83 kB / 1.048 GB, free: 2.285 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009247/0.5289, allocations: 203.7 kB / 1.048 GB, free: 2.094 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.533, allocations: 3.155 MB / 1.051 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.5333, allocations: 0.7879 MB / 1.052 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002576/0.5335, allocations: 67.25 kB / 1.052 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.5337, allocations: 115.4 kB / 1.052 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/0.5337, allocations: 0 / 1.052 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.591/1.125, allocations: 9.427 MB / 1.061 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/1.125, allocations: 200.1 kB / 1.061 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.855, allocations: 0 / 1.061 GB, free: 4.32 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)