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.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: "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0083/0.0083, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001932/0.001933, allocations: 195.6 kB / 16.67 MB, free: 5.52 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 15.18 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.233/2.233, allocations: 390.2 MB / 0.6648 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.89 kB / 0.9504 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6706/0.6719, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.006329/0.6782, allocations: 6.046 MB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1706/0.8488, allocations: 155.3 MB / 1.245 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.8501, allocations: 29.62 kB / 1.245 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.004477/0.8546, allocations: 1.773 MB / 1.247 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00238/0.857, allocations: 0.7536 MB / 1.248 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002547/0.8595, allocations: 1.027 MB / 1.249 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00329/0.8628, allocations: 3.358 MB / 1.252 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.8641, allocations: 0.9554 MB / 1.253 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.8657, allocations: 1.138 MB / 1.254 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.8672, allocations: 1.023 MB / 1.255 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003759/0.8676, allocations: 196 kB / 1.255 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003344/0.8709, allocations: 2.235 MB / 1.257 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001612/0.8725, allocations: 2.051 MB / 1.259 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002693/0.8752, allocations: 2.114 MB / 1.261 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007834/0.8831, allocations: 7.788 MB / 1.269 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.8831, allocations: 4 kB / 1.269 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.262e-06/0.8831, allocations: 0 / 1.269 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001148/0.8832, allocations: 0 / 1.269 GB, free: 3.852 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.01254/0.8958, allocations: 6.197 MB / 1.275 GB, free: 13.57 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.8958, allocations: 12.03 kB / 1.275 GB, free: 13.56 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002867/0.8961, allocations: 194.5 kB / 1.275 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001923/0.898, allocations: 467.5 kB / 1.276 GB, free: 12.9 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7188/1.617, allocations: 321.1 MB / 1.589 GB, free: 448.2 MB / 1.311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/1.617, allocations: 130.9 kB / 1.589 GB, free: 448.2 MB / 1.311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/1.617, allocations: 182.7 kB / 1.59 GB, free: 448.1 MB / 1.311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003058/1.62, allocations: 1.669 MB / 1.591 GB, free: 447.5 MB / 1.311 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/1.62, allocations: 5 kB / 1.591 GB, free: 447.5 MB / 1.311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/1.621, allocations: 53.64 kB / 1.591 GB, free: 447.4 MB / 1.311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.153e-05/1.621, allocations: 28.94 kB / 1.591 GB, free: 447.4 MB / 1.311 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002895/1.624, allocations: 1.725 MB / 1.593 GB, free: 447 MB / 1.311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0539/1.677, allocations: 76.57 MB / 1.668 GB, free: 409.4 MB / 1.311 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/1.68, allocations: 1.578 MB / 1.669 GB, free: 408 MB / 1.311 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/1.681, allocations: 1.038 MB / 1.67 GB, free: 407 MB / 1.311 GB Notification: Performance of preOpt evalFunc (simulation): time 7.809e-05/1.681, allocations: 35.41 kB / 1.67 GB, free: 407 MB / 1.311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001232/1.682, allocations: 0.9851 MB / 1.671 GB, free: 406.2 MB / 1.311 GB Notification: Performance of pre-optimization done (n=118): time 3.196e-06/1.682, allocations: 2.734 kB / 1.671 GB, free: 406.2 MB / 1.311 GB Notification: Performance of matching and sorting (n=118): time 0.004847/1.687, allocations: 3.013 MB / 1.674 GB, free: 403.4 MB / 1.311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/1.687, allocations: 339.8 kB / 1.675 GB, free: 403.1 MB / 1.311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3551/2.042, allocations: 379.7 MB / 2.045 GB, free: 23.87 MB / 1.311 GB Notification: Performance of collectPreVariables (initialization): time 0.0003931/2.043, allocations: 69.7 kB / 2.045 GB, free: 23.79 MB / 1.311 GB Notification: Performance of collectInitialEqns (initialization): time 0.001662/2.044, allocations: 1.606 MB / 2.047 GB, free: 22.19 MB / 1.311 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/2.045, allocations: 383.7 kB / 2.047 GB, free: 21.82 MB / 1.311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000741/2.046, allocations: 0.5231 MB / 2.048 GB, free: 21.29 MB / 1.311 GB Notification: Performance of setup shared object (initialization): time 4.246e-05/2.046, allocations: 305.1 kB / 2.048 GB, free: 20.99 MB / 1.311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/2.047, allocations: 1.437 MB / 2.049 GB, free: 19.55 MB / 1.311 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/2.049, allocations: 2.165 MB / 2.052 GB, free: 17.07 MB / 1.311 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/2.053, allocations: 3.542 MB / 2.055 GB, free: 13.22 MB / 1.311 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.871e-05/2.053, allocations: 4 kB / 2.055 GB, free: 13.21 MB / 1.311 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.006014/2.059, allocations: 4.255 MB / 2.059 GB, free: 8.941 MB / 1.311 GB Notification: Performance of prepare postOptimizeDAE: time 0.000142/2.059, allocations: 182.5 kB / 2.059 GB, free: 8.758 MB / 1.311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/2.059, allocations: 24 kB / 2.059 GB, free: 8.734 MB / 1.311 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.751e-05/2.059, allocations: 36 kB / 2.059 GB, free: 8.699 MB / 1.311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/2.06, allocations: 478.1 kB / 2.06 GB, free: 8.234 MB / 1.311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.825e-05/2.06, allocations: 43.86 kB / 2.06 GB, free: 8.191 MB / 1.311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002625/2.063, allocations: 0.5471 MB / 2.06 GB, free: 7.641 MB / 1.311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/2.063, allocations: 111.9 kB / 2.061 GB, free: 7.531 MB / 1.311 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 18 (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 (265): * Single equations (assignments): 264 * Array equations: 0 * 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.001673/2.065, allocations: 1.669 MB / 2.062 GB, free: 5.844 MB / 1.311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001285/2.066, allocations: 351.3 kB / 2.063 GB, free: 5.496 MB / 1.311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/2.07, allocations: 3.031 MB / 2.066 GB, free: 2.445 MB / 1.311 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/2.07, allocations: 8 kB / 2.066 GB, free: 2.438 MB / 1.311 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/2.07, allocations: 5.203 kB / 2.066 GB, free: 2.434 MB / 1.311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/2.07, allocations: 3.984 kB / 2.066 GB, free: 2.43 MB / 1.311 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003182/2.073, allocations: 2.823 MB / 2.068 GB, free: 15.57 MB / 1.326 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/2.073, allocations: 0 / 2.068 GB, free: 15.57 MB / 1.326 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007031/2.074, allocations: 167.7 kB / 2.068 GB, free: 15.4 MB / 1.326 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/2.074, allocations: 4 kB / 2.068 GB, free: 15.4 MB / 1.326 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-05/2.074, allocations: 39.56 kB / 2.068 GB, free: 15.36 MB / 1.326 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/2.074, allocations: 4 kB / 2.068 GB, free: 15.36 MB / 1.326 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/2.074, allocations: 0 / 2.068 GB, free: 15.36 MB / 1.326 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004293/2.078, allocations: 2.824 MB / 2.071 GB, free: 12.51 MB / 1.326 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002361/2.081, allocations: 1.23 MB / 2.072 GB, free: 11.25 MB / 1.326 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000715/2.081, allocations: 32 kB / 2.072 GB, free: 11.22 MB / 1.326 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/2.083, allocations: 300.5 kB / 2.073 GB, free: 10.93 MB / 1.326 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/2.083, allocations: 88.89 kB / 2.073 GB, free: 10.85 MB / 1.326 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/2.083, allocations: 47.97 kB / 2.073 GB, free: 10.8 MB / 1.326 GB Notification: Performance of sorting global known variables: time 0.6541/2.737, allocations: 305.3 MB / 2.371 GB, free: 252 MB / 1.342 GB Notification: Performance of sort global known variables: time 8.92e-07/2.738, allocations: 0 / 2.371 GB, free: 252 MB / 1.342 GB Notification: Performance of remove unused functions: time 0.003442/2.741, allocations: 1.215 MB / 2.372 GB, free: 250.9 MB / 1.342 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.005962/2.747, allocations: 4.24 MB / 2.376 GB, free: 247.2 MB / 1.342 GB Notification: Performance of simCode: created initialization part: time 0.00399/2.751, allocations: 4.624 MB / 2.381 GB, free: 242.6 MB / 1.342 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/2.751, allocations: 0 / 2.381 GB, free: 242.6 MB / 1.342 GB Notification: Performance of simCode: created simulation system equations: time 0.001595/2.753, allocations: 2.243 MB / 2.383 GB, free: 240.3 MB / 1.342 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002948/2.756, allocations: 478.8 kB / 2.384 GB, free: 239.9 MB / 1.342 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.384/5.139, allocations: 1.504 GB / 3.888 GB, free: 271.1 MB / 1.342 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/5.141, allocations: 2.352 MB / 3.89 GB, free: 268.7 MB / 1.342 GB Notification: Performance of simCode: alias equations: time 0.002579/5.144, allocations: 1.254 MB / 3.891 GB, free: 267.5 MB / 1.342 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002322/5.146, allocations: 1.754 MB / 3.893 GB, free: 265.8 MB / 1.342 GB Notification: Performance of SimCode: time 6.51e-07/5.146, allocations: 0 / 3.893 GB, free: 265.8 MB / 1.342 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7602/5.906, allocations: 252.5 MB / 4.139 GB, free: 14.71 MB / 1.342 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.23/21.14, allocations: 448 / 4.139 GB, free: 14.71 MB / 1.342 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.fmu > Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.csv","/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