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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: 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_latest_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_latest_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.007274/0.007274, allocations: 99.7 kB / 15.73 MB, free: 6.469 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.001726/0.001727, allocations: 193.8 kB / 16.67 MB, free: 6.379 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.708/2.708, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 63.89 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3712, allocations: 157.4 MB / 1.208 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002702/0.374, allocations: 1.572 MB / 1.209 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.3751, allocations: 0.5889 MB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.273e-05/0.3751, allocations: 0 / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.14e-05/0.3752, allocations: 7.875 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/0.3753, allocations: 15.86 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.3756, allocations: 55.81 kB / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.102e-05/0.3757, allocations: 39.92 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.028e-05/0.3758, allocations: 15.98 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.531e-05/0.3759, allocations: 31.84 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.376, allocations: 23.86 kB / 1.21 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.376, allocations: 4 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.3761, allocations: 51.95 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.862e-05/0.3762, allocations: 23.92 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.227e-05/0.3763, allocations: 35.78 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.3764, allocations: 87.69 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3764, allocations: 0 / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3764, allocations: 3.938 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3765, allocations: 0 / 1.21 GB, free: 7.055 MB / 0.9669 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.0005381/0.377, allocations: 399 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.377, allocations: 12.62 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008756/0.3779, allocations: 212.5 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.3781, allocations: 180.7 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/0.3782, allocations: 42.25 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.3782, allocations: 11.94 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004444/0.3786, allocations: 169.5 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3787, allocations: 0 / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.3787, allocations: 4 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.3787, allocations: 0 / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006009/0.3793, allocations: 243.7 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008924/0.3802, allocations: 0.5077 MB / 1.212 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005917/0.3808, allocations: 242.3 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.3811, allocations: 120.7 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.3811, allocations: 4 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3812, allocations: 30.56 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.422e-06/0.3812, allocations: 0 / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.00101/0.3822, allocations: 369.3 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.3822, allocations: 51.41 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3824, allocations: 170.2 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.3824, allocations: 25.7 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.458e-05/0.3825, allocations: 104.1 kB / 1.213 GB, free: 4 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.3825, allocations: 3.906 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.676e-05/0.3826, allocations: 17.7 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3827, allocations: 326.9 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.383, allocations: 115.8 kB / 1.213 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3833, allocations: 115.9 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005336/0.3838, allocations: 196.7 kB / 1.214 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3839, allocations: 0 / 1.214 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006453/0.3845, allocations: 257.3 kB / 1.214 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3845, allocations: 8 kB / 1.214 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3845, allocations: 0 / 1.214 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3846, allocations: 3.938 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.3848, allocations: 39.92 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3848, allocations: 3.969 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.385, allocations: 43.92 kB / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.385, allocations: 0 / 1.214 GB, free: 2.867 MB / 0.9669 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 0.0001039/0.3851, allocations: 121.8 kB / 1.214 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.3851, allocations: 7.906 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.3852, allocations: 11.88 kB / 1.214 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.3852, allocations: 11.92 kB / 1.214 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3852, allocations: 7.938 kB / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3852, allocations: 0 / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.3855, allocations: 241.6 kB / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3855, allocations: 0 / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.3857, allocations: 43.91 kB / 1.215 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.3857, allocations: 4 kB / 1.215 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.3857, allocations: 3.984 kB / 1.215 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3857, allocations: 4 kB / 1.215 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3857, allocations: 3.938 kB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007078/0.3864, allocations: 347.2 kB / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.3865, allocations: 92.94 kB / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.3865, allocations: 4 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.3867, allocations: 31.94 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.3868, allocations: 15.91 kB / 1.215 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3868, allocations: 3.984 kB / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.855e-05/0.3869, allocations: 133.4 kB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3869, allocations: 0 / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002567/0.3872, allocations: 19.98 kB / 1.215 GB, free: 1.688 MB / 0.9669 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.0001406/0.3873, allocations: 103.2 kB / 1.215 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006432/0.388, allocations: 231.7 kB / 1.215 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.388, allocations: 0 / 1.215 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.3883, allocations: 123.9 kB / 1.216 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.3885, allocations: 0 / 1.216 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006358/0.3892, allocations: 299 kB / 1.216 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.3894, allocations: 0.6963 MB / 1.217 GB, free: 196 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.347e-05/0.3895, allocations: 23.94 kB / 1.217 GB, free: 172 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.147e-05/0.3896, allocations: 19.42 kB / 1.217 GB, free: 152 kB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3896, allocations: 0 / 1.217 GB, free: 152 kB / 0.9669 GB Notification: Performance of Templates: time 0.003768/0.3934, allocations: 1.323 MB / 1.218 GB, free: 14.83 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (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 & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches