Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.005587/0.005587, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001369/0.001369, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.332/1.332, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.313/2.313, allocations: 390.3 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002164, allocations: 71.89 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6873/0.6895, allocations: 140.3 MB / 0.9496 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002753/0.6923, allocations: 1.595 MB / 0.9512 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.6933, allocations: 0.7634 MB / 0.9519 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.943e-05/0.6934, allocations: 3.938 kB / 0.9519 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.281e-05/0.6934, allocations: 3.984 kB / 0.9519 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.944e-05/0.6935, allocations: 10.62 kB / 0.9519 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.6938, allocations: 75.17 kB / 0.952 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.207e-05/0.6939, allocations: 49.2 kB / 0.952 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.865e-05/0.694, allocations: 25.48 kB / 0.9521 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.477e-05/0.6941, allocations: 18.44 kB / 0.9521 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.381e-05/0.6942, allocations: 23.78 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.6942, allocations: 2.625 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.6943, allocations: 65.16 kB / 0.9522 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.6943, allocations: 13.28 kB / 0.9522 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.6944, allocations: 23.39 kB / 0.9522 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.6945, allocations: 65.25 kB / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.6945, allocations: 0 / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.6945, allocations: 0 / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.6945, allocations: 1.719 kB / 0.9523 GB, free: 7.035 MB / 0.7169 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.0004074/0.6949, allocations: 377.7 kB / 0.9526 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.695, allocations: 8.906 kB / 0.9526 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.6953, allocations: 34.83 kB / 0.9527 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.366e-05/0.6954, allocations: 175 kB / 0.9528 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.6954, allocations: 1.844 kB / 0.9528 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.793e-05/0.6954, allocations: 1.562 kB / 0.9528 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.6957, allocations: 89.25 kB / 0.9529 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.6957, allocations: 3.938 kB / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.6957, allocations: 0 / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.6957, allocations: 5.219 kB / 0.9529 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.696, allocations: 63.11 kB / 0.953 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004216/0.6964, allocations: 320.9 kB / 0.9533 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.6967, allocations: 76.27 kB / 0.9534 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.6968, allocations: 38.58 kB / 0.9534 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.6969, allocations: 0.875 kB / 0.9534 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/0.6969, allocations: 35.66 kB / 0.9534 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.6969, allocations: 3.984 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004972/0.6974, allocations: 135.4 kB / 0.9536 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/0.6974, allocations: 56.44 kB / 0.9536 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.286e-05/0.6975, allocations: 116.5 kB / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.6975, allocations: 29.7 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.088e-05/0.6975, allocations: 90.34 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.6976, allocations: 9 kB / 0.9539 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.126e-05/0.6976, allocations: 22.27 kB / 0.9539 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.6977, allocations: 321.5 kB / 0.9542 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.6978, allocations: 28.59 kB / 0.9542 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.6979, allocations: 37.78 kB / 0.9542 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.6982, allocations: 65.03 kB / 0.9543 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.6982, allocations: 0 / 0.9543 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002815/0.6985, allocations: 106.3 kB / 0.9544 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.6985, allocations: 6.188 kB / 0.9544 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.6985, allocations: 3.938 kB / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.6985, allocations: 0 / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.6987, allocations: 14.42 kB / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.6987, allocations: 0 / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.326e-05/0.6988, allocations: 8.609 kB / 0.9544 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.6988, allocations: 1.938 kB / 0.9544 GB, free: 4.965 MB / 0.7169 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 5.993e-05/0.6988, allocations: 121 kB / 0.9546 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.147e-05/0.6989, allocations: 13.78 kB / 0.9546 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.191e-05/0.6989, allocations: 6.25 kB / 0.9546 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.6989, allocations: 0.9375 kB / 0.9546 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6989, allocations: 0 / 0.9546 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6989, allocations: 5 kB / 0.9546 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.6991, allocations: 191 kB / 0.9548 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6991, allocations: 0 / 0.9548 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.6992, allocations: 26.41 kB / 0.9548 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6992, allocations: 0 / 0.9548 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.6992, allocations: 6.125 kB / 0.9548 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6993, allocations: 0 / 0.9548 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6993, allocations: 0.875 kB / 0.9548 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.6996, allocations: 210 kB / 0.955 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.752e-05/0.6996, allocations: 78.45 kB / 0.9551 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.6996, allocations: 3.984 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.6997, allocations: 5.156 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.907e-05/0.6998, allocations: 5.172 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.6998, allocations: 2.188 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.35e-05/0.6998, allocations: 96.42 kB / 0.9552 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6998, allocations: 0 / 0.9552 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002727/0.7001, allocations: 25.81 kB / 0.9552 GB, free: 4.199 MB / 0.7169 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.0001728/0.7003, allocations: 124.2 kB / 0.9553 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003119/0.7006, allocations: 76.2 kB / 0.9554 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7006, allocations: 4 kB / 0.9554 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.7008, allocations: 45.12 kB / 0.9554 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.7011, allocations: 6.094 kB / 0.9555 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004215/0.7015, allocations: 210.8 kB / 0.9557 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.7017, allocations: 0.6863 MB / 0.9563 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.573e-05/0.7017, allocations: 19.48 kB / 0.9563 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of SimCode: time 5.01e-07/0.7017, allocations: 0.6562 kB / 0.9563 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of Templates: time 0.002777/0.7045, allocations: 1.295 MB / 0.9576 GB, free: 2.457 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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