Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uSta.y|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uSta.y|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, 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.001859/0.001859, allocations: 191 kB / 16.25 MB, free: 6.637 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.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.401/2.401, allocations: 390.2 MB / 0.6644 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001288, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7133/0.7146, allocations: 140.4 MB / 0.9491 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008528/0.7232, allocations: 7.264 MB / 0.9562 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.2063/0.9295, allocations: 157 MB / 1.11 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.9323, allocations: 27.81 kB / 1.11 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.006477/0.9388, allocations: 1.791 MB / 1.111 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004968/0.9438, allocations: 1.061 MB / 1.112 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004398/0.9482, allocations: 1.302 MB / 1.114 GB, free: 8.988 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.007/0.9552, allocations: 5.233 MB / 1.119 GB, free: 3.75 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002095/0.9573, allocations: 1.273 MB / 1.12 GB, free: 2.418 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00361/0.961, allocations: 1.752 MB / 1.122 GB, free: 0.6602 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003089/0.9641, allocations: 1.584 MB / 1.123 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0007847/0.9649, allocations: 296 kB / 1.124 GB, free: 14.78 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005829/0.9707, allocations: 2.548 MB / 1.126 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004469/0.9752, allocations: 4.362 MB / 1.13 GB, free: 7.863 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.003904/0.9791, allocations: 1.687 MB / 1.132 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.9904, allocations: 6.155 MB / 1.138 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.9905, allocations: 3.938 kB / 1.138 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.044e-06/0.9905, allocations: 4 kB / 1.138 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001531/0.9906, allocations: 0 / 1.138 GB, free: 15.98 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: 424 * Number of variables: 424 Notification: Performance of Generate backend data structure: time 0.01039/1.001, allocations: 4.153 MB / 1.142 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/1.001, allocations: 8.031 kB / 1.142 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001542/1.003, allocations: 420.4 kB / 1.142 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01281/1.015, allocations: 12.3 MB / 1.154 GB, free: 14.96 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/1.016, allocations: 175.1 kB / 1.155 GB, free: 14.79 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003805/1.016, allocations: 240 kB / 1.155 GB, free: 14.56 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004079/1.02, allocations: 2.369 MB / 1.157 GB, free: 12.13 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/1.02, allocations: 3.938 kB / 1.157 GB, free: 12.12 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001775/1.02, allocations: 72 kB / 1.157 GB, free: 12.05 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/1.02, allocations: 39.98 kB / 1.157 GB, free: 12.02 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004289/1.025, allocations: 2.463 MB / 1.16 GB, free: 9.547 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02086/1.046, allocations: 15.06 MB / 1.174 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/1.049, allocations: 1.985 MB / 1.176 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/1.051, allocations: 1.277 MB / 1.178 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/1.051, allocations: 37.09 kB / 1.178 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001916/1.053, allocations: 1.358 MB / 1.179 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=138): time 2.975e-06/1.053, allocations: 3.938 kB / 1.179 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of matching and sorting (n=138): time 0.007353/1.06, allocations: 3.811 MB / 1.183 GB, free: 1.82 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002571/1.06, allocations: 366.5 kB / 1.183 GB, free: 1.41 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03122/1.091, allocations: 20.6 MB / 1.203 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0006855/1.092, allocations: 85.69 kB / 1.203 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.00167/1.094, allocations: 1.17 MB / 1.204 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006066/1.094, allocations: 469.4 kB / 1.205 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004762/1.099, allocations: 4.931 MB / 1.21 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.303e-05/1.099, allocations: 301.1 kB / 1.21 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5464/1.646, allocations: 38.68 MB / 1.248 GB, free: 279 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03461/1.68, allocations: 40.07 MB / 1.287 GB, free: 259.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03104/1.711, allocations: 47.74 MB / 1.333 GB, free: 211.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.726e-05/1.712, allocations: 8 kB / 1.333 GB, free: 211.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1852) (initialization): time 0.07075/1.782, allocations: 90.95 MB / 1.422 GB, free: 120.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002944/1.783, allocations: 205.6 kB / 1.422 GB, free: 120.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-05/1.783, allocations: 18.53 kB / 1.422 GB, free: 120.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006558/1.783, allocations: 109.9 kB / 1.423 GB, free: 120.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/1.786, allocations: 0.6123 MB / 1.423 GB, free: 119.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/1.788, allocations: 1.678 MB / 1.425 GB, free: 118 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/1.791, allocations: 381.3 kB / 1.425 GB, free: 117.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003206/1.791, allocations: 151.7 kB / 1.425 GB, free: 117.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (396): * Single equations (assignments): 355 * Array equations: 39 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.002247/1.794, allocations: 2.514 MB / 1.428 GB, free: 115.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004864/1.794, allocations: 260.4 kB / 1.428 GB, free: 114.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004579/1.799, allocations: 3.488 MB / 1.431 GB, free: 111.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/1.799, allocations: 12 kB / 1.431 GB, free: 111.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/1.799, allocations: 3.938 kB / 1.431 GB, free: 111.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/1.799, allocations: 11.97 kB / 1.431 GB, free: 111.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002214/1.801, allocations: 2.072 MB / 1.433 GB, free: 109.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/1.801, allocations: 0 / 1.433 GB, free: 109.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008877/1.802, allocations: 207.7 kB / 1.434 GB, free: 109 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004406/1.802, allocations: 76.78 kB / 1.434 GB, free: 108.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.846e-05/1.802, allocations: 35.98 kB / 1.434 GB, free: 108.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001494/1.804, allocations: 1.668 MB / 1.435 GB, free: 107.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.804, allocations: 3.938 kB / 1.435 GB, free: 107.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004004/1.808, allocations: 3.326 MB / 1.439 GB, free: 103.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007525/1.809, allocations: 0.552 MB / 1.439 GB, free: 103.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003137/1.809, allocations: 32 kB / 1.439 GB, free: 103.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/1.81, allocations: 105.1 kB / 1.439 GB, free: 103 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/1.81, allocations: 105.1 kB / 1.439 GB, free: 102.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/1.81, allocations: 71.91 kB / 1.439 GB, free: 102.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.007147/1.818, allocations: 12.8 MB / 1.452 GB, free: 90.04 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.71e-07/1.818, allocations: 0 / 1.452 GB, free: 90.04 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003804/1.821, allocations: 1.761 MB / 1.454 GB, free: 88.36 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 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00218/1.824, allocations: 1.005 MB / 1.455 GB, free: 87.68 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.03312/1.857, allocations: 51.76 MB / 1.505 GB, free: 35.91 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.857, allocations: 4 kB / 1.505 GB, free: 35.91 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002494/1.859, allocations: 2.709 MB / 1.508 GB, free: 33.18 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/1.861, allocations: 469.3 kB / 1.508 GB, free: 32.74 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/1.881, allocations: 21.27 MB / 1.529 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003792/1.884, allocations: 4.641 MB / 1.534 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001848/1.886, allocations: 0.6485 MB / 1.534 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005457/1.887, allocations: 219.4 kB / 1.534 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/1.887, allocations: 0 / 1.534 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of Templates: time 0.185/2.072, allocations: 59.79 MB / 1.593 GB, free: 10.38 MB / 1.061 GB make -j1 -f Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.makefile (rm -f Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & ./Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches