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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0009549/0.0009549, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.006876/0.006876, allocations: 170.7 kB / 16.26 MB, free: 6.613 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.213/1.213, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.35/2.35, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.0002759, allocations: 11.14 kB / 0.9029 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.221, allocations: 159.6 MB / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001366/0.2224, allocations: 1.307 MB / 1.06 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007669/0.2232, allocations: 0.5885 MB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.2232, allocations: 0 / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.373e-05/0.2233, allocations: 3.938 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.919e-05/0.2233, allocations: 7.922 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.2235, allocations: 43.95 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.986e-05/0.2236, allocations: 43.86 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.522e-05/0.2237, allocations: 15.98 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.341e-05/0.2238, allocations: 27.91 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.34e-05/0.2238, allocations: 15.86 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.2239, allocations: 7.938 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.224, allocations: 43.95 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.424e-05/0.224, allocations: 19.92 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.084e-05/0.2241, allocations: 53.5 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.2242, allocations: 95.95 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2242, allocations: 4 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2242, allocations: 0 / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.745e-06/0.2242, allocations: 0 / 1.061 GB, free: 2.539 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.000409/0.2246, allocations: 383.1 kB / 1.061 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2247, allocations: 15.97 kB / 1.061 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.2247, allocations: 34.75 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007535/0.2255, allocations: 212.5 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.2256, allocations: 184.7 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.725e-05/0.2257, allocations: 42 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.2257, allocations: 7.938 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.226, allocations: 173.5 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.226, allocations: 0 / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2261, allocations: 4 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.2261, allocations: 0 / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005107/0.2266, allocations: 243.7 kB / 1.062 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006907/0.2273, allocations: 0.5039 MB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/0.2278, allocations: 242.3 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.2281, allocations: 120.8 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.2281, allocations: 0 / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.388e-05/0.2281, allocations: 34.56 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.31e-07/0.2281, allocations: 0 / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0008589/0.229, allocations: 385.2 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/0.229, allocations: 55.34 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.2291, allocations: 168.2 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.2291, allocations: 25.7 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.472e-05/0.2292, allocations: 104 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.2292, allocations: 8.016 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/0.2292, allocations: 9.719 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.2293, allocations: 318.8 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.2296, allocations: 111.9 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/0.2298, allocations: 123.9 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004556/0.2303, allocations: 204.7 kB / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2303, allocations: 0 / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005367/0.2309, allocations: 265.2 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/0.2309, allocations: 8.031 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.2309, allocations: 0 / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.2309, allocations: 4 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.2311, allocations: 47.84 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2311, allocations: 7.922 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.2312, allocations: 39.94 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.2313, allocations: 7.984 kB / 1.065 GB, free: 14.28 MB / 0.8262 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 6.983e-05/0.2313, allocations: 117.8 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.2314, allocations: 7.906 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.969e-05/0.2314, allocations: 15.86 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.2314, allocations: 0 / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2314, allocations: 3.938 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.2314, allocations: 0 / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.2316, allocations: 249.5 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2316, allocations: 0 / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.2318, allocations: 43.92 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2318, allocations: 0 / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.2318, allocations: 11.92 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2318, allocations: 3.938 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2319, allocations: 3.938 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005705/0.2324, allocations: 363.2 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.2325, allocations: 85.02 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.2325, allocations: 0 / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.2327, allocations: 39.92 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.2327, allocations: 3.969 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2327, allocations: 8 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.859e-05/0.2328, allocations: 128.3 kB / 1.066 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2328, allocations: 4 kB / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002218/0.2331, allocations: 16 kB / 1.066 GB, free: 13.11 MB / 0.8262 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.0007964/0.2339, allocations: 0.8879 MB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005371/0.2344, allocations: 239.7 kB / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2344, allocations: 0 / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.2347, allocations: 119.9 kB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.2349, allocations: 14.3 kB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.2376, allocations: 2.358 MB / 1.07 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.2378, allocations: 0.7004 MB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.105e-05/0.2379, allocations: 28.09 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.2379, allocations: 31.36 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2379, allocations: 0 / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7617/0.9996, allocations: 2.379 MB / 1.073 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003006/1, allocations: 211.8 kB / 1.073 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/2.612, allocations: 3.938 kB / 1.073 GB, free: 6.102 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)