Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_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.00139/0.00139, 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.001625/0.001625, allocations: 199.3 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.22/1.22, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.417/2.417, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 66.94 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2398, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002554/0.2423, allocations: 1.599 MB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008357/0.2432, allocations: 0.5849 MB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.2432, allocations: 3.938 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.447e-05/0.2433, allocations: 3.938 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.738e-05/0.2434, allocations: 15.91 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.2436, allocations: 55.83 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.527e-05/0.2437, allocations: 43.91 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.279e-05/0.2438, allocations: 19.98 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.2e-05/0.2438, allocations: 19.88 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.033e-05/0.2439, allocations: 27.84 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.2439, allocations: 4 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.2441, allocations: 55.94 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.8e-05/0.2441, allocations: 19.92 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.482e-05/0.2442, allocations: 27.8 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.2443, allocations: 103.9 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.676e-06/0.2443, allocations: 0 / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2443, allocations: 0 / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.2443, allocations: 0 / 1.055 GB, free: 5.68 MB / 0.8106 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.0004621/0.2448, allocations: 387.1 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.2448, allocations: 8.625 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.956e-05/0.2449, allocations: 42.75 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000824/0.2457, allocations: 200.5 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.2459, allocations: 196.6 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.72e-05/0.2459, allocations: 46 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.2459, allocations: 0 / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.2463, allocations: 169.5 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.2464, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2464, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2464, allocations: 4 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005571/0.2469, allocations: 239.7 kB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007504/0.2477, allocations: 0.5039 MB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.2483, allocations: 238.3 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.2485, allocations: 120.8 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.926e-06/0.2486, allocations: 0 / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.2486, allocations: 38.55 kB / 1.058 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.2486, allocations: 3.938 kB / 1.058 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0009165/0.2495, allocations: 369.3 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.2496, allocations: 55.34 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.2497, allocations: 164.2 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.2497, allocations: 29.7 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.2498, allocations: 100.1 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.2498, allocations: 7.891 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.723e-05/0.2499, allocations: 17.7 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.25, allocations: 330.8 kB / 1.059 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.2503, allocations: 111.9 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.2505, allocations: 115.9 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000499/0.251, allocations: 196.7 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.251, allocations: 0 / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005903/0.2516, allocations: 257.4 kB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2517, allocations: 9.859 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.2517, allocations: 0 / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2517, allocations: 4 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.2519, allocations: 43.95 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2519, allocations: 7.875 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.2521, allocations: 35.84 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.2521, allocations: 11.98 kB / 1.059 GB, free: 1.453 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.472e-05/0.2522, allocations: 117.8 kB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.744e-05/0.2522, allocations: 7.906 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.94e-05/0.2522, allocations: 15.88 kB / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.2523, allocations: 0 / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2523, allocations: 3.938 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.2523, allocations: 0 / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002434/0.2525, allocations: 253.6 kB / 1.06 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2525, allocations: 3.984 kB / 1.06 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.2527, allocations: 43.91 kB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2527, allocations: 0 / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.2527, allocations: 8 kB / 1.06 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2527, allocations: 0 / 1.06 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2527, allocations: 7.922 kB / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000628/0.2534, allocations: 347.2 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.2534, allocations: 92.94 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.2535, allocations: 0 / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.2537, allocations: 35.97 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.2537, allocations: 3.938 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.2537, allocations: 7.984 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.973e-05/0.2538, allocations: 130.3 kB / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2538, allocations: 0 / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002421/0.2541, allocations: 19.94 kB / 1.06 GB, free: 292 kB / 0.8106 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 (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.000906/0.255, allocations: 0.8842 MB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005919/0.2556, allocations: 231.7 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.2556, allocations: 0 / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002875/0.2559, allocations: 123.9 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.2561, allocations: 3.938 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00302/0.2591, allocations: 2.335 MB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.2594, allocations: 0.7001 MB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.984e-05/0.2595, allocations: 24 kB / 1.065 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.68e-05/0.2595, allocations: 31.41 kB / 1.065 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2596, allocations: 0 / 1.065 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.19/1.45, allocations: 2.605 MB / 1.067 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/9.381, allocations: 5.812 kB / 1.067 GB, free: 9.297 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)