Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.WindowRadiationElectrochromic,fileNamePrefix="Buildings_latest_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,fileNamePrefix="Buildings_latest_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",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.004903/0.004903, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001114/0.001115, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.522/2.522, allocations: 469.4 MB / 0.7422 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 67.89 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7277/0.7292, allocations: 159.1 MB / 1.22 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009989/0.7392, allocations: 8.532 MB / 1.228 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1598/0.8991, allocations: 159.4 MB / 1.384 GB, free: 9.73 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.9009, allocations: 43.75 kB / 1.384 GB, free: 9.688 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.005297/0.9062, allocations: 2.008 MB / 1.386 GB, free: 7.672 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.003706/0.91, allocations: 1.278 MB / 1.387 GB, free: 6.395 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.003638/0.9136, allocations: 1.445 MB / 1.388 GB, free: 4.957 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.006006/0.9196, allocations: 5.446 MB / 1.394 GB, free: 15.5 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.922, allocations: 1.223 MB / 1.395 GB, free: 14.23 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.9252, allocations: 1.734 MB / 1.397 GB, free: 12.49 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002756/0.9279, allocations: 1.565 MB / 1.398 GB, free: 10.92 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0008827/0.9288, allocations: 288 kB / 1.398 GB, free: 10.64 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004698/0.9336, allocations: 2.575 MB / 1.401 GB, free: 8.059 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.004044/0.9376, allocations: 4.772 MB / 1.406 GB, free: 3.277 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.007465/0.9451, allocations: 4.868 MB / 1.41 GB, free: 14.39 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.01847/0.9636, allocations: 17.9 MB / 1.428 GB, free: 12.44 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.9636, allocations: 4 kB / 1.428 GB, free: 12.43 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9637, allocations: 0 / 1.428 GB, free: 12.43 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0003745/0.964, allocations: 0 / 1.428 GB, free: 12.43 MB / 1.154 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.04372/1.008, allocations: 14.42 MB / 1.442 GB, free: 13.88 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/1.008, allocations: 16.61 kB / 1.442 GB, free: 13.86 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004255/1.008, allocations: 244.9 kB / 1.442 GB, free: 13.61 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006005/1.014, allocations: 0.9597 MB / 1.443 GB, free: 12.64 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.841/2.856, allocations: 0.9948 GB / 2.438 GB, free: 263.8 MB / 1.514 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/2.856, allocations: 171.1 kB / 2.438 GB, free: 263.6 MB / 1.514 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002925/2.856, allocations: 240 kB / 2.438 GB, free: 263.4 MB / 1.514 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003067/2.859, allocations: 2.379 MB / 2.441 GB, free: 260.9 MB / 1.514 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/2.859, allocations: 0 / 2.441 GB, free: 260.9 MB / 1.514 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001463/2.859, allocations: 68 kB / 2.441 GB, free: 260.9 MB / 1.514 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/2.859, allocations: 40 kB / 2.441 GB, free: 260.8 MB / 1.514 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002973/2.862, allocations: 2.467 MB / 2.443 GB, free: 258.4 MB / 1.514 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1203/2.983, allocations: 243.1 MB / 2.681 GB, free: 15.01 MB / 1.514 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/2.985, allocations: 1.989 MB / 2.683 GB, free: 13.02 MB / 1.514 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/2.987, allocations: 1.277 MB / 2.684 GB, free: 11.74 MB / 1.514 GB Notification: Performance of preOpt evalFunc (simulation): time 8.198e-05/2.987, allocations: 37.09 kB / 2.684 GB, free: 11.7 MB / 1.514 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/2.988, allocations: 1.356 MB / 2.685 GB, free: 10.33 MB / 1.514 GB Notification: Performance of pre-optimization done (n=138): time 2.625e-06/2.988, allocations: 0 / 2.685 GB, free: 10.33 MB / 1.514 GB Notification: Performance of matching and sorting (n=138): time 0.009919/2.998, allocations: 4.364 MB / 2.689 GB, free: 5.93 MB / 1.514 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/2.998, allocations: 366.5 kB / 2.69 GB, free: 5.523 MB / 1.514 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.895/5.893, allocations: 1.182 GB / 3.872 GB, free: 0.543 GB / 1.529 GB Notification: Performance of collectPreVariables (initialization): time 0.0004174/5.894, allocations: 85.8 kB / 3.872 GB, free: 0.5429 GB / 1.529 GB Notification: Performance of collectInitialEqns (initialization): time 0.004639/5.898, allocations: 3.76 MB / 3.876 GB, free: 0.5405 GB / 1.529 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004758/5.899, allocations: 477.3 kB / 3.876 GB, free: 0.5404 GB / 1.529 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000907/5.9, allocations: 0.6711 MB / 3.877 GB, free: 0.5401 GB / 1.529 GB Notification: Performance of setup shared object (initialization): time 3.627e-05/5.9, allocations: 306.3 kB / 3.877 GB, free: 0.5399 GB / 1.529 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/5.903, allocations: 1.925 MB / 3.879 GB, free: 0.5393 GB / 1.529 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002957/5.906, allocations: 2.882 MB / 3.882 GB, free: 0.5377 GB / 1.529 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004989/5.911, allocations: 4.613 MB / 3.886 GB, free: 0.5354 GB / 1.529 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-05/5.911, allocations: 12.38 kB / 3.886 GB, free: 0.5354 GB / 1.529 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01212/5.923, allocations: 6.028 MB / 3.892 GB, free: 0.5335 GB / 1.529 GB Notification: Performance of prepare postOptimizeDAE: time 0.000197/5.923, allocations: 209 kB / 3.893 GB, free: 0.5335 GB / 1.529 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-05/5.923, allocations: 25.03 kB / 3.893 GB, free: 0.5335 GB / 1.529 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006234/5.924, allocations: 123 kB / 3.893 GB, free: 0.5334 GB / 1.529 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/5.926, allocations: 0.6132 MB / 3.893 GB, free: 0.5334 GB / 1.529 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/5.928, allocations: 1.695 MB / 3.895 GB, free: 0.5319 GB / 1.529 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006227/5.934, allocations: 1.182 MB / 3.896 GB, free: 0.5316 GB / 1.529 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003078/5.934, allocations: 146.2 kB / 3.896 GB, free: 0.5315 GB / 1.529 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * 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 (345): * Single equations (assignments): 343 * Array equations: 0 * 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.004632/5.939, allocations: 3.851 MB / 3.9 GB, free: 0.5304 GB / 1.529 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003684/5.943, allocations: 0.7942 MB / 3.901 GB, free: 0.53 GB / 1.529 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006386/5.949, allocations: 4.349 MB / 3.905 GB, free: 0.5287 GB / 1.529 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/5.949, allocations: 12.25 kB / 3.905 GB, free: 0.5287 GB / 1.529 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/5.949, allocations: 4 kB / 3.905 GB, free: 0.5287 GB / 1.529 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/5.949, allocations: 10.59 kB / 3.905 GB, free: 0.5287 GB / 1.529 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007669/5.957, allocations: 6.785 MB / 3.912 GB, free: 0.5258 GB / 1.529 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/5.957, allocations: 0 / 3.912 GB, free: 0.5258 GB / 1.529 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008831/5.958, allocations: 211 kB / 3.912 GB, free: 0.5258 GB / 1.529 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004352/5.958, allocations: 77.69 kB / 3.912 GB, free: 0.5257 GB / 1.529 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-05/5.958, allocations: 39.66 kB / 3.912 GB, free: 0.5257 GB / 1.529 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/5.96, allocations: 1.657 MB / 3.914 GB, free: 0.5241 GB / 1.529 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/5.96, allocations: 3.938 kB / 3.914 GB, free: 0.5241 GB / 1.529 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006891/5.966, allocations: 3.914 MB / 3.917 GB, free: 0.5223 GB / 1.529 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005508/5.972, allocations: 3.178 MB / 3.921 GB, free: 0.52 GB / 1.529 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001887/5.974, allocations: 30.75 kB / 3.921 GB, free: 0.5199 GB / 1.529 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003898/5.978, allocations: 0.7603 MB / 3.921 GB, free: 0.5199 GB / 1.529 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/5.978, allocations: 103 kB / 3.921 GB, free: 0.5198 GB / 1.529 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/5.978, allocations: 64.19 kB / 3.921 GB, free: 0.5198 GB / 1.529 GB Notification: Performance of sorting global known variables: time 1.148/7.126, allocations: 0.9475 GB / 4.869 GB, free: 154.2 MB / 1.529 GB Notification: Performance of sort global known variables: time 6.51e-07/7.126, allocations: 0 / 4.869 GB, free: 154.2 MB / 1.529 GB Notification: Performance of remove unused functions: time 0.007878/7.134, allocations: 1.892 MB / 4.871 GB, free: 152.4 MB / 1.529 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.0123/7.146, allocations: 5.405 MB / 4.876 GB, free: 147.8 MB / 1.529 GB Notification: Performance of simCode: created initialization part: time 0.005461/7.152, allocations: 5.725 MB / 4.882 GB, free: 142.1 MB / 1.529 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/7.152, allocations: 4 kB / 4.882 GB, free: 142.1 MB / 1.529 GB Notification: Performance of simCode: created simulation system equations: time 0.002142/7.154, allocations: 2.721 MB / 4.884 GB, free: 139.4 MB / 1.529 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005841/7.16, allocations: 0.8422 MB / 4.885 GB, free: 138.6 MB / 1.529 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.692/14.85, allocations: 4.771 GB / 9.656 GB, free: 106.4 MB / 1.561 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004445/14.86, allocations: 4.653 MB / 9.661 GB, free: 101.8 MB / 1.561 GB Notification: Performance of simCode: alias equations: time 0.006041/14.86, allocations: 3.015 MB / 9.664 GB, free: 98.86 MB / 1.561 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006033/14.87, allocations: 4.029 MB / 9.668 GB, free: 94.82 MB / 1.561 GB Notification: Performance of SimCode: time 7.01e-07/14.87, allocations: 0 / 9.668 GB, free: 94.82 MB / 1.561 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.108/17.98, allocations: 0.713 GB / 10.38 GB, free: 29.64 MB / 1.576 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.15/52.12, allocations: 7.188 kB / 10.38 GB, free: 29.63 MB / 1.576 GB (rm -f Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 Buildings_latest_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.fmu > Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches