Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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.LMTDStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lmtdSta.lmtdSta|TIn.y|TOut.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lmtdSta.lmtdSta|TIn.y|TOut.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 100.4 kB / 16.41 MB, free: 5.977 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.001756/0.001756, allocations: 192.8 kB / 17.34 MB, free: 5.586 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.615/2.615, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001302, allocations: 75.81 kB / 1.055 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7568/0.7581, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002563/0.7607, allocations: 1.546 MB / 1.21 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.7618, allocations: 0.7479 MB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.802e-05/0.7619, allocations: 0 / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.954e-05/0.7619, allocations: 7.922 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.725e-05/0.762, allocations: 15.86 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.7624, allocations: 87.72 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.583e-05/0.7625, allocations: 51.72 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.487e-05/0.7626, allocations: 16 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.786e-05/0.7627, allocations: 23.86 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.03e-05/0.7627, allocations: 31.91 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.7628, allocations: 0 / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.7629, allocations: 63.95 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.684e-05/0.7629, allocations: 15.92 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.081e-05/0.763, allocations: 23.86 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.7631, allocations: 87.62 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.7632, allocations: 12 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.745e-06/0.7632, allocations: 0 / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.7632, allocations: 3.938 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004479/0.7636, allocations: 369.1 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 2.961e-05/0.7637, allocations: 12.03 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.764, allocations: 24.81 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.7641, allocations: 184.2 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.7641, allocations: 384 / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.7641, allocations: 8.375 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.7644, allocations: 73.95 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.7644, allocations: 3.938 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.7644, allocations: 8 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.7644, allocations: 0 / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.7647, allocations: 63.94 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004821/0.7652, allocations: 324.8 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.7655, allocations: 74.47 kB / 1.212 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.7656, allocations: 40.92 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.7656, allocations: 0 / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.7657, allocations: 34.56 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.7657, allocations: 0 / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.000518/0.7662, allocations: 137.5 kB / 1.212 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.7663, allocations: 59.39 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.297e-05/0.7664, allocations: 113.8 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.7664, allocations: 25.7 kB / 1.213 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.7664, allocations: 92.14 kB / 1.213 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.7665, allocations: 7.891 kB / 1.213 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.7665, allocations: 25.64 kB / 1.213 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.7666, allocations: 322.8 kB / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.7668, allocations: 31.97 kB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.7669, allocations: 40.14 kB / 1.213 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.7671, allocations: 68.81 kB / 1.213 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7672, allocations: 0 / 1.213 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003198/0.7675, allocations: 105.5 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.7675, allocations: 6.188 kB / 1.213 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.7675, allocations: 0 / 1.213 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.7675, allocations: 3.984 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.7677, allocations: 19.98 kB / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.7677, allocations: 0 / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.675e-05/0.7678, allocations: 7.984 kB / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.7678, allocations: 4 kB / 1.213 GB, free: 8.395 MB / 0.9356 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 (3): * Single equations (assignments): 3 * 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.765e-05/0.7679, allocations: 113.8 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.7679, allocations: 7.906 kB / 1.213 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.703e-05/0.768, allocations: 19.89 kB / 1.213 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.768, allocations: 0 / 1.213 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.768, allocations: 4 kB / 1.213 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.768, allocations: 0 / 1.213 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.7682, allocations: 189.5 kB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.7682, allocations: 4 kB / 1.214 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.7683, allocations: 15.97 kB / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.7683, allocations: 0 / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.7684, allocations: 4 kB / 1.214 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.7684, allocations: 4 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.7684, allocations: 3.938 kB / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003643/0.7687, allocations: 199.4 kB / 1.214 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.7688, allocations: 85.02 kB / 1.214 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.7688, allocations: 0 / 1.214 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.7689, allocations: 15.98 kB / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.769, allocations: 0 / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.769, allocations: 7.984 kB / 1.214 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.793e-05/0.769, allocations: 95.64 kB / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.769, allocations: 0 / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002659/0.7693, allocations: 28 kB / 1.214 GB, free: 7.508 MB / 0.9356 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 (3): * Single equations (assignments): 3 * 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.0001671/0.7695, allocations: 123.2 kB / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.7698, allocations: 75.88 kB / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.7698, allocations: 0 / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.77, allocations: 39.95 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.7703, allocations: 12.27 kB / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.7707, allocations: 192.8 kB / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.7709, allocations: 0.6885 MB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.417e-05/0.771, allocations: 15.42 kB / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.771, allocations: 0 / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of Templates: time 0.00267/0.7736, allocations: 1.308 MB / 1.216 GB, free: 5 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lmtdSta.lmtdSta,TIn.y,TOut.y Variables in the result:TIn.y,TOut.y,lmtdSta.lmtdSta,time