Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001294/0.001294, allocations: 103.8 kB / 16.35 MB, free: 5.824 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.001244/0.001244, allocations: 190.4 kB / 17.29 MB, free: 5.48 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.19/2.19, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.25 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2778, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.008355/0.2862, allocations: 6.046 MB / 0.957 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.6467/0.9329, allocations: 155.3 MB / 1.109 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.9342, allocations: 30 kB / 1.109 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005571/0.9398, allocations: 1.772 MB / 1.11 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002452/0.9422, allocations: 0.7392 MB / 1.111 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00275/0.945, allocations: 1.031 MB / 1.112 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004273/0.9493, allocations: 3.364 MB / 1.116 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.9508, allocations: 0.9409 MB / 1.116 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002106/0.9529, allocations: 1.136 MB / 1.118 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.955, allocations: 1.02 MB / 1.119 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0007326/0.9557, allocations: 195.9 kB / 1.119 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004669/0.9604, allocations: 2.245 MB / 1.121 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.002153/0.9626, allocations: 1.912 MB / 1.123 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002285/0.9649, allocations: 1.144 MB / 1.124 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005887/0.9708, allocations: 4.372 MB / 1.128 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.9708, allocations: 1.438 kB / 1.128 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.854e-06/0.9708, allocations: 0 / 1.128 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.309e-05/0.9709, allocations: 0 / 1.128 GB, free: 2.32 MB / 0.8575 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.005371/0.9762, allocations: 2.956 MB / 1.131 GB, free: 16.9 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.9763, allocations: 9.219 kB / 1.131 GB, free: 16.9 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/0.9773, allocations: 301.4 kB / 1.131 GB, free: 16.77 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005798/0.9831, allocations: 4.59 MB / 1.136 GB, free: 16.25 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.9832, allocations: 131.9 kB / 1.136 GB, free: 16.25 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002667/0.9835, allocations: 180.6 kB / 1.136 GB, free: 16.25 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.986, allocations: 1.665 MB / 1.138 GB, free: 16.06 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.986, allocations: 1.625 kB / 1.138 GB, free: 16.06 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.9861, allocations: 58.02 kB / 1.138 GB, free: 16.06 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.491e-05/0.9862, allocations: 29.25 kB / 1.138 GB, free: 16.06 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002465/0.9886, allocations: 1.723 MB / 1.14 GB, free: 16.04 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009659/0.9983, allocations: 6.97 MB / 1.146 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/1.001, allocations: 1.581 MB / 1.148 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/1.002, allocations: 1.034 MB / 1.149 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.939e-05/1.002, allocations: 42.25 kB / 1.149 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001256/1.003, allocations: 0.9891 MB / 1.15 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=118): time 3.076e-06/1.003, allocations: 0 / 1.15 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of matching and sorting (n=118): time 0.004056/1.007, allocations: 2.838 MB / 1.153 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001974/1.007, allocations: 345.9 kB / 1.153 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009088/1.016, allocations: 7.383 MB / 1.16 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0004416/1.017, allocations: 78.16 kB / 1.16 GB, free: 9.293 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007317/1.018, allocations: 0.7855 MB / 1.161 GB, free: 8.637 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003569/1.018, allocations: 397 kB / 1.161 GB, free: 8.309 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001595/1.02, allocations: 1.879 MB / 1.163 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.402e-05/1.02, allocations: 301.1 kB / 1.164 GB, free: 7.047 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01083/1.031, allocations: 13 MB / 1.176 GB, free: 1.285 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.013/1.044, allocations: 13.7 MB / 1.19 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01597/1.06, allocations: 17.1 MB / 1.206 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.438e-05/1.06, allocations: 4 kB / 1.206 GB, free: 2.035 MB / 0.9044 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.03069/1.09, allocations: 31.27 MB / 1.237 GB, free: 2.574 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002434/1.091, allocations: 181.6 kB / 1.237 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-05/1.091, allocations: 12 kB / 1.237 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.666e-05/1.091, allocations: 24.03 kB / 1.237 GB, free: 2.355 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/1.093, allocations: 479.2 kB / 1.238 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.893e-05/1.093, allocations: 27.92 kB / 1.238 GB, free: 1.859 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/1.095, allocations: 275 kB / 1.238 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002247/1.095, allocations: 112 kB / 1.238 GB, free: 1.48 MB / 0.9356 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.00161/1.097, allocations: 1.236 MB / 1.239 GB, free: 236 kB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003528/1.097, allocations: 181.6 kB / 1.239 GB, free: 52 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003984/1.101, allocations: 2.742 MB / 1.242 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/1.101, allocations: 12 kB / 1.242 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.101, allocations: 0 / 1.242 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/1.101, allocations: 7.984 kB / 1.242 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/1.103, allocations: 1.48 MB / 1.243 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/1.103, allocations: 0 / 1.243 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006785/1.103, allocations: 163.8 kB / 1.244 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/1.103, allocations: 8 kB / 1.244 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.479e-05/1.104, allocations: 43.89 kB / 1.244 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/1.104, allocations: 4 kB / 1.244 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.104, allocations: 0 / 1.244 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/1.107, allocations: 2.648 MB / 1.246 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007365/1.108, allocations: 426.2 kB / 1.247 GB, free: 8.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/1.108, allocations: 24 kB / 1.247 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/1.109, allocations: 79.06 kB / 1.247 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/1.109, allocations: 88.83 kB / 1.247 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/1.109, allocations: 47.97 kB / 1.247 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00418/1.113, allocations: 4.648 MB / 1.251 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/1.113, allocations: 0 / 1.251 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003222/1.117, allocations: 1.2 MB / 1.253 GB, free: 2.328 MB / 0.9512 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.002269/1.119, allocations: 0.9592 MB / 1.254 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01733/1.136, allocations: 18.97 MB / 1.272 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.136, allocations: 4 kB / 1.272 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002731/1.139, allocations: 2.241 MB / 1.274 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/1.141, allocations: 348 kB / 1.275 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.152, allocations: 8.458 MB / 1.283 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/1.154, allocations: 2.351 MB / 1.285 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001453/1.155, allocations: 460.4 kB / 1.286 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004193/1.156, allocations: 167.4 kB / 1.286 GB, free: 0.5781 MB / 0.9825 GB Notification: Performance of SimCode: time 5.71e-07/1.156, allocations: 0 / 1.286 GB, free: 0.5781 MB / 0.9825 GB Notification: Performance of Templates: time 0.08089/1.237, allocations: 35.58 MB / 1.32 GB, free: 13.18 MB / 1.029 GB make -j1 -f Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.makefile (rm -f Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; mkfifo Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe >> ../files/Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.sim & ./Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches