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.001065/0.001065, allocations: 92.16 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.001333/0.001333, allocations: 172.2 kB / 16.92 MB, free: 6.652 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.391/1.391, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.678/2.678, allocations: 443.2 MB / 0.7181 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003724, allocations: 9.094 kB / 0.8801 GB, free: 42.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3218, allocations: 155.2 MB / 1.032 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.001855/0.3237, allocations: 1.25 MB / 1.033 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.325, allocations: 0.7686 MB / 1.034 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.015e-05/0.325, allocations: 0 / 1.034 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.486e-05/0.3251, allocations: 3.938 kB / 1.034 GB, free: 2.828 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.544e-05/0.3252, allocations: 7.938 kB / 1.034 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.3255, allocations: 70.8 kB / 1.034 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.957e-05/0.3256, allocations: 59.72 kB / 1.034 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.268e-05/0.3257, allocations: 12 kB / 1.034 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.763e-05/0.3258, allocations: 27.91 kB / 1.034 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.468e-05/0.3259, allocations: 19.92 kB / 1.034 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.3259, allocations: 0 / 1.034 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.3261, allocations: 67.94 kB / 1.034 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.131e-05/0.3261, allocations: 11.86 kB / 1.034 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.234e-05/0.3262, allocations: 41.58 kB / 1.034 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.3263, allocations: 68.12 kB / 1.034 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3263, allocations: 4 kB / 1.034 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.326e-06/0.3263, allocations: 4 kB / 1.034 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.027e-06/0.3263, allocations: 0 / 1.034 GB, free: 2.438 MB / 0.7794 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.0004995/0.3268, allocations: 367.4 kB / 1.034 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3269, allocations: 12.03 kB / 1.034 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003333/0.3272, allocations: 28.81 kB / 1.034 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.3274, allocations: 176.2 kB / 1.035 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.3274, allocations: 384 / 1.035 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.3274, allocations: 4.375 kB / 1.035 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.3277, allocations: 85.94 kB / 1.035 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.3277, allocations: 3.938 kB / 1.035 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.3277, allocations: 0 / 1.035 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3277, allocations: 8 kB / 1.035 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.328, allocations: 79.81 kB / 1.035 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005039/0.3285, allocations: 312.8 kB / 1.035 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.3288, allocations: 78.53 kB / 1.035 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.3289, allocations: 44.92 kB / 1.035 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.329, allocations: 3.984 kB / 1.035 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.329, allocations: 34.56 kB / 1.035 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.329, allocations: 3.938 kB / 1.035 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005431/0.3296, allocations: 149.5 kB / 1.035 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.3296, allocations: 51.41 kB / 1.035 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.876e-05/0.3297, allocations: 117.8 kB / 1.035 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.3297, allocations: 29.69 kB / 1.036 GB, free: 0.6836 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.3298, allocations: 88.14 kB / 1.036 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.3298, allocations: 11.84 kB / 1.036 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.3299, allocations: 13.72 kB / 1.036 GB, free: 0.5625 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.33, allocations: 322.8 kB / 1.036 GB, free: 244 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.3301, allocations: 39.97 kB / 1.036 GB, free: 204 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.3303, allocations: 35.98 kB / 1.036 GB, free: 168 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.3305, allocations: 72.75 kB / 1.036 GB, free: 92 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3305, allocations: 0 / 1.036 GB, free: 92 kB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000337/0.3309, allocations: 117.5 kB / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3309, allocations: 4 kB / 1.036 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3309, allocations: 0 / 1.036 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3309, allocations: 4 kB / 1.036 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.3311, allocations: 23.97 kB / 1.036 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3311, allocations: 0 / 1.036 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.739e-05/0.3312, allocations: 4 kB / 1.036 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.3312, allocations: 11.98 kB / 1.036 GB, free: 15.92 MB / 0.795 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 8.76e-05/0.3313, allocations: 111.3 kB / 1.036 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.3314, allocations: 7.906 kB / 1.036 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.865e-05/0.3314, allocations: 15.91 kB / 1.036 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3314, allocations: 0 / 1.036 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3314, allocations: 7.875 kB / 1.036 GB, free: 15.77 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3314, allocations: 3.984 kB / 1.036 GB, free: 15.77 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.3316, allocations: 185.6 kB / 1.037 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3317, allocations: 4 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.3318, allocations: 19.98 kB / 1.037 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3318, allocations: 0 / 1.037 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.3318, allocations: 7.984 kB / 1.037 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3318, allocations: 0 / 1.037 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3318, allocations: 3.938 kB / 1.037 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003709/0.3322, allocations: 219.3 kB / 1.037 GB, free: 15.27 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.3322, allocations: 77.11 kB / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.3323, allocations: 0 / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3324, allocations: 11.98 kB / 1.037 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.3324, allocations: 0 / 1.037 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3324, allocations: 4 kB / 1.037 GB, free: 15.16 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.114e-05/0.3325, allocations: 91.27 kB / 1.037 GB, free: 15.07 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3325, allocations: 3.938 kB / 1.037 GB, free: 15.07 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002882/0.3328, allocations: 31.98 kB / 1.037 GB, free: 15.04 MB / 0.795 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.0002255/0.333, allocations: 131.5 kB / 1.037 GB, free: 14.89 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003419/0.3334, allocations: 79.94 kB / 1.037 GB, free: 14.82 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3334, allocations: 0 / 1.037 GB, free: 14.82 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.3336, allocations: 44.06 kB / 1.037 GB, free: 14.77 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.3339, allocations: 5.859 kB / 1.037 GB, free: 14.77 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004426/0.3343, allocations: 232 kB / 1.037 GB, free: 14.51 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.3345, allocations: 0.6809 MB / 1.038 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.373e-05/0.3346, allocations: 15.42 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3346, allocations: 0 / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of Templates: time 0.00282/0.3374, allocations: 1.275 MB / 1.039 GB, free: 12.52 MB / 0.795 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