Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.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.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winAbs.QAbsGlaUns_flow.1|1.|winAbs.QAbsGlaUns_flow.1|2.|winAbs.QAbsGlaUns_flow.2|1.|winAbs.QAbsGlaUns_flow.2|2.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winAbs.QAbsGlaUns_flow.1|1.|winAbs.QAbsGlaUns_flow.1|2.|winAbs.QAbsGlaUns_flow.2|1.|winAbs.QAbsGlaUns_flow.2|2.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008023/0.0008026, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.005901/0.005901, allocations: 173.7 kB / 16.27 MB, free: 6.613 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.464/1.464, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.788/2.788, allocations: 443.3 MB / 0.7175 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003989, allocations: 12.73 kB / 0.8796 GB, free: 41.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3777, allocations: 155.2 MB / 1.031 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.007996/0.3857, allocations: 6.776 MB / 1.038 GB, free: 13.5 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.2009/0.5867, allocations: 151 MB / 1.185 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.5885, allocations: 23.88 kB / 1.185 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.005513/0.594, allocations: 1.651 MB / 1.187 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002981/0.597, allocations: 0.7498 MB / 1.188 GB, free: 3.461 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.5998, allocations: 0.9059 MB / 1.188 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.004123/0.6039, allocations: 3.496 MB / 1.192 GB, free: 15.06 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.6054, allocations: 0.8632 MB / 1.193 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.6073, allocations: 0.9144 MB / 1.194 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.6092, allocations: 0.8689 MB / 1.194 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0004549/0.6097, allocations: 52 kB / 1.195 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004358/0.614, allocations: 1.966 MB / 1.196 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.002021/0.6161, allocations: 1.751 MB / 1.198 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.6176, allocations: 0.9996 MB / 1.199 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.006001/0.6237, allocations: 4.171 MB / 1.203 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.6237, allocations: 4 kB / 1.203 GB, free: 3.375 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.803e-06/0.6237, allocations: 0 / 1.203 GB, free: 3.375 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.62e-05/0.6238, allocations: 0 / 1.203 GB, free: 3.375 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.004407/0.6282, allocations: 2.53 MB / 1.206 GB, free: 0.7773 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.6282, allocations: 8.031 kB / 1.206 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000815/0.629, allocations: 305.9 kB / 1.206 GB, free: 480 kB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004781/0.6338, allocations: 4.56 MB / 1.21 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/0.634, allocations: 130.4 kB / 1.211 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.6342, allocations: 184 kB / 1.211 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002656/0.6369, allocations: 1.668 MB / 1.212 GB, free: 9.82 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.6369, allocations: 0 / 1.212 GB, free: 9.82 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.637, allocations: 56 kB / 1.212 GB, free: 9.766 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.6371, allocations: 35.92 kB / 1.212 GB, free: 9.73 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002523/0.6396, allocations: 1.726 MB / 1.214 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.6502, allocations: 7.514 MB / 1.221 GB, free: 316 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.6525, allocations: 1.602 MB / 1.223 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.6537, allocations: 1.035 MB / 1.224 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.287e-05/0.6538, allocations: 37.02 kB / 1.224 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.6552, allocations: 0.9851 MB / 1.225 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=118): time 2.735e-06/0.6552, allocations: 0 / 1.225 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of matching and sorting (n=118): time 0.004378/0.6596, allocations: 2.855 MB / 1.228 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/0.6598, allocations: 348.2 kB / 1.228 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/0.67, allocations: 7.38 MB / 1.235 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0004736/0.6705, allocations: 77.69 kB / 1.235 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008843/0.6714, allocations: 0.7843 MB / 1.236 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005326/0.672, allocations: 398.4 kB / 1.237 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001617/0.6736, allocations: 1.605 MB / 1.238 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.6737, allocations: 305.1 kB / 1.238 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01271/0.6864, allocations: 13 MB / 1.251 GB, free: 1.75 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.634/1.32, allocations: 13.7 MB / 1.265 GB, free: 214.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01701/1.338, allocations: 17.12 MB / 1.281 GB, free: 207.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.489e-05/1.338, allocations: 3.5 kB / 1.281 GB, free: 207.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02663/1.364, allocations: 31.26 MB / 1.312 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002621/1.365, allocations: 182 kB / 1.312 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-05/1.365, allocations: 15.75 kB / 1.312 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.451e-05/1.365, allocations: 20 kB / 1.312 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/1.367, allocations: 481.5 kB / 1.312 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-05/1.367, allocations: 34.88 kB / 1.312 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/1.368, allocations: 303.4 kB / 1.313 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/1.369, allocations: 104.8 kB / 1.313 GB, free: 178.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 20 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (290): * Single equations (assignments): 276 * Array equations: 13 * Algorithm blocks: 1 * 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.001403/1.37, allocations: 1.237 MB / 1.314 GB, free: 177 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/1.37, allocations: 178.3 kB / 1.314 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/1.374, allocations: 2.753 MB / 1.317 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/1.374, allocations: 13.59 kB / 1.317 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/1.374, allocations: 0.7031 kB / 1.317 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/1.374, allocations: 4.547 kB / 1.317 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/1.376, allocations: 1.472 MB / 1.318 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/1.376, allocations: 4 kB / 1.318 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006104/1.376, allocations: 168.8 kB / 1.319 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/1.376, allocations: 4.797 kB / 1.319 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.518e-05/1.376, allocations: 35.95 kB / 1.319 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/1.376, allocations: 4 kB / 1.319 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.376, allocations: 0 / 1.319 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/1.379, allocations: 2.653 MB / 1.321 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005852/1.38, allocations: 463.3 kB / 1.322 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/1.38, allocations: 28 kB / 1.322 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008247/1.381, allocations: 99.59 kB / 1.322 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/1.381, allocations: 87.95 kB / 1.322 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.004e-05/1.381, allocations: 46.75 kB / 1.322 GB, free: 170 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003104/1.384, allocations: 4.652 MB / 1.326 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.384, allocations: 0 / 1.326 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00261/1.387, allocations: 1.217 MB / 1.328 GB, free: 164.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.002144/1.389, allocations: 0.9517 MB / 1.329 GB, free: 164 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01307/1.402, allocations: 18.97 MB / 1.347 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.402, allocations: 0 / 1.347 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001987/1.404, allocations: 2.248 MB / 1.349 GB, free: 143 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/1.406, allocations: 334.8 kB / 1.35 GB, free: 142.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009637/1.416, allocations: 9.644 MB / 1.359 GB, free: 133 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001587/1.417, allocations: 2.36 MB / 1.361 GB, free: 130.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001443/1.419, allocations: 452.7 kB / 1.362 GB, free: 130.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/1.419, allocations: 167.3 kB / 1.362 GB, free: 130 MB / 0.9981 GB Notification: Performance of SimCode: time 1.122e-06/1.419, allocations: 0 / 1.362 GB, free: 130 MB / 0.9981 GB Notification: Performance of Templates: time 0.05439/1.474, allocations: 33.04 MB / 1.394 GB, free: 97.16 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.makefile (rm -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; mkfifo Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe >> ../files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.sim & ./Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches