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.000971/0.000971, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009477/0.0009478, allocations: 177.3 kB / 15.95 MB, free: 216 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.362/1.362, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.349/2.349, allocations: 390.3 MB / 0.6653 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003522, allocations: 11.98 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7282/0.7286, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01182/0.7404, allocations: 12.13 MB / 0.9654 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00499/0.7454, allocations: 3.176 MB / 0.9685 GB, free: 12 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004632/0.7459, allocations: 12.44 kB / 0.9685 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006248/0.7466, allocations: 202.1 kB / 0.9687 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001699/0.7483, allocations: 0.5877 MB / 0.9693 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.7495, allocations: 471.5 kB / 0.9698 GB, free: 11 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001012/0.7505, allocations: 0.6445 MB / 0.9704 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.7509, allocations: 236.2 kB / 0.9706 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004249/0.7514, allocations: 281.6 kB / 0.9709 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002755/0.7516, allocations: 194.3 kB / 0.9711 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.7517, allocations: 12.69 kB / 0.9711 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004917/0.7522, allocations: 167.9 kB / 0.9712 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.46e-05/0.7523, allocations: 65.83 kB / 0.9713 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.7524, allocations: 100.4 kB / 0.9714 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.7529, allocations: 426 kB / 0.9718 GB, free: 9.707 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.7529, allocations: 4 kB / 0.9718 GB, free: 9.703 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.559e-06/0.7529, allocations: 3.984 kB / 0.9718 GB, free: 9.699 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.7529, allocations: 4.719 kB / 0.9718 GB, free: 9.695 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.001093/0.754, allocations: 0.6736 MB / 0.9725 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.7541, allocations: 12.81 kB / 0.9725 GB, free: 9.086 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.07e-05/0.7542, allocations: 63.53 kB / 0.9725 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/0.7544, allocations: 44.28 kB / 0.9726 GB, free: 9.004 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006876/0.7551, allocations: 422.5 kB / 0.973 GB, free: 8.629 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.7551, allocations: 19.91 kB / 0.973 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.7552, allocations: 29.97 kB / 0.973 GB, free: 8.609 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006213/0.7558, allocations: 309.9 kB / 0.9733 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.7558, allocations: 5.156 kB / 0.9733 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.7559, allocations: 10.06 kB / 0.9733 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.7559, allocations: 7.938 kB / 0.9734 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004992/0.7564, allocations: 206.7 kB / 0.9736 GB, free: 8.293 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.001776/0.7582, allocations: 1.499 MB / 0.975 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004503/0.7587, allocations: 171 kB / 0.9752 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001598/0.7588, allocations: 91.84 kB / 0.9753 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.7591, allocations: 133.2 kB / 0.9754 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.7592, allocations: 4 kB / 0.9754 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006884/0.7598, allocations: 244.5 kB / 0.9756 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.7599, allocations: 59 kB / 0.9757 GB, free: 6.422 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004127/0.7603, allocations: 357.7 kB / 0.976 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.7604, allocations: 35.7 kB / 0.9761 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.7605, allocations: 220.8 kB / 0.9763 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.029e-05/0.7606, allocations: 50.27 kB / 0.9763 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.286e-05/0.7606, allocations: 5.125 kB / 0.9763 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.7607, allocations: 342 kB / 0.9766 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.7609, allocations: 77.52 kB / 0.9767 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.7612, allocations: 142.8 kB / 0.9769 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.7614, allocations: 125.8 kB / 0.977 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.7614, allocations: 0 / 0.977 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006156/0.762, allocations: 317.5 kB / 0.9773 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.7621, allocations: 40.06 kB / 0.9773 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.7621, allocations: 3.219 kB / 0.9773 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.7621, allocations: 8.469 kB / 0.9773 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.7624, allocations: 55.94 kB / 0.9774 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.7624, allocations: 7.875 kB / 0.9774 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000299/0.7627, allocations: 50.41 kB / 0.9774 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.7627, allocations: 8.844 kB / 0.9774 GB, free: 5.055 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.7629, allocations: 157.4 kB / 0.9776 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.763, allocations: 32.62 kB / 0.9776 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005137/0.7635, allocations: 211 kB / 0.9778 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.7635, allocations: 2.031 kB / 0.9778 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.7635, allocations: 0 / 0.9778 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000539/0.764, allocations: 0.4893 MB / 0.9783 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004345/0.7645, allocations: 361.9 kB / 0.9787 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.7645, allocations: 1.344 kB / 0.9787 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.7647, allocations: 33.25 kB / 0.9787 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.7647, allocations: 1.094 kB / 0.9787 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.7647, allocations: 5.094 kB / 0.9787 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.7647, allocations: 1.062 kB / 0.9787 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7647, allocations: 5 kB / 0.9787 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006455/0.7654, allocations: 305 kB / 0.979 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.7656, allocations: 134.9 kB / 0.9791 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.115e-05/0.7656, allocations: 1 kB / 0.9791 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.7659, allocations: 28.52 kB / 0.9791 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.766, allocations: 18.94 kB / 0.9792 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.766, allocations: 13.11 kB / 0.9792 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002704/0.7663, allocations: 251.7 kB / 0.9794 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7663, allocations: 0 / 0.9794 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004795/0.7668, allocations: 122.8 kB / 0.9795 GB, free: 3.383 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.001089/0.7678, allocations: 0.9277 MB / 0.9804 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004916/0.7684, allocations: 234 kB / 0.9807 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7684, allocations: 4.125 kB / 0.9807 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001963/0.7686, allocations: 78.23 kB / 0.9807 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009334/0.7695, allocations: 194.6 kB / 0.9809 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.7734, allocations: 3.675 MB / 0.9845 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.7738, allocations: 0.8043 MB / 0.9853 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002928/0.7741, allocations: 68.53 kB / 0.9854 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.7742, allocations: 113.5 kB / 0.9855 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of SimCode: time 3.6e-07/0.7743, allocations: 0 / 0.9855 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.7965, allocations: 10.07 MB / 0.9953 GB, free: 4.887 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.7967, allocations: 174.9 kB / 0.9955 GB, free: 4.648 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.703, allocations: 6.688 kB / 0.9955 GB, free: 4.645 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