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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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.0008987/0.0008986, allocations: 100.2 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.0009414/0.0009417, allocations: 177.3 kB / 15.94 MB, free: 228 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.301/1.301, allocations: 223.2 MB / 239.9 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.692/2.692, allocations: 409.2 MB / 0.6838 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003413, allocations: 12 kB / 0.8375 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6502/0.6505, allocations: 146.8 MB / 0.9809 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0129/0.6635, allocations: 12.14 MB / 0.9927 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.004754/0.6683, allocations: 3.167 MB / 0.9958 GB, free: 6.93 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005024/0.6688, allocations: 15.88 kB / 0.9958 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0006729/0.6695, allocations: 203 kB / 0.996 GB, free: 6.715 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001598/0.6711, allocations: 0.5842 MB / 0.9966 GB, free: 6.129 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.6726, allocations: 461.1 kB / 0.997 GB, free: 5.684 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00111/0.6737, allocations: 0.6517 MB / 0.9977 GB, free: 5.027 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003797/0.6741, allocations: 234.7 kB / 0.9979 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004019/0.6745, allocations: 275 kB / 0.9982 GB, free: 4.523 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.6747, allocations: 203.1 kB / 0.9983 GB, free: 4.324 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.6748, allocations: 12 kB / 0.9984 GB, free: 4.312 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004712/0.6753, allocations: 163.8 kB / 0.9985 GB, free: 4.152 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 8.649e-05/0.6754, allocations: 71.73 kB / 0.9986 GB, free: 4.082 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.6755, allocations: 97.45 kB / 0.9987 GB, free: 3.98 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.000474/0.676, allocations: 425.2 kB / 0.9991 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.676, allocations: 0 / 0.9991 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.024e-06/0.676, allocations: 4 kB / 0.9991 GB, free: 3.562 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.676, allocations: 0 / 0.9991 GB, free: 3.562 MB / 0.7481 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.001024/0.677, allocations: 0.6756 MB / 0.9997 GB, free: 2.832 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.6771, allocations: 12.03 kB / 0.9998 GB, free: 2.82 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.776e-05/0.6772, allocations: 54.55 kB / 0.9998 GB, free: 2.758 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.6773, allocations: 59.47 kB / 0.9999 GB, free: 2.699 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006557/0.678, allocations: 426.6 kB / 1 GB, free: 2.246 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.678, allocations: 20.56 kB / 1 GB, free: 2.223 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.6781, allocations: 24 kB / 1 GB, free: 2.199 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005809/0.6787, allocations: 314.2 kB / 1.001 GB, free: 1.875 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.6787, allocations: 0 / 1.001 GB, free: 1.875 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.6788, allocations: 12 kB / 1.001 GB, free: 1.863 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.6788, allocations: 11.94 kB / 1.001 GB, free: 1.852 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004717/0.6793, allocations: 206 kB / 1.001 GB, free: 1.652 MB / 0.7481 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.001863/0.6811, allocations: 1.505 MB / 1.002 GB, free: 20 kB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000481/0.6816, allocations: 166.6 kB / 1.002 GB, free: 15.85 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.6818, allocations: 89.09 kB / 1.003 GB, free: 15.74 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002925/0.6821, allocations: 129.5 kB / 1.003 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.6821, allocations: 3.938 kB / 1.003 GB, free: 15.6 MB / 0.7637 GB Notification: Performance of matching and sorting (n=15): time 0.0006237/0.6827, allocations: 253.1 kB / 1.003 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.6828, allocations: 51.41 kB / 1.003 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000365/0.6832, allocations: 365.6 kB / 1.003 GB, free: 14.92 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.6832, allocations: 29.7 kB / 1.003 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.6833, allocations: 211.8 kB / 1.004 GB, free: 14.67 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 4.946e-05/0.6834, allocations: 55.28 kB / 1.004 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.6834, allocations: 4 kB / 1.004 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.6836, allocations: 342.8 kB / 1.004 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.6838, allocations: 75.94 kB / 1.004 GB, free: 14.2 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.684, allocations: 153.3 kB / 1.004 GB, free: 14.01 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.6843, allocations: 113.7 kB / 1.004 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.6843, allocations: 0 / 1.004 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006121/0.6849, allocations: 324 kB / 1.005 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.685, allocations: 41.94 kB / 1.005 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.685, allocations: 7.953 kB / 1.005 GB, free: 13.51 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.685, allocations: 4 kB / 1.005 GB, free: 13.51 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.6852, allocations: 59.91 kB / 1.005 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.6853, allocations: 4 kB / 1.005 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.6856, allocations: 43.67 kB / 1.005 GB, free: 13.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.6856, allocations: 12 kB / 1.005 GB, free: 13.39 MB / 0.7637 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.0001804/0.6858, allocations: 161.8 kB / 1.005 GB, free: 13.22 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.6858, allocations: 31.62 kB / 1.005 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000475/0.6863, allocations: 216.9 kB / 1.005 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.6863, allocations: 3.953 kB / 1.005 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.6863, allocations: 0 / 1.005 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004826/0.6868, allocations: 497.9 kB / 1.006 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.6873, allocations: 349.4 kB / 1.006 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6873, allocations: 3.938 kB / 1.006 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.6875, allocations: 35.92 kB / 1.006 GB, free: 11.97 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.6875, allocations: 7.984 kB / 1.006 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.6875, allocations: 4 kB / 1.006 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.6875, allocations: 0 / 1.006 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.6875, allocations: 3.953 kB / 1.006 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006183/0.6882, allocations: 296.6 kB / 1.006 GB, free: 11.65 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.6883, allocations: 136.6 kB / 1.006 GB, free: 11.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.238e-05/0.6884, allocations: 4 kB / 1.006 GB, free: 11.49 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.6887, allocations: 19.98 kB / 1.006 GB, free: 11.47 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.6887, allocations: 27.86 kB / 1.006 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.6888, allocations: 8 kB / 1.006 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000263/0.689, allocations: 255.2 kB / 1.007 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.81e-07/0.689, allocations: 0 / 1.007 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004473/0.6895, allocations: 124.1 kB / 1.007 GB, free: 11.07 MB / 0.7637 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.001063/0.6906, allocations: 0.9218 MB / 1.008 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004956/0.6911, allocations: 232.7 kB / 1.008 GB, free: 9.883 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.6911, allocations: 0 / 1.008 GB, free: 9.883 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.6913, allocations: 86.48 kB / 1.008 GB, free: 9.801 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000947/0.6922, allocations: 199.8 kB / 1.008 GB, free: 9.609 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00384/0.6961, allocations: 3.679 MB / 1.012 GB, free: 5.836 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.6965, allocations: 0.8001 MB / 1.013 GB, free: 5.012 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002926/0.6968, allocations: 67.19 kB / 1.013 GB, free: 4.945 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.6969, allocations: 119.4 kB / 1.013 GB, free: 4.828 MB / 0.7637 GB Notification: Performance of SimCode: time 1.192e-06/0.6969, allocations: 4 kB / 1.013 GB, free: 4.824 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.7194, allocations: 10.06 MB / 1.023 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.7196, allocations: 185.9 kB / 1.023 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.87/3.59, allocations: 4 kB / 1.023 GB, free: 10.74 MB / 0.7794 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat does not exist to compare? outputFormat=mat