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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001032/0.001032, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001324/0.001324, allocations: 172.7 kB / 15.95 MB, free: 208 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.433/1.433, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 11.98 kB / 0.8149 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7032/0.7035, allocations: 142.3 MB / 0.9538 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01202/0.7156, allocations: 13.19 MB / 0.9667 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005372/0.721, allocations: 3.412 MB / 0.9701 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005342/0.7216, allocations: 17.41 kB / 0.9701 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005556/0.7221, allocations: 149.5 kB / 0.9702 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.7234, allocations: 489.7 kB / 0.9707 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008867/0.7243, allocations: 290.9 kB / 0.971 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001604/0.7259, allocations: 1.247 MB / 0.9722 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003923/0.7264, allocations: 232 kB / 0.9724 GB, free: 9.172 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005052/0.7269, allocations: 318.1 kB / 0.9727 GB, free: 9.008 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004214/0.7273, allocations: 279.7 kB / 0.973 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.86e-05/0.7274, allocations: 13.56 kB / 0.973 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005353/0.7279, allocations: 150.3 kB / 0.9731 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.124e-05/0.728, allocations: 65.02 kB / 0.9732 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.7281, allocations: 104.2 kB / 0.9733 GB, free: 8.66 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.7286, allocations: 429.9 kB / 0.9737 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.7287, allocations: 0 / 0.9737 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.305e-06/0.7287, allocations: 0.9688 kB / 0.9737 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.7287, allocations: 3.938 kB / 0.9737 GB, free: 8.375 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.001099/0.7298, allocations: 0.6872 MB / 0.9744 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.7298, allocations: 8.969 kB / 0.9744 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.285e-05/0.7299, allocations: 59.2 kB / 0.9744 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.7301, allocations: 44.28 kB / 0.9745 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000755/0.7309, allocations: 468.2 kB / 0.9749 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.7309, allocations: 18.81 kB / 0.9749 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/0.7309, allocations: 26.25 kB / 0.975 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.7315, allocations: 316.3 kB / 0.9753 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.7316, allocations: 1.344 kB / 0.9753 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.7316, allocations: 14.45 kB / 0.9753 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.7316, allocations: 7.625 kB / 0.9753 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004724/0.7321, allocations: 209.9 kB / 0.9755 GB, free: 6.934 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.001892/0.734, allocations: 1.488 MB / 0.9769 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.7345, allocations: 163.8 kB / 0.9771 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.7347, allocations: 73.84 kB / 0.9772 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001601/0.7348, allocations: 88.11 kB / 0.9773 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.7351, allocations: 141.7 kB / 0.9774 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 2.294e-06/0.7352, allocations: 0 / 0.9774 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006551/0.7358, allocations: 238.1 kB / 0.9776 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.7359, allocations: 66.39 kB / 0.9777 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.7363, allocations: 335.8 kB / 0.978 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.7363, allocations: 31.77 kB / 0.978 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.7365, allocations: 212.7 kB / 0.9782 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.7366, allocations: 57.44 kB / 0.9783 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.338e-05/0.7366, allocations: 6.594 kB / 0.9783 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.7368, allocations: 345.9 kB / 0.9786 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.737, allocations: 76.83 kB / 0.9787 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.7372, allocations: 151.4 kB / 0.9788 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.7375, allocations: 116.5 kB / 0.979 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7375, allocations: 0.9688 kB / 0.979 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006228/0.7381, allocations: 321.3 kB / 0.9793 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.7382, allocations: 35.69 kB / 0.9793 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.7382, allocations: 3.031 kB / 0.9793 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.7382, allocations: 4.938 kB / 0.9793 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.7385, allocations: 56 kB / 0.9794 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.7385, allocations: 7.391 kB / 0.9794 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.7388, allocations: 45.8 kB / 0.9794 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.7388, allocations: 12.72 kB / 0.9794 GB, free: 3.684 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 ($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 (29): * Single equations (assignments): 28 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000157/0.739, allocations: 158.5 kB / 0.9796 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.941e-05/0.739, allocations: 40.11 kB / 0.9796 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004447/0.7395, allocations: 208.4 kB / 0.9798 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.7395, allocations: 2.125 kB / 0.9798 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.7395, allocations: 4 kB / 0.9798 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004618/0.74, allocations: 0.4893 MB / 0.9803 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004403/0.7404, allocations: 350 kB / 0.9806 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.7404, allocations: 1.531 kB / 0.9806 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.7406, allocations: 32.67 kB / 0.9807 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.7406, allocations: 1.281 kB / 0.9807 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.7406, allocations: 5.344 kB / 0.9807 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.7407, allocations: 0.9375 kB / 0.9807 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7407, allocations: 1.25 kB / 0.9807 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000622/0.7413, allocations: 307 kB / 0.981 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.7414, allocations: 130.1 kB / 0.9811 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.001e-05/0.7415, allocations: 9.062 kB / 0.9811 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.7417, allocations: 16.67 kB / 0.9811 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/0.7418, allocations: 22.59 kB / 0.9811 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.7418, allocations: 6.219 kB / 0.9811 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000253/0.7421, allocations: 234.7 kB / 0.9814 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7421, allocations: 0 / 0.9814 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004383/0.7425, allocations: 118.1 kB / 0.9815 GB, free: 2.035 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.7436, allocations: 0.909 MB / 0.9824 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005236/0.7441, allocations: 236.1 kB / 0.9826 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7441, allocations: 0 / 0.9826 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.7443, allocations: 78.89 kB / 0.9827 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009207/0.7452, allocations: 195.7 kB / 0.9828 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.7486, allocations: 2.125 MB / 0.9849 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.7489, allocations: 0.7923 MB / 0.9857 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002913/0.7492, allocations: 71.22 kB / 0.9858 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.7494, allocations: 119.4 kB / 0.9859 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of SimCode: time 4.11e-07/0.7494, allocations: 0 / 0.9859 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.77, allocations: 9.643 MB / 0.9953 GB, free: 5.148 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.7702, allocations: 189.9 kB / 0.9955 GB, free: 4.902 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.832, allocations: 0 / 0.9955 GB, free: 4.902 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat does not exist to compare? outputFormat=mat