Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Validation.ExperimentNIST.Charging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dat.y.1.|TIn.Celsius|dat.y.2.|TOut.T|dat.y.3.|iceTan.m_flow|dat.y.4.|iceTan.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging") translateModel(Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dat.y.1.|TIn.Celsius|dat.y.2.|TOut.T|dat.y.3.|iceTan.m_flow|dat.y.4.|iceTan.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001597/0.001598, allocations: 113 kB / 16.42 MB, free: 6.5 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.001877/0.001877, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.231/2.231, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 63.89 kB / 0.9516 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7605/0.7619, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging): time 0.06017/0.8221, allocations: 54.54 MB / 1.142 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01477/0.8369, allocations: 9.171 MB / 1.151 GB, free: 8.035 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002227/0.8392, allocations: 44.28 kB / 1.151 GB, free: 8.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.8412, allocations: 0.5435 MB / 1.151 GB, free: 7.684 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005087/0.8463, allocations: 1.401 MB / 1.153 GB, free: 6.84 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005017/0.8514, allocations: 1.248 MB / 1.154 GB, free: 6.145 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004922/0.8563, allocations: 2.769 MB / 1.157 GB, free: 4.789 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002091/0.8584, allocations: 1.102 MB / 1.158 GB, free: 4.238 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006015/0.8644, allocations: 2.128 MB / 1.16 GB, free: 3.277 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001828/0.8663, allocations: 0.8077 MB / 1.161 GB, free: 2.879 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004419/0.8667, allocations: 132.3 kB / 1.161 GB, free: 2.875 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005564/0.8723, allocations: 1.692 MB / 1.162 GB, free: 2.309 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007644/0.8731, allocations: 380.8 kB / 1.163 GB, free: 2.086 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.875, allocations: 0.7224 MB / 1.164 GB, free: 1.602 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.005523/0.8805, allocations: 2.418 MB / 1.166 GB, free: 0.6914 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.8805, allocations: 0 / 1.166 GB, free: 0.6914 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8805, allocations: 4 kB / 1.166 GB, free: 0.6875 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.21e-05/0.8806, allocations: 0 / 1.166 GB, free: 0.6875 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.005095/0.8857, allocations: 1.819 MB / 1.168 GB, free: 15.43 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.8858, allocations: 9.375 kB / 1.168 GB, free: 15.43 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/0.8884, allocations: 0.5679 MB / 1.168 GB, free: 15.25 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002759/0.8912, allocations: 1.204 MB / 1.169 GB, free: 14.3 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.8914, allocations: 123.9 kB / 1.17 GB, free: 14.21 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.8916, allocations: 83.3 kB / 1.17 GB, free: 14.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.8941, allocations: 1.182 MB / 1.171 GB, free: 13.44 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.8941, allocations: 5.125 kB / 1.171 GB, free: 13.44 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.8942, allocations: 32.31 kB / 1.171 GB, free: 13.41 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/0.8943, allocations: 19.44 kB / 1.171 GB, free: 13.41 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002548/0.8968, allocations: 1.174 MB / 1.172 GB, free: 12.83 MB / 0.92 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007651/0.9045, allocations: 5.123 MB / 1.177 GB, free: 8.594 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.9063, allocations: 0.8082 MB / 1.178 GB, free: 8.176 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.9074, allocations: 0.5481 MB / 1.178 GB, free: 7.902 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005906/0.908, allocations: 0.7497 MB / 1.179 GB, free: 7.023 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001354/0.9093, allocations: 0.6765 MB / 1.18 GB, free: 6.613 MB / 0.92 GB Notification: Performance of pre-optimization done (n=54): time 3.707e-06/0.9094, allocations: 4 kB / 1.18 GB, free: 6.609 MB / 0.92 GB Notification: Performance of matching and sorting (n=54): time 0.003637/0.913, allocations: 1.587 MB / 1.181 GB, free: 5.816 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.9131, allocations: 115.1 kB / 1.181 GB, free: 5.688 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/0.915, allocations: 1.134 MB / 1.182 GB, free: 5.059 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.9151, allocations: 44.42 kB / 1.182 GB, free: 5.016 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005935/0.9157, allocations: 0.5594 MB / 1.183 GB, free: 4.52 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.9159, allocations: 176.9 kB / 1.183 GB, free: 4.367 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/0.9162, allocations: 158.5 kB / 1.183 GB, free: 4.27 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.9164, allocations: 327.6 kB / 1.184 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.9174, allocations: 0.4953 MB / 1.184 GB, free: 3.695 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.9187, allocations: 0.6549 MB / 1.185 GB, free: 3.25 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/0.9207, allocations: 0.9671 MB / 1.186 GB, free: 2.691 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.9207, allocations: 1.594 kB / 1.186 GB, free: 2.691 MB / 0.92 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002623/0.9233, allocations: 1.232 MB / 1.187 GB, free: 2.066 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.9234, allocations: 6.688 kB / 1.187 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.9234, allocations: 11.22 kB / 1.187 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.9234, allocations: 10.69 kB / 1.187 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000846/0.9243, allocations: 204.6 kB / 1.187 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.9243, allocations: 6.812 kB / 1.187 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.9253, allocations: 145.1 kB / 1.187 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-05/0.9254, allocations: 39.16 kB / 1.187 GB, free: 1.879 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001411/0.9269, allocations: 0.7458 MB / 1.188 GB, free: 1.449 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001158/0.928, allocations: 0.6498 MB / 1.189 GB, free: 1.016 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001947/0.93, allocations: 0.9642 MB / 1.19 GB, free: 456 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.096e-06/0.93, allocations: 1.969 kB / 1.19 GB, free: 456 kB / 0.92 GB Notification: Performance of matching and sorting (n=80) (initialization_lambda0): time 0.003/0.933, allocations: 1.218 MB / 1.191 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.933, allocations: 11.03 kB / 1.191 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.9331, allocations: 6.234 kB / 1.191 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.9331, allocations: 6.938 kB / 1.191 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000769/0.9339, allocations: 200.8 kB / 1.191 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.989e-05/0.9339, allocations: 17.42 kB / 1.191 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.935, allocations: 142.1 kB / 1.191 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/0.9351, allocations: 34.91 kB / 1.191 GB, free: 15.65 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.dat.nextTimeEvent,$whenCondition1,dat.nextTimeEventScaled,$PRE.dat.nextTimeEventScaled,dat.nextTimeEvent,iceTan.tanHeaTra.canMelt.greHys.y,$PRE.iceTan.tanHeaTra.canMelt.greHys.y,iceTan.tanHeaTra.canFreeze.lesHys.y,$PRE.iceTan.tanHeaTra.canFreeze.lesHys.y,iceTan.tanHeaTra.SOCCalc.suspend,iceTan.tanHeaTra.SOCCalc.discharged,$PRE.iceTan.tanHeaTra.SOCCalc.discharged,iceTan.tanHeaTra.SOCCalc.charged,$PRE.iceTan.tanHeaTra.SOCCalc.charged,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 80 * 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.0003074/0.9354, allocations: 226.8 kB / 1.191 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003398/0.9357, allocations: 114.1 kB / 1.192 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002983/0.9387, allocations: 1.304 MB / 1.193 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002355/0.9411, allocations: 1.291 MB / 1.194 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.9411, allocations: 0 / 1.194 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006911/0.9418, allocations: 327.4 kB / 1.194 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003093/0.9421, allocations: 31.11 kB / 1.194 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009058/0.9431, allocations: 106 kB / 1.195 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.9432, allocations: 57.08 kB / 1.195 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003093/0.9463, allocations: 1.384 MB / 1.196 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003905/0.9502, allocations: 2.151 MB / 1.198 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001101/0.9513, allocations: 0.5813 MB / 1.199 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001507/0.9529, allocations: 0.7844 MB / 1.199 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of Backend: time 5.91e-07/0.9529, allocations: 0 / 1.199 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005721/0.9586, allocations: 2.083 MB / 1.201 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of SimCode: time 0.004435/0.9631, allocations: 2.623 MB / 1.204 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of Templates: time 0.04622/1.009, allocations: 28.99 MB / 1.232 GB, free: 10.21 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_Validation_ExperimentNIST_Charging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.Validation.ExperimentNIST.Charging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches