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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00117/0.001171, allocations: 104.5 kB / 16.35 MB, free: 5.828 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.00105/0.00105, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.188/2.188, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 66.58 kB / 0.814 GB, free: 32.66 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2399, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002926/0.2429, allocations: 1.575 MB / 0.9527 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.2439, allocations: 0.5854 MB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.006e-05/0.244, allocations: 0 / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.974e-05/0.244, allocations: 3.938 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.633e-05/0.2441, allocations: 15.86 kB / 0.9533 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.2444, allocations: 55.83 kB / 0.9533 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.7e-05/0.2445, allocations: 47.84 kB / 0.9534 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2446, allocations: 19.88 kB / 0.9534 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.347e-05/0.2447, allocations: 23.88 kB / 0.9534 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.694e-05/0.2448, allocations: 27.84 kB / 0.9534 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.739e-05/0.2449, allocations: 4 kB / 0.9534 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.245, allocations: 47.95 kB / 0.9535 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.744e-05/0.2451, allocations: 23.97 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.304e-05/0.2451, allocations: 35.73 kB / 0.9535 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001657/0.2453, allocations: 91.73 kB / 0.9536 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2453, allocations: 4 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.675e-06/0.2453, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2453, allocations: 3.938 kB / 0.9536 GB, free: 5.488 MB / 0.7325 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.0005207/0.2458, allocations: 395.1 kB / 0.954 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.2459, allocations: 8.031 kB / 0.954 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000878/0.2468, allocations: 208.5 kB / 0.9542 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.2469, allocations: 188.7 kB / 0.9544 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.855e-05/0.247, allocations: 38.25 kB / 0.9544 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.247, allocations: 7.938 kB / 0.9544 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004165/0.2475, allocations: 177.5 kB / 0.9546 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2475, allocations: 0 / 0.9546 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.2475, allocations: 0 / 0.9546 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.2475, allocations: 0 / 0.9546 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005838/0.2481, allocations: 239.7 kB / 0.9548 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008574/0.249, allocations: 0.5078 MB / 0.9553 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005801/0.2496, allocations: 238.3 kB / 0.9556 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/0.2499, allocations: 120.8 kB / 0.9557 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.2499, allocations: 0 / 0.9557 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2499, allocations: 34.5 kB / 0.9557 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.2499, allocations: 3.938 kB / 0.9557 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0009793/0.2509, allocations: 369.3 kB / 0.9561 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.251, allocations: 59.44 kB / 0.9561 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.2511, allocations: 166.1 kB / 0.9563 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.2511, allocations: 29.69 kB / 0.9563 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.2512, allocations: 100.1 kB / 0.9564 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.2512, allocations: 3.906 kB / 0.9564 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-05/0.2513, allocations: 25.69 kB / 0.9564 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.2514, allocations: 314.8 kB / 0.9567 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.2517, allocations: 119.9 kB / 0.9568 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.252, allocations: 115.8 kB / 0.957 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.2525, allocations: 208.7 kB / 0.9572 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2525, allocations: 0 / 0.9572 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006012/0.2531, allocations: 249.4 kB / 0.9574 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2531, allocations: 8 kB / 0.9574 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.2531, allocations: 0 / 0.9574 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.2532, allocations: 0 / 0.9574 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.2534, allocations: 43.91 kB / 0.9574 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.2534, allocations: 3.938 kB / 0.9574 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.2536, allocations: 39.97 kB / 0.9575 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.2536, allocations: 3.984 kB / 0.9575 GB, free: 1.301 MB / 0.7325 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.712e-05/0.2537, allocations: 117.8 kB / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.2537, allocations: 19.73 kB / 0.9576 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.245e-05/0.2538, allocations: 11.88 kB / 0.9576 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.2538, allocations: 3.938 kB / 0.9576 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2538, allocations: 3.938 kB / 0.9576 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2538, allocations: 4 kB / 0.9576 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.254, allocations: 241.7 kB / 0.9579 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2541, allocations: 0 / 0.9579 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.2543, allocations: 43.92 kB / 0.9579 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2543, allocations: 3.984 kB / 0.9579 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2543, allocations: 0 / 0.9579 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2543, allocations: 0 / 0.9579 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.2543, allocations: 7.938 kB / 0.9579 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006649/0.255, allocations: 355.2 kB / 0.9583 GB, free: 444 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.553e-05/0.255, allocations: 88.95 kB / 0.9583 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.2551, allocations: 0 / 0.9583 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.2553, allocations: 39.92 kB / 0.9584 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.2553, allocations: 3.938 kB / 0.9584 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2553, allocations: 8.016 kB / 0.9584 GB, free: 284 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.648e-05/0.2554, allocations: 133.6 kB / 0.9585 GB, free: 152 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2554, allocations: 0 / 0.9585 GB, free: 152 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002547/0.2557, allocations: 19.94 kB / 0.9585 GB, free: 132 kB / 0.7325 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.0001373/0.2558, allocations: 107.2 kB / 0.9586 GB, free: 16 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006265/0.2565, allocations: 231.8 kB / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.2565, allocations: 4 kB / 0.9589 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.2568, allocations: 119.9 kB / 0.959 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.257, allocations: 4 kB / 0.959 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006027/0.2576, allocations: 294.1 kB / 0.9593 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.2579, allocations: 0.6963 MB / 0.96 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.238e-05/0.258, allocations: 27.98 kB / 0.96 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.258, allocations: 15.42 kB / 0.96 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/0.258, allocations: 0 / 0.96 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of Templates: time 0.00345/0.2615, allocations: 1.292 MB / 0.9613 GB, free: 13.29 MB / 0.7481 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 -s gbode -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