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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009686/0.0009686, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 185.2 kB / 16.92 MB, free: 6.922 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: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.804/2.804, allocations: 462.7 MB / 0.7371 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.000376, allocations: 10.05 kB / 0.9034 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3093, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002005/0.3114, allocations: 1.253 MB / 1.061 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3128, allocations: 0.7674 MB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.3129, allocations: 0 / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.833e-05/0.313, allocations: 3.938 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.173e-05/0.3131, allocations: 3.938 kB / 1.061 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.3135, allocations: 75.8 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.878e-05/0.3136, allocations: 59.72 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.908e-05/0.3137, allocations: 7.984 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.3138, allocations: 19.92 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.666e-05/0.3139, allocations: 27.86 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.3139, allocations: 0 / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.3141, allocations: 59.94 kB / 1.062 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.3141, allocations: 15.92 kB / 1.062 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.3142, allocations: 45.58 kB / 1.062 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.3143, allocations: 68.12 kB / 1.062 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3143, allocations: 0 / 1.062 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3144, allocations: 0 / 1.062 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.3144, allocations: 0 / 1.062 GB, free: 2.523 MB / 0.8106 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.000587/0.315, allocations: 367.4 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.315, allocations: 8.031 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/0.3153, allocations: 32.81 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.3155, allocations: 176.2 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.3155, allocations: 8.312 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.3156, allocations: 384 / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.3158, allocations: 89.88 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3159, allocations: 4 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3159, allocations: 4 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3159, allocations: 0 / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.3162, allocations: 75.88 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005485/0.3167, allocations: 316.8 kB / 1.063 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002616/0.317, allocations: 70.53 kB / 1.063 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.3172, allocations: 48.92 kB / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.3172, allocations: 4 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.3172, allocations: 34.5 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3172, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000551/0.3178, allocations: 149.5 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.3179, allocations: 51.41 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.318, allocations: 117.8 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.318, allocations: 33.7 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.3181, allocations: 88.14 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.3181, allocations: 15.75 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.3181, allocations: 9.719 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3183, allocations: 322.8 kB / 1.064 GB, free: 332 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.3184, allocations: 35.97 kB / 1.064 GB, free: 296 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.3185, allocations: 35.98 kB / 1.064 GB, free: 260 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.3188, allocations: 85.02 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3188, allocations: 0 / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003216/0.3191, allocations: 109.6 kB / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3192, allocations: 4 kB / 1.064 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3192, allocations: 0 / 1.064 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.3192, allocations: 4 kB / 1.064 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3194, allocations: 19.97 kB / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.3194, allocations: 0 / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.033e-05/0.3195, allocations: 12 kB / 1.064 GB, free: 16 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.3195, allocations: 7.984 kB / 1.064 GB, free: 8 kB / 0.8106 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 0.000132/0.3196, allocations: 121.7 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.3197, allocations: 11.91 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.433e-05/0.3197, allocations: 7.891 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3197, allocations: 4 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3198, allocations: 3.984 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3198, allocations: 0 / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.32, allocations: 185.6 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.32, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.3201, allocations: 23.98 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3201, allocations: 3.938 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.3201, allocations: 7.984 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3202, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3202, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.3205, allocations: 211.3 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.3206, allocations: 81.11 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.3206, allocations: 0 / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.3207, allocations: 11.98 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.993e-05/0.3208, allocations: 3.938 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.3208, allocations: 7.984 kB / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.211e-05/0.3209, allocations: 95.72 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3209, allocations: 0 / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002697/0.3211, allocations: 27.98 kB / 1.065 GB, free: 15.12 MB / 0.8262 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.0002268/0.3214, allocations: 123.2 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000335/0.3217, allocations: 83.94 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3217, allocations: 0 / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.3219, allocations: 39.97 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3222, allocations: 12.27 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004518/0.3227, allocations: 224 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3229, allocations: 0.6809 MB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.323, allocations: 19.42 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of SimCode: time 4.2e-07/0.323, allocations: 0 / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of Templates: time 0.003253/0.3263, allocations: 1.288 MB / 1.067 GB, free: 12.59 MB / 0.8262 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