Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,fileNamePrefix="Buildings_10_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.007938/0.007938, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001796/0.001796, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.592/2.592, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2671, allocations: 151.6 MB / 1.166 GB, free: 7.27 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.008234/0.2754, allocations: 7.304 MB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.7389/1.014, allocations: 155.5 MB / 1.325 GB, free: 6.434 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/1.015, allocations: 25.47 kB / 1.325 GB, free: 6.426 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.004898/1.02, allocations: 1.828 MB / 1.327 GB, free: 5.941 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002527/1.023, allocations: 0.8561 MB / 1.328 GB, free: 5.566 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002574/1.025, allocations: 1.043 MB / 1.329 GB, free: 5.102 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003706/1.029, allocations: 3.575 MB / 1.332 GB, free: 3.457 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/1.03, allocations: 0.9187 MB / 1.333 GB, free: 2.961 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001771/1.032, allocations: 1.171 MB / 1.334 GB, free: 2.477 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/1.034, allocations: 1.055 MB / 1.335 GB, free: 1.992 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002801/1.034, allocations: 194.9 kB / 1.336 GB, free: 1.992 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003867/1.038, allocations: 2.24 MB / 1.338 GB, free: 1.379 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001549/1.039, allocations: 2.053 MB / 1.34 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.00215/1.041, allocations: 2.153 MB / 1.342 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.008644/1.05, allocations: 7.873 MB / 1.35 GB, free: 12.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/1.05, allocations: 1.219 kB / 1.35 GB, free: 12.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/1.05, allocations: 4 kB / 1.35 GB, free: 12.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001027/1.05, allocations: 0 / 1.35 GB, free: 12.46 MB / 1.029 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.01315/1.063, allocations: 6.38 MB / 1.356 GB, free: 8.277 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/1.063, allocations: 9.25 kB / 1.356 GB, free: 8.277 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000232/1.064, allocations: 194.2 kB / 1.356 GB, free: 8.125 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/1.065, allocations: 490.4 kB / 1.356 GB, free: 7.863 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2869/1.352, allocations: 321.2 MB / 1.67 GB, free: 0.7031 MB / 1.326 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/1.353, allocations: 134.4 kB / 1.67 GB, free: 0.5703 MB / 1.326 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005202/1.353, allocations: 176 kB / 1.67 GB, free: 408 kB / 1.326 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/1.356, allocations: 1.664 MB / 1.672 GB, free: 14.67 MB / 1.342 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/1.356, allocations: 4 kB / 1.672 GB, free: 14.67 MB / 1.342 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/1.356, allocations: 55.94 kB / 1.672 GB, free: 14.61 MB / 1.342 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/1.356, allocations: 28 kB / 1.672 GB, free: 14.59 MB / 1.342 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002554/1.359, allocations: 1.726 MB / 1.674 GB, free: 12.85 MB / 1.342 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06143/1.42, allocations: 76.98 MB / 1.749 GB, free: 15.66 MB / 1.42 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002619/1.423, allocations: 1.588 MB / 1.751 GB, free: 14.07 MB / 1.42 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/1.424, allocations: 1.031 MB / 1.752 GB, free: 13.04 MB / 1.42 GB Notification: Performance of preOpt evalFunc (simulation): time 8.573e-05/1.424, allocations: 41.17 kB / 1.752 GB, free: 13 MB / 1.42 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001376/1.426, allocations: 0.9805 MB / 1.753 GB, free: 12.01 MB / 1.42 GB Notification: Performance of pre-optimization done (n=118): time 3.236e-06/1.426, allocations: 0 / 1.753 GB, free: 12.01 MB / 1.42 GB Notification: Performance of matching and sorting (n=118): time 0.006153/1.432, allocations: 3.035 MB / 1.755 GB, free: 8.961 MB / 1.42 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002113/1.432, allocations: 338.5 kB / 1.756 GB, free: 8.578 MB / 1.42 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.938/2.37, allocations: 379.7 MB / 2.127 GB, free: 271.5 MB / 1.467 GB Notification: Performance of collectPreVariables (initialization): time 0.0004633/2.371, allocations: 69.7 kB / 2.127 GB, free: 271.4 MB / 1.467 GB Notification: Performance of collectInitialEqns (initialization): time 0.001931/2.373, allocations: 1.616 MB / 2.128 GB, free: 270 MB / 1.467 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/2.373, allocations: 403.3 kB / 2.129 GB, free: 269.8 MB / 1.467 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008727/2.374, allocations: 0.5158 MB / 2.129 GB, free: 269.3 MB / 1.467 GB Notification: Performance of setup shared object (initialization): time 3.781e-05/2.374, allocations: 301.1 kB / 2.129 GB, free: 269 MB / 1.467 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001743/2.376, allocations: 1.442 MB / 2.131 GB, free: 267.5 MB / 1.467 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00193/2.378, allocations: 2.17 MB / 2.133 GB, free: 265.1 MB / 1.467 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003396/2.381, allocations: 3.534 MB / 2.136 GB, free: 261.3 MB / 1.467 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/2.381, allocations: 15.58 kB / 2.136 GB, free: 261.3 MB / 1.467 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.00624/2.387, allocations: 4.281 MB / 2.141 GB, free: 257 MB / 1.467 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/2.387, allocations: 185.6 kB / 2.141 GB, free: 256.8 MB / 1.467 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/2.387, allocations: 24 kB / 2.141 GB, free: 256.8 MB / 1.467 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.621e-05/2.387, allocations: 32 kB / 2.141 GB, free: 256.8 MB / 1.467 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/2.389, allocations: 471.2 kB / 2.141 GB, free: 256.3 MB / 1.467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.41e-05/2.389, allocations: 47.84 kB / 2.141 GB, free: 256.2 MB / 1.467 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/2.392, allocations: 0.5542 MB / 2.142 GB, free: 255.7 MB / 1.467 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/2.392, allocations: 116 kB / 2.142 GB, free: 255.6 MB / 1.467 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.001961/2.394, allocations: 1.66 MB / 2.144 GB, free: 254 MB / 1.467 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001554/2.396, allocations: 373.4 kB / 2.144 GB, free: 253.6 MB / 1.467 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003719/2.4, allocations: 3.033 MB / 2.147 GB, free: 250.5 MB / 1.467 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/2.4, allocations: 17.73 kB / 2.147 GB, free: 250.5 MB / 1.467 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/2.4, allocations: 3.984 kB / 2.147 GB, free: 250.5 MB / 1.467 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.669e-06/2.4, allocations: 7.922 kB / 2.147 GB, free: 250.5 MB / 1.467 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003878/2.404, allocations: 2.81 MB / 2.15 GB, free: 247.7 MB / 1.467 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/2.404, allocations: 0 / 2.15 GB, free: 247.7 MB / 1.467 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006395/2.404, allocations: 163.8 kB / 2.15 GB, free: 247.5 MB / 1.467 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/2.404, allocations: 4 kB / 2.15 GB, free: 247.5 MB / 1.467 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.836e-05/2.404, allocations: 35.92 kB / 2.15 GB, free: 247.5 MB / 1.467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/2.404, allocations: 8.062 kB / 2.15 GB, free: 247.5 MB / 1.467 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/2.404, allocations: 0 / 2.15 GB, free: 247.5 MB / 1.467 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00404/2.408, allocations: 2.838 MB / 2.153 GB, free: 244.6 MB / 1.467 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00264/2.411, allocations: 1.255 MB / 2.154 GB, free: 243.3 MB / 1.467 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/2.412, allocations: 35.88 kB / 2.154 GB, free: 243.3 MB / 1.467 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002357/2.415, allocations: 302.5 kB / 2.154 GB, free: 243 MB / 1.467 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/2.415, allocations: 80.89 kB / 2.154 GB, free: 242.9 MB / 1.467 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.379e-05/2.415, allocations: 47.97 kB / 2.154 GB, free: 242.9 MB / 1.467 GB Notification: Performance of sorting global known variables: time 0.7424/3.157, allocations: 305.3 MB / 2.453 GB, free: 0.5067 GB / 1.467 GB Notification: Performance of sort global known variables: time 8.11e-07/3.157, allocations: 0 / 2.453 GB, free: 0.5067 GB / 1.467 GB Notification: Performance of remove unused functions: time 0.005217/3.163, allocations: 1.251 MB / 2.454 GB, free: 0.5056 GB / 1.467 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.007928/3.171, allocations: 4.259 MB / 2.458 GB, free: 0.5023 GB / 1.467 GB Notification: Performance of simCode: created initialization part: time 0.004548/3.175, allocations: 4.624 MB / 2.462 GB, free: 0.4981 GB / 1.467 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/3.175, allocations: 2.516 kB / 2.462 GB, free: 0.4981 GB / 1.467 GB Notification: Performance of simCode: created simulation system equations: time 0.001683/3.177, allocations: 2.241 MB / 2.465 GB, free: 0.4961 GB / 1.467 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003708/3.181, allocations: 490.9 kB / 2.465 GB, free: 0.4957 GB / 1.467 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.118/5.299, allocations: 1.504 GB / 3.969 GB, free: 149.9 MB / 1.467 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002535/5.301, allocations: 2.362 MB / 3.972 GB, free: 147.6 MB / 1.467 GB Notification: Performance of simCode: alias equations: time 0.00333/5.305, allocations: 1.249 MB / 3.973 GB, free: 146.4 MB / 1.467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003209/5.308, allocations: 1.764 MB / 3.974 GB, free: 144.6 MB / 1.467 GB Notification: Performance of SimCode: time 7.82e-07/5.308, allocations: 0 / 3.974 GB, free: 144.6 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.284/6.592, allocations: 253.1 MB / 4.222 GB, free: 487.1 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/21.93, allocations: 4.375 kB / 4.222 GB, free: 487.1 MB / 1.467 GB (rm -f Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; mkfifo Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe >> ../files/Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.fmu > Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_HeatTransfer_Windows_BaseClasses_Examples_AbsorbedRadiationElectrochromic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches