Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.LMTDStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lmtdSta.lmtdSta|TIn.y|TOut.y",fileNamePrefix="Buildings_10_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_10_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.001309/0.001315, allocations: 108 kB / 15.61 MB, free: 152 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.001569/0.00157, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.602/2.602, allocations: 437 MB / 0.7103 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8179/0.8192, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.0033/0.8226, allocations: 1.525 MB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.8239, allocations: 0.7605 MB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.381e-05/0.824, allocations: 0 / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.044e-05/0.8241, allocations: 3.938 kB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.204e-05/0.8241, allocations: 15.84 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.8246, allocations: 91.66 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.8247, allocations: 55.73 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.8248, allocations: 8 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.825, allocations: 27.91 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.448e-05/0.8251, allocations: 23.91 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.8251, allocations: 8 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.8253, allocations: 67.94 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.881e-05/0.8253, allocations: 7.938 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.8254, allocations: 23.86 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.8256, allocations: 93.8 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.8256, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.814e-06/0.8256, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.739e-06/0.8256, allocations: 0 / 1.02 GB, free: 15.79 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.0005766/0.8262, allocations: 383.1 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.8263, allocations: 12.03 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003517/0.8266, allocations: 24.89 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.8267, allocations: 180.2 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.8268, allocations: 4.375 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.8268, allocations: 384 / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.8271, allocations: 89.92 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.8271, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.8271, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.8271, allocations: 3.938 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002645/0.8274, allocations: 67.95 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/0.8279, allocations: 328.5 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/0.8282, allocations: 70.48 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.8284, allocations: 40.92 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.8284, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.8284, allocations: 38.55 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.8284, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005512/0.829, allocations: 137.5 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.829, allocations: 55.41 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.826e-05/0.8291, allocations: 117.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.8292, allocations: 25.7 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.06e-05/0.8292, allocations: 92.03 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.8293, allocations: 11.91 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.727e-05/0.8293, allocations: 17.7 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.8294, allocations: 318.8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.8296, allocations: 39.91 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.8297, allocations: 31.97 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.83, allocations: 64.81 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.83, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003157/0.8303, allocations: 109.6 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.8303, allocations: 8 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.8303, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.8304, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.8305, allocations: 11.98 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.8305, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.918e-05/0.8306, allocations: 15.89 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.8306, allocations: 7.984 kB / 1.022 GB, free: 13.3 MB / 0.7794 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 9.051e-05/0.8307, allocations: 117.8 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.8308, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.8308, allocations: 11.89 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.8308, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8309, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8309, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.8311, allocations: 193.5 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.8311, allocations: 4 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.8312, allocations: 19.97 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.8312, allocations: 336 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.8312, allocations: 4 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.8312, allocations: 3.984 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.8312, allocations: 0 / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.8316, allocations: 211.3 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.851e-05/0.8317, allocations: 88.94 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.8317, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.8318, allocations: 4 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.8319, allocations: 11.98 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.8319, allocations: 4 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.239e-05/0.8319, allocations: 95.27 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8319, allocations: 7.938 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002711/0.8322, allocations: 24 kB / 1.023 GB, free: 12.42 MB / 0.7794 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.0002122/0.8324, allocations: 121.2 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003371/0.8328, allocations: 79.86 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8328, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.8329, allocations: 43.97 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.8333, allocations: 10.08 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.8338, allocations: 171.2 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.8341, allocations: 0.6846 MB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.734e-05/0.8342, allocations: 15.98 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.8342, allocations: 15.42 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.8342, allocations: 0 / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of Templates: time 0.003892/0.8381, allocations: 1.083 MB / 1.025 GB, free: 10.15 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches