Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",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.0009407/0.0009403, 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.0008351/0.0008351, 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.346/1.346, 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.339/2.339, allocations: 390.4 MB / 0.6655 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003706, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7122/0.7126, allocations: 142.3 MB / 0.9539 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001562/0.7142, allocations: 1.275 MB / 0.9551 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007478/0.715, allocations: 0.5476 MB / 0.9556 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.505e-05/0.715, allocations: 0 / 0.9556 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.696e-05/0.7151, allocations: 9.203 kB / 0.9557 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.552e-05/0.7151, allocations: 9.469 kB / 0.9557 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.7154, allocations: 40.33 kB / 0.9557 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.192e-05/0.7155, allocations: 45.06 kB / 0.9557 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.253e-05/0.7156, allocations: 10.28 kB / 0.9558 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.853e-05/0.7157, allocations: 25.31 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.7157, allocations: 23.52 kB / 0.9558 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.7158, allocations: 5.531 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.7159, allocations: 42.08 kB / 0.9558 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.322e-05/0.7159, allocations: 23.28 kB / 0.9559 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.716, allocations: 37.45 kB / 0.9559 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.7161, allocations: 64.98 kB / 0.956 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.7161, allocations: 0 / 0.956 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.7161, allocations: 3.938 kB / 0.956 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.7161, allocations: 1.281 kB / 0.956 GB, free: 6.426 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004175/0.7165, allocations: 383.9 kB / 0.9563 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.7166, allocations: 9.781 kB / 0.9563 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.932e-05/0.7166, allocations: 31.41 kB / 0.9564 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008019/0.7174, allocations: 214.5 kB / 0.9566 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.7175, allocations: 190.4 kB / 0.9568 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.7176, allocations: 33 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.7176, allocations: 2.344 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000374/0.718, allocations: 175.2 kB / 0.957 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.718, allocations: 4 kB / 0.957 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.718, allocations: 1.281 kB / 0.957 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.718, allocations: 3.953 kB / 0.957 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.7186, allocations: 242.9 kB / 0.9572 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007077/0.7193, allocations: 0.5103 MB / 0.9577 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004962/0.7198, allocations: 245.3 kB / 0.9579 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.7201, allocations: 122.7 kB / 0.9581 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.7201, allocations: 8.062 kB / 0.9581 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.7201, allocations: 35.94 kB / 0.9581 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.7201, allocations: 0 / 0.9581 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0008666/0.721, allocations: 377.2 kB / 0.9585 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.271e-05/0.721, allocations: 60.44 kB / 0.9585 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.7211, allocations: 171.9 kB / 0.9587 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.7212, allocations: 25.7 kB / 0.9587 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.7212, allocations: 97.48 kB / 0.9588 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.7212, allocations: 9.062 kB / 0.9588 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.936e-06/0.7212, allocations: 4 kB / 0.9588 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.65e-05/0.7213, allocations: 321.5 kB / 0.9591 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.7216, allocations: 117.8 kB / 0.9592 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.7218, allocations: 115.8 kB / 0.9593 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.7221, allocations: 98.67 kB / 0.9594 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.7221, allocations: 0 / 0.9594 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005329/0.7226, allocations: 266.3 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.7227, allocations: 5.5 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.7227, allocations: 4.031 kB / 0.9597 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.7227, allocations: 0 / 0.9597 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.7229, allocations: 51.22 kB / 0.9597 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.7229, allocations: 0 / 0.9597 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.723, allocations: 43.09 kB / 0.9598 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.7231, allocations: 5.359 kB / 0.9598 GB, free: 3.609 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 6.301e-05/0.7231, allocations: 115.3 kB / 0.9599 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.7232, allocations: 11.98 kB / 0.9599 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.105e-05/0.7232, allocations: 15.92 kB / 0.9599 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.7232, allocations: 0 / 0.9599 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.7232, allocations: 0 / 0.9599 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.7232, allocations: 1.375 kB / 0.9599 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.7234, allocations: 246.5 kB / 0.9602 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.7234, allocations: 4 kB / 0.9602 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.7236, allocations: 43.27 kB / 0.9602 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.7236, allocations: 3.953 kB / 0.9602 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.7237, allocations: 5.984 kB / 0.9602 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.7237, allocations: 0 / 0.9602 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.7237, allocations: 1 kB / 0.9602 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005875/0.7243, allocations: 360.4 kB / 0.9606 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.735e-05/0.7243, allocations: 92 kB / 0.9606 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.7243, allocations: 4.922 kB / 0.9607 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.7245, allocations: 37.78 kB / 0.9607 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.7245, allocations: 4.953 kB / 0.9607 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.7246, allocations: 6.062 kB / 0.9607 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.781e-05/0.7246, allocations: 128.5 kB / 0.9608 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7246, allocations: 0 / 0.9608 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002539/0.7249, allocations: 15.62 kB / 0.9608 GB, free: 2.738 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0007852/0.7257, allocations: 0.8817 MB / 0.9617 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005511/0.7263, allocations: 250.3 kB / 0.9619 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.7263, allocations: 0 / 0.9619 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.7266, allocations: 116.1 kB / 0.962 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.7268, allocations: 11.88 kB / 0.9621 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.7287, allocations: 1.173 MB / 0.9632 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.7288, allocations: 0.6993 MB / 0.9639 GB, free: 424 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.742e-05/0.7289, allocations: 21.31 kB / 0.9639 GB, free: 416 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.584e-05/0.729, allocations: 34.44 kB / 0.9639 GB, free: 388 kB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.729, allocations: 4 kB / 0.9639 GB, free: 384 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.7408, allocations: 2.346 MB / 0.9662 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/0.741, allocations: 195.3 kB / 0.9664 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.458, allocations: 3.938 kB / 0.9664 GB, free: 15.02 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat does not exist to compare? outputFormat=mat