Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007582/0.0007582, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007603/0.0007603, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8604/0.8604, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.661/1.661, allocations: 377.9 MB / 0.6221 GB, free: 8.691 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 0.981 GB, free: 2.602 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.633e-05/2.78e-05, allocations: 2.281 kB / 0.981 GB, free: 2.598 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002029/0.002057, allocations: 1.588 MB / 0.9825 GB, free: 1 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007811/0.002838, allocations: 0.6272 MB / 0.9831 GB, free: 376 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.359e-05/0.002892, allocations: 0 / 0.9831 GB, free: 376 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 4.341e-05/0.002935, allocations: 7.875 kB / 0.9832 GB, free: 368 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 8.278e-05/0.003018, allocations: 3.938 kB / 0.9832 GB, free: 364 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.003338, allocations: 67.73 kB / 0.9832 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.852e-05/0.003437, allocations: 51.78 kB / 0.9833 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.113e-05/0.003528, allocations: 19.92 kB / 0.9833 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.003648, allocations: 35.92 kB / 0.9833 GB, free: 188 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 5.512e-05/0.003703, allocations: 23.91 kB / 0.9833 GB, free: 164 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.003718, allocations: 4 kB / 0.9834 GB, free: 160 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.003831, allocations: 51.88 kB / 0.9834 GB, free: 108 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.003885, allocations: 23.92 kB / 0.9834 GB, free: 84 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.684e-05/0.003912, allocations: 19.92 kB / 0.9834 GB, free: 64 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.004081, allocations: 107.8 kB / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.004083, allocations: 0 / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.102e-06/0.004084, allocations: 0 / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.004088, allocations: 0 / 0.9835 GB, free: 15.95 MB / 0.948 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.0004407/0.004529, allocations: 329.8 kB / 0.9839 GB, free: 15.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001682/0.004697, allocations: 12.03 kB / 0.9839 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.004728, allocations: 42.69 kB / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005188/0.005247, allocations: 336.1 kB / 0.9842 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.005426, allocations: 155.8 kB / 0.9844 GB, free: 15.04 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.00549, allocations: 71.94 kB / 0.9844 GB, free: 14.96 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.005502, allocations: 4.375 kB / 0.9845 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.005771, allocations: 201.5 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.00578, allocations: 3.984 kB / 0.9847 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.005791, allocations: 8 kB / 0.9847 GB, free: 14.74 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.005796, allocations: 4 kB / 0.9847 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.006095, allocations: 283.6 kB / 0.9849 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005464/0.006641, allocations: 0.5187 MB / 0.9854 GB, free: 13.89 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.00695, allocations: 294.2 kB / 0.9857 GB, free: 13.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.007098, allocations: 144.7 kB / 0.9859 GB, free: 13.45 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.007113, allocations: 0 / 0.9859 GB, free: 13.45 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.007132, allocations: 34.56 kB / 0.9859 GB, free: 13.41 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.007133, allocations: 0 / 0.9859 GB, free: 13.41 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0005519/0.007684, allocations: 457 kB / 0.9863 GB, free: 12.96 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.007712, allocations: 59.47 kB / 0.9864 GB, free: 12.89 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.00782, allocations: 172.7 kB / 0.9865 GB, free: 12.71 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.007836, allocations: 25.7 kB / 0.9866 GB, free: 12.68 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.512e-05/0.007881, allocations: 100.1 kB / 0.9867 GB, free: 12.58 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.007906, allocations: 11.88 kB / 0.9867 GB, free: 12.57 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.00795, allocations: 41.69 kB / 0.9867 GB, free: 12.52 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.465e-05/0.008034, allocations: 322.8 kB / 0.987 GB, free: 12.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.008195, allocations: 143.8 kB / 0.9872 GB, free: 12.05 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.008336, allocations: 139.8 kB / 0.9873 GB, free: 11.92 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.008598, allocations: 248.5 kB / 0.9875 GB, free: 11.67 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.0086, allocations: 0 / 0.9875 GB, free: 11.67 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003269/0.008927, allocations: 321.2 kB / 0.9878 GB, free: 11.35 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.008942, allocations: 8 kB / 0.9878 GB, free: 11.34 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.008948, allocations: 3.984 kB / 0.9879 GB, free: 11.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.00896, allocations: 4.031 kB / 0.9879 GB, free: 11.34 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.009104, allocations: 79.83 kB / 0.9879 GB, free: 11.26 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.009108, allocations: 0 / 0.9879 GB, free: 11.26 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.745e-05/0.009186, allocations: 59.8 kB / 0.988 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.292e-05/0.009238, allocations: 75.83 kB / 0.9881 GB, free: 11.12 MB / 0.948 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.686e-05/0.009305, allocations: 113.8 kB / 0.9882 GB, free: 11 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.009327, allocations: 7.953 kB / 0.9882 GB, free: 11 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.898e-05/0.009346, allocations: 11.95 kB / 0.9882 GB, free: 10.99 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.009348, allocations: 0 / 0.9882 GB, free: 10.99 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.009353, allocations: 4 kB / 0.9882 GB, free: 10.98 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.009356, allocations: 3.938 kB / 0.9882 GB, free: 10.98 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.009519, allocations: 224.4 kB / 0.9884 GB, free: 10.72 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.009521, allocations: 4 kB / 0.9884 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.153e-05/0.009613, allocations: 79.88 kB / 0.9885 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.009615, allocations: 0 / 0.9885 GB, free: 10.64 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.009627, allocations: 7.984 kB / 0.9885 GB, free: 10.63 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.009629, allocations: 4 kB / 0.9885 GB, free: 10.62 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.00963, allocations: 0 / 0.9885 GB, free: 10.62 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003753/0.01001, allocations: 423 kB / 0.9889 GB, free: 10.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.543e-05/0.01002, allocations: 11.91 kB / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.01004, allocations: 0 / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.026e-05/0.01013, allocations: 63.89 kB / 0.989 GB, free: 10.12 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.01015, allocations: 4 kB / 0.989 GB, free: 10.12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/0.0102, allocations: 71.83 kB / 0.989 GB, free: 10.05 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.3e-05/0.01026, allocations: 125.2 kB / 0.9892 GB, free: 9.926 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01026, allocations: 0 / 0.9892 GB, free: 9.926 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001754/0.01043, allocations: 19.94 kB / 0.9892 GB, free: 9.906 MB / 0.948 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.0005913/0.01103, allocations: 0.9465 MB / 0.9901 GB, free: 8.93 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003583/0.01138, allocations: 299.5 kB / 0.9904 GB, free: 8.637 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01139, allocations: 0 / 0.9904 GB, free: 8.637 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.01154, allocations: 151.8 kB / 0.9905 GB, free: 8.488 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.01171, allocations: 4 kB / 0.9905 GB, free: 8.484 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.0138, allocations: 2.495 MB / 0.993 GB, free: 5.91 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.439e-05/0.01387, allocations: 83.38 kB / 0.9931 GB, free: 5.805 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0001554/0.01402, allocations: 195.6 kB / 0.9932 GB, free: 5.613 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.516e-05/0.0141, allocations: 44.45 kB / 0.9933 GB, free: 5.57 MB / 0.948 GB Notification: Performance of SimCode: time 1.062e-06/0.0141, allocations: 0 / 0.9933 GB, free: 5.57 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.03208, allocations: 3.406 MB / 0.9966 GB, free: 2.301 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.649/6.681, allocations: 14.23 kB / 0.9966 GB, free: 2.289 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.534403546713293]