Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_9_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.001281/0.001281, allocations: 108 kB / 15.6 MB, free: 132 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.00129/0.00129, allocations: 198 kB / 16.54 MB, free: 6.672 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 390.2 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 67.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4946/0.4959, allocations: 140.4 MB / 0.9497 GB, free: 9.297 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01158/0.5075, allocations: 14.44 MB / 0.9638 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004319/0.5118, allocations: 3.645 MB / 0.9674 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002628/0.5121, allocations: 19.97 kB / 0.9674 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004772/0.5126, allocations: 203.8 kB / 0.9676 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0009994/0.5136, allocations: 0.5899 MB / 0.9682 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006923/0.5143, allocations: 379.9 kB / 0.9685 GB, free: 9.781 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001013/0.5153, allocations: 1.091 MB / 0.9696 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003714/0.5157, allocations: 320.6 kB / 0.9699 GB, free: 8.941 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007491/0.5165, allocations: 383.4 kB / 0.9703 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.5168, allocations: 305.5 kB / 0.9705 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.821e-05/0.5169, allocations: 36.28 kB / 0.9706 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004532/0.5174, allocations: 260.9 kB / 0.9708 GB, free: 8.41 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.5175, allocations: 96.19 kB / 0.9709 GB, free: 8.336 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001989/0.5177, allocations: 204.8 kB / 0.9711 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006594/0.5183, allocations: 0.5853 MB / 0.9717 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5184, allocations: 0.8125 kB / 0.9717 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5184, allocations: 0 / 0.9717 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.5184, allocations: 0 / 0.9717 GB, free: 7.816 MB / 0.7325 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.001016/0.5194, allocations: 0.7424 MB / 0.9724 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.5194, allocations: 13.31 kB / 0.9724 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.118e-05/0.5195, allocations: 59.55 kB / 0.9725 GB, free: 7.098 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.5197, allocations: 53.86 kB / 0.9725 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.5203, allocations: 447.6 kB / 0.973 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.5203, allocations: 23.47 kB / 0.973 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.5203, allocations: 25.47 kB / 0.973 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.5209, allocations: 312.9 kB / 0.9733 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.5209, allocations: 5.156 kB / 0.9733 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.5209, allocations: 11.38 kB / 0.9733 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.5209, allocations: 7.125 kB / 0.9733 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004428/0.5214, allocations: 198.5 kB / 0.9735 GB, free: 6.336 MB / 0.7325 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.001569/0.523, allocations: 1.495 MB / 0.975 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.5234, allocations: 159.8 kB / 0.9751 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.5236, allocations: 65.84 kB / 0.9752 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.5237, allocations: 83.7 kB / 0.9753 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.524, allocations: 135 kB / 0.9754 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.524, allocations: 0 / 0.9754 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0005916/0.5246, allocations: 229.2 kB / 0.9756 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.5246, allocations: 54.97 kB / 0.9757 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.525, allocations: 347.4 kB / 0.976 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.525, allocations: 32.08 kB / 0.976 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.5251, allocations: 220.5 kB / 0.9762 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.5252, allocations: 50.86 kB / 0.9763 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-05/0.5253, allocations: 57.19 kB / 0.9763 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5254, allocations: 341.8 kB / 0.9767 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.5256, allocations: 65.67 kB / 0.9767 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.5258, allocations: 151.3 kB / 0.9769 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003971/0.5262, allocations: 241.5 kB / 0.9771 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5262, allocations: 9.031 kB / 0.9771 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005657/0.5268, allocations: 310.9 kB / 0.9774 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.5268, allocations: 40.09 kB / 0.9775 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5268, allocations: 2.469 kB / 0.9775 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.5269, allocations: 7.875 kB / 0.9775 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.5271, allocations: 62.69 kB / 0.9775 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.5271, allocations: 3.781 kB / 0.9775 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.5273, allocations: 36.02 kB / 0.9776 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.5274, allocations: 8.719 kB / 0.9776 GB, free: 2.918 MB / 0.7325 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.0001395/0.5275, allocations: 158 kB / 0.9777 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.5276, allocations: 32.31 kB / 0.9777 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000442/0.528, allocations: 205.5 kB / 0.9779 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.528, allocations: 6.531 kB / 0.978 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.528, allocations: 0 / 0.978 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004383/0.5285, allocations: 484.8 kB / 0.9784 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003646/0.5289, allocations: 344.9 kB / 0.9787 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5289, allocations: 1.438 kB / 0.9787 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.529, allocations: 34.11 kB / 0.9788 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.529, allocations: 4.875 kB / 0.9788 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.5291, allocations: 5.672 kB / 0.9788 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.5291, allocations: 9.062 kB / 0.9788 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5291, allocations: 1.062 kB / 0.9788 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/0.5297, allocations: 287.9 kB / 0.9791 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.5298, allocations: 125.3 kB / 0.9792 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/0.5298, allocations: 9.484 kB / 0.9792 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.5301, allocations: 15.64 kB / 0.9792 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.5301, allocations: 16.2 kB / 0.9792 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.5301, allocations: 8.859 kB / 0.9792 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000224/0.5304, allocations: 250.1 kB / 0.9795 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.5304, allocations: 0 / 0.9795 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003828/0.5308, allocations: 122.6 kB / 0.9796 GB, free: 1.266 MB / 0.7325 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.0009573/0.5317, allocations: 0.9156 MB / 0.9805 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004681/0.5322, allocations: 239 kB / 0.9807 GB, free: 376 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5322, allocations: 3.938 kB / 0.9807 GB, free: 372 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001727/0.5324, allocations: 74.89 kB / 0.9808 GB, free: 340 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009073/0.5333, allocations: 218.2 kB / 0.981 GB, free: 228 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.537, allocations: 3.061 MB / 0.984 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.5373, allocations: 0.7917 MB / 0.9848 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002216/0.5375, allocations: 67.12 kB / 0.9848 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.5376, allocations: 127.4 kB / 0.9849 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of SimCode: time 3e-07/0.5377, allocations: 0 / 0.9849 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.383/1.921, allocations: 10.13 MB / 0.9948 GB, free: 2.926 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.347/11.27, allocations: 6.281 kB / 0.9948 GB, free: 2.922 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)