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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.002036/0.002036, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.388/1.388, allocations: 222.9 MB / 240.6 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.2 MB / 0.665 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 67.89 kB / 0.8127 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7864/0.788, allocations: 140.4 MB / 0.9498 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002717/0.7908, allocations: 1.648 MB / 0.9514 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008577/0.7917, allocations: 0.5738 MB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.366e-05/0.7917, allocations: 5.312 kB / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.943e-05/0.7918, allocations: 0 / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.441e-05/0.7919, allocations: 5.312 kB / 0.952 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.7922, allocations: 60.56 kB / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.364e-05/0.7923, allocations: 43.39 kB / 0.9521 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.757e-05/0.7924, allocations: 23.02 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.109e-05/0.7924, allocations: 20.88 kB / 0.9521 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.05e-05/0.7925, allocations: 24.34 kB / 0.9521 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.7925, allocations: 2.594 kB / 0.9521 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.7927, allocations: 53.77 kB / 0.9522 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.217e-05/0.7927, allocations: 26.88 kB / 0.9522 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.7928, allocations: 30.55 kB / 0.9522 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.7929, allocations: 69.56 kB / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.7929, allocations: 0 / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7929, allocations: 0 / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.7929, allocations: 1.188 kB / 0.9523 GB, free: 7.172 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.0004674/0.7934, allocations: 395.1 kB / 0.9527 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.7934, allocations: 9.531 kB / 0.9527 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008898/0.7943, allocations: 207 kB / 0.9529 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.7945, allocations: 194.9 kB / 0.9531 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.7945, allocations: 33.91 kB / 0.9531 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.7945, allocations: 9.562 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004019/0.7949, allocations: 169.3 kB / 0.9533 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.795, allocations: 5.828 kB / 0.9533 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.795, allocations: 0 / 0.9533 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.795, allocations: 0 / 0.9533 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/0.7956, allocations: 235 kB / 0.9535 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007804/0.7964, allocations: 0.5119 MB / 0.954 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.7969, allocations: 238.2 kB / 0.9542 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.7972, allocations: 120.1 kB / 0.9543 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.7973, allocations: 4 kB / 0.9543 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.7973, allocations: 32.28 kB / 0.9544 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 2.404e-06/0.7973, allocations: 3.938 kB / 0.9544 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009738/0.7983, allocations: 373.5 kB / 0.9547 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.7983, allocations: 52.88 kB / 0.9548 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.7985, allocations: 172.8 kB / 0.9549 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.7985, allocations: 26.86 kB / 0.955 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.141e-05/0.7985, allocations: 104.7 kB / 0.9551 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.7985, allocations: 3.906 kB / 0.9551 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.7986, allocations: 22.52 kB / 0.9551 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.7987, allocations: 326.5 kB / 0.9554 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.7989, allocations: 109.8 kB / 0.9555 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/0.7992, allocations: 118.2 kB / 0.9556 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000465/0.7997, allocations: 200.4 kB / 0.9558 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.7997, allocations: 3.562 kB / 0.9558 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005754/0.8003, allocations: 254.2 kB / 0.9561 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.8003, allocations: 6.906 kB / 0.9561 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.8003, allocations: 0 / 0.9561 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.8003, allocations: 0 / 0.9561 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.8005, allocations: 49.28 kB / 0.9561 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.8006, allocations: 9.188 kB / 0.9561 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.8007, allocations: 33.09 kB / 0.9562 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.8008, allocations: 5.359 kB / 0.9562 GB, free: 4.328 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.245e-05/0.8008, allocations: 112.8 kB / 0.9563 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.688e-05/0.8009, allocations: 11.38 kB / 0.9563 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.27e-05/0.8009, allocations: 10.98 kB / 0.9563 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.8009, allocations: 4 kB / 0.9563 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.8009, allocations: 4.719 kB / 0.9563 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.8009, allocations: 0 / 0.9563 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.8012, allocations: 243.7 kB / 0.9565 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8012, allocations: 3.938 kB / 0.9565 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.8013, allocations: 46.02 kB / 0.9566 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.8014, allocations: 0 / 0.9566 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.8014, allocations: 9.078 kB / 0.9566 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.8014, allocations: 5.094 kB / 0.9566 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.8014, allocations: 3.938 kB / 0.9566 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.802, allocations: 352.6 kB / 0.9569 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.347e-05/0.8021, allocations: 82.7 kB / 0.957 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/0.8021, allocations: 1.688 kB / 0.957 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.8023, allocations: 36.34 kB / 0.957 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.8024, allocations: 13.8 kB / 0.9571 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.8024, allocations: 1.844 kB / 0.9571 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.583e-05/0.8025, allocations: 128.3 kB / 0.9572 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8025, allocations: 0 / 0.9572 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002552/0.8027, allocations: 19.72 kB / 0.9572 GB, free: 3.457 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 (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.0001439/0.8029, allocations: 102.9 kB / 0.9573 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006603/0.8035, allocations: 240.3 kB / 0.9575 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8035, allocations: 0 / 0.9575 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.8038, allocations: 121.8 kB / 0.9576 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.8041, allocations: 8.703 kB / 0.9577 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000581/0.8047, allocations: 337.4 kB / 0.958 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.8048, allocations: 0.6913 MB / 0.9587 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.295e-05/0.8049, allocations: 25.28 kB / 0.9587 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of SimCode: time 4.3e-07/0.8049, allocations: 0 / 0.9587 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of Templates: time 0.003498/0.8084, allocations: 1.665 MB / 0.9603 GB, free: 1.379 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (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 & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches