Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_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.001563/0.001563, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001777/0.001777, allocations: 193 kB / 16.14 MB, free: 6.711 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.314/1.314, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.91 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.474/0.4755, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002538/0.478, allocations: 1.649 MB / 1.018 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008624/0.4789, allocations: 0.5969 MB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.953e-05/0.479, allocations: 0 / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4e-05/0.479, allocations: 7.938 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.532e-05/0.4791, allocations: 11.92 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.4793, allocations: 43.89 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.102e-05/0.4794, allocations: 39.92 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.385e-05/0.4795, allocations: 15.98 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.272e-05/0.4796, allocations: 31.84 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.523e-05/0.4797, allocations: 23.86 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.4797, allocations: 4 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.4798, allocations: 43.95 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.4799, allocations: 19.92 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.942e-05/0.4799, allocations: 35.78 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.4801, allocations: 86 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4801, allocations: 0 / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.41e-07/0.4801, allocations: 0 / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.4801, allocations: 0 / 1.019 GB, free: 192 kB / 0.7637 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.0004931/0.4806, allocations: 399.1 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.4806, allocations: 12.03 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.883e-05/0.4807, allocations: 30.75 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009107/0.4816, allocations: 212.5 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.4817, allocations: 195.4 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.155e-05/0.4818, allocations: 38 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.4818, allocations: 4 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004159/0.4822, allocations: 173.5 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.4822, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.4823, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.4823, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005978/0.4829, allocations: 243.7 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000808/0.4837, allocations: 0.5115 MB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.4843, allocations: 234.3 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.4846, allocations: 120.8 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.4846, allocations: 3.984 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.4846, allocations: 34.56 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.4846, allocations: 0 / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0009539/0.4856, allocations: 365.2 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.4856, allocations: 55.34 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.4858, allocations: 172.4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.4858, allocations: 25.7 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.4859, allocations: 108.1 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.4859, allocations: 7.891 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.4859, allocations: 25.7 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.486, allocations: 318.8 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.4864, allocations: 111.9 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.4866, allocations: 115.9 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005239/0.4872, allocations: 200.6 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4872, allocations: 4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006264/0.4878, allocations: 253.3 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.4878, allocations: 13.34 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.4878, allocations: 4 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.4879, allocations: 0 / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.4881, allocations: 43.95 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.4881, allocations: 3.938 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.4883, allocations: 43.83 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.4883, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 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 8.241e-05/0.4884, allocations: 126.4 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.4884, allocations: 7.906 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.586e-05/0.4884, allocations: 3.875 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.4884, allocations: 4 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4885, allocations: 3.938 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-06/0.4885, allocations: 0 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.4887, allocations: 245.6 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.4887, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.4889, allocations: 55.84 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.4889, allocations: 0 / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.4889, allocations: 0 / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.4889, allocations: 3.984 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.489, allocations: 3.938 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006506/0.4896, allocations: 343.2 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.4897, allocations: 89 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.4897, allocations: 4 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.4899, allocations: 39.97 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.4899, allocations: 3.938 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.49, allocations: 3.984 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.869e-05/0.49, allocations: 126.5 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4901, allocations: 0 / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002549/0.4903, allocations: 23.98 kB / 1.024 GB, free: 10.79 MB / 0.7794 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.0009179/0.4912, allocations: 0.8879 MB / 1.025 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006168/0.4919, allocations: 235.8 kB / 1.025 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4919, allocations: 3.938 kB / 1.025 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.4922, allocations: 123.9 kB / 1.025 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.4924, allocations: 11.94 kB / 1.025 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.4955, allocations: 2.334 MB / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.4957, allocations: 0.699 MB / 1.028 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001064/0.4958, allocations: 27.98 kB / 1.028 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-05/0.4959, allocations: 31.41 kB / 1.028 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of SimCode: time 3.5e-07/0.4959, allocations: 0 / 1.028 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3763/0.8722, allocations: 2.45 MB / 1.031 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.8725, allocations: 202.1 kB / 1.031 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.782, allocations: 0 / 1.031 GB, free: 3.707 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)