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.00109/0.00109, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001354/0.001354, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.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.469/2.469, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003743, allocations: 8 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7043/0.7047, allocations: 142.4 MB / 0.9544 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001729/0.7064, allocations: 1.28 MB / 0.9557 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.7075, allocations: 0.5584 MB / 0.9562 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.612e-05/0.7075, allocations: 1.281 kB / 0.9562 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.031e-05/0.7076, allocations: 3.938 kB / 0.9562 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.7077, allocations: 9.078 kB / 0.9563 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.708, allocations: 41.48 kB / 0.9563 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.7081, allocations: 40.95 kB / 0.9563 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.7082, allocations: 29.42 kB / 0.9564 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.7084, allocations: 21.39 kB / 0.9564 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.288e-05/0.7085, allocations: 15.39 kB / 0.9564 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.7085, allocations: 2.281 kB / 0.9564 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.7086, allocations: 50.2 kB / 0.9564 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.46e-05/0.7087, allocations: 18.78 kB / 0.9565 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.7087, allocations: 33.05 kB / 0.9565 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.7089, allocations: 63.14 kB / 0.9566 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.7089, allocations: 0 / 0.9566 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.687e-06/0.7089, allocations: 1.281 kB / 0.9566 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.7089, allocations: 4 kB / 0.9566 GB, free: 6.098 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.0005812/0.7095, allocations: 381.7 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.7096, allocations: 9.031 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008423/0.7104, allocations: 219.8 kB / 0.9571 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.7106, allocations: 185.4 kB / 0.9573 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.042e-05/0.7107, allocations: 31.95 kB / 0.9574 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.7107, allocations: 0 / 0.9574 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004301/0.7111, allocations: 179.2 kB / 0.9575 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.7112, allocations: 3.984 kB / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.7112, allocations: 0 / 0.9575 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.7112, allocations: 5.812 kB / 0.9575 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005639/0.7118, allocations: 241.9 kB / 0.9578 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007829/0.7126, allocations: 0.51 MB / 0.9583 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000522/0.7131, allocations: 244.5 kB / 0.9585 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.7134, allocations: 126.3 kB / 0.9586 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.7134, allocations: 1.125 kB / 0.9586 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.7134, allocations: 32 kB / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.7134, allocations: 0 / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0008961/0.7143, allocations: 377 kB / 0.959 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.7144, allocations: 52.31 kB / 0.9591 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.7145, allocations: 173.2 kB / 0.9592 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.7145, allocations: 25.7 kB / 0.9592 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.621e-05/0.7146, allocations: 100.9 kB / 0.9593 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.7146, allocations: 8.969 kB / 0.9594 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.7146, allocations: 0 / 0.9594 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.7147, allocations: 326.2 kB / 0.9597 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.715, allocations: 117.1 kB / 0.9598 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.7152, allocations: 112.6 kB / 0.9599 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.7155, allocations: 99 kB / 0.96 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.7155, allocations: 4.062 kB / 0.96 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005711/0.7161, allocations: 265.3 kB / 0.9602 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.7161, allocations: 5.406 kB / 0.9602 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.7161, allocations: 15.86 kB / 0.9603 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.7161, allocations: 1.219 kB / 0.9603 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.7163, allocations: 46.03 kB / 0.9603 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.7163, allocations: 1 kB / 0.9603 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.7165, allocations: 42.84 kB / 0.9603 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.7165, allocations: 5.766 kB / 0.9603 GB, free: 3.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/0.7166, allocations: 114.9 kB / 0.9605 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.7166, allocations: 12.08 kB / 0.9605 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.7167, allocations: 11.05 kB / 0.9605 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.7167, allocations: 1 kB / 0.9605 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.7167, allocations: 4 kB / 0.9605 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.7167, allocations: 1.031 kB / 0.9605 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002415/0.7169, allocations: 254.4 kB / 0.9607 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.717, allocations: 0 / 0.9607 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.7171, allocations: 43.23 kB / 0.9608 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.7172, allocations: 3.953 kB / 0.9608 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.7172, allocations: 5.984 kB / 0.9608 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.7172, allocations: 4 kB / 0.9608 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.7172, allocations: 1 kB / 0.9608 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006041/0.7178, allocations: 356.8 kB / 0.9611 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.7178, allocations: 83.45 kB / 0.9612 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.7179, allocations: 5.109 kB / 0.9612 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.718, allocations: 46.45 kB / 0.9612 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.7181, allocations: 1.156 kB / 0.9613 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.7181, allocations: 5.266 kB / 0.9613 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.006e-05/0.7182, allocations: 124.9 kB / 0.9614 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7182, allocations: 0 / 0.9614 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002548/0.7184, allocations: 18.62 kB / 0.9614 GB, free: 2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001456/0.7186, allocations: 106.3 kB / 0.9615 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005807/0.7192, allocations: 242.6 kB / 0.9617 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.7192, allocations: 0 / 0.9617 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.7195, allocations: 124.2 kB / 0.9618 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.7198, allocations: 6 kB / 0.9618 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005649/0.7203, allocations: 301.9 kB / 0.9621 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.7205, allocations: 0.6959 MB / 0.9628 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001057/0.7206, allocations: 29.52 kB / 0.9628 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.922e-05/0.7206, allocations: 19.14 kB / 0.9629 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.7207, allocations: 0 / 0.9629 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of Templates: time 0.003881/0.7245, allocations: 1.203 MB / 0.964 GB, free: 0.6445 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/jenkins/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