Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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_11_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_11_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.001793/0.001792, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001647/0.001647, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.448/1.448, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.801/2.801, allocations: 469.8 MB / 0.742 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 66.02 kB / 0.908 GB, free: 34.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3425, allocations: 159.2 MB / 1.063 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.009867/0.3524, allocations: 7.227 MB / 1.071 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1909/0.5433, allocations: 153.3 MB / 1.22 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.545, allocations: 19.88 kB / 1.22 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.005244/0.5503, allocations: 1.651 MB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002979/0.5533, allocations: 0.7657 MB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002671/0.5559, allocations: 0.9206 MB / 1.223 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004599/0.5605, allocations: 3.564 MB / 1.227 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001636/0.5622, allocations: 0.9172 MB / 1.228 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002164/0.5644, allocations: 1.199 MB / 1.229 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.5663, allocations: 1.086 MB / 1.23 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0005973/0.5669, allocations: 196 kB / 1.23 GB, free: 3.148 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004055/0.571, allocations: 2.22 MB / 1.232 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.5731, allocations: 1.907 MB / 1.234 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002027/0.5752, allocations: 1.185 MB / 1.235 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007281/0.5825, allocations: 4.363 MB / 1.24 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.5825, allocations: 0 / 1.24 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.813e-06/0.5825, allocations: 4 kB / 1.24 GB, free: 9.445 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.000119/0.5826, allocations: 0 / 1.24 GB, free: 9.445 MB / 0.9981 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.006982/0.5896, allocations: 2.993 MB / 1.243 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.5897, allocations: 8.031 kB / 1.243 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009656/0.5907, allocations: 297.8 kB / 1.243 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006322/0.597, allocations: 4.556 MB / 1.247 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.5971, allocations: 138.4 kB / 1.248 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002704/0.5974, allocations: 187.9 kB / 1.248 GB, free: 1.16 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4481/1.045, allocations: 1.651 MB / 1.249 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/1.046, allocations: 3.156 kB / 1.249 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/1.046, allocations: 51.84 kB / 1.249 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.934e-05/1.046, allocations: 29.03 kB / 1.249 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/1.048, allocations: 1.726 MB / 1.251 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008866/1.057, allocations: 7.423 MB / 1.258 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/1.059, allocations: 1.581 MB / 1.26 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/1.06, allocations: 1.038 MB / 1.261 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.128e-05/1.06, allocations: 35.3 kB / 1.261 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/1.062, allocations: 0.9794 MB / 1.262 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=118): time 2.785e-06/1.062, allocations: 0 / 1.262 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=118): time 0.00423/1.066, allocations: 2.845 MB / 1.265 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001912/1.066, allocations: 344.9 kB / 1.265 GB, free: 182.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01054/1.077, allocations: 7.389 MB / 1.272 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003658/1.077, allocations: 71.39 kB / 1.272 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006259/1.078, allocations: 0.792 MB / 1.273 GB, free: 179.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003307/1.078, allocations: 389.1 kB / 1.273 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001588/1.08, allocations: 1.884 MB / 1.275 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.603e-05/1.08, allocations: 303.1 kB / 1.276 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01041/1.09, allocations: 12.99 MB / 1.288 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009779/1.1, allocations: 13.69 MB / 1.302 GB, free: 160.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/1.112, allocations: 17.11 MB / 1.318 GB, free: 143.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/1.112, allocations: 4 kB / 1.318 GB, free: 143.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02278/1.134, allocations: 31.26 MB / 1.349 GB, free: 112.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001656/1.135, allocations: 187.1 kB / 1.349 GB, free: 112.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/1.135, allocations: 12 kB / 1.349 GB, free: 112.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/1.135, allocations: 24 kB / 1.349 GB, free: 112.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/1.136, allocations: 471.8 kB / 1.35 GB, free: 111.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.556e-05/1.136, allocations: 35.92 kB / 1.35 GB, free: 111.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/1.138, allocations: 286.9 kB / 1.35 GB, free: 111.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/1.138, allocations: 112 kB / 1.35 GB, free: 111.4 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.001161/1.139, allocations: 1.228 MB / 1.351 GB, free: 110.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/1.139, allocations: 185.5 kB / 1.351 GB, free: 109.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00307/1.143, allocations: 2.748 MB / 1.354 GB, free: 107.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/1.143, allocations: 10.53 kB / 1.354 GB, free: 107.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.143, allocations: 0 / 1.354 GB, free: 107.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/1.143, allocations: 3.984 kB / 1.354 GB, free: 107.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/1.144, allocations: 1.484 MB / 1.355 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.144, allocations: 0 / 1.355 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005912/1.145, allocations: 159.8 kB / 1.356 GB, free: 105.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/1.145, allocations: 9.203 kB / 1.356 GB, free: 105.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-05/1.145, allocations: 35.97 kB / 1.356 GB, free: 105.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/1.145, allocations: 4.875 kB / 1.356 GB, free: 105.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.145, allocations: 3.938 kB / 1.356 GB, free: 105.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/1.147, allocations: 2.64 MB / 1.358 GB, free: 102.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/1.148, allocations: 426.2 kB / 1.359 GB, free: 102.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/1.148, allocations: 31.94 kB / 1.359 GB, free: 102.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007783/1.149, allocations: 83.83 kB / 1.359 GB, free: 102.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/1.149, allocations: 80.89 kB / 1.359 GB, free: 102.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/1.149, allocations: 59.66 kB / 1.359 GB, free: 102.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002641/1.152, allocations: 4.648 MB / 1.363 GB, free: 97.42 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.152, allocations: 0 / 1.363 GB, free: 97.42 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002158/1.154, allocations: 1.211 MB / 1.365 GB, free: 96.28 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.002505/1.156, allocations: 0.956 MB / 1.366 GB, free: 95.66 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01303/1.169, allocations: 19.62 MB / 1.385 GB, free: 76.04 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/1.169, allocations: 0 / 1.385 GB, free: 76.04 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001579/1.171, allocations: 2.248 MB / 1.387 GB, free: 73.78 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/1.172, allocations: 363.3 kB / 1.387 GB, free: 73.45 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007812/1.18, allocations: 9.597 MB / 1.397 GB, free: 63.83 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/1.182, allocations: 2.363 MB / 1.399 GB, free: 61.44 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001251/1.183, allocations: 446.2 kB / 1.399 GB, free: 61.01 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/1.183, allocations: 159.4 kB / 1.399 GB, free: 60.86 MB / 0.9981 GB Notification: Performance of SimCode: time 7.72e-07/1.183, allocations: 0 / 1.399 GB, free: 60.86 MB / 0.9981 GB Notification: Performance of Templates: time 0.06655/1.25, allocations: 36.25 MB / 1.435 GB, free: 24.84 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.makefile (rm -f Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; mkfifo Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe >> ../files/Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.sim & ./Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches