Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.WindowRadiationElectrochromic,fileNamePrefix="Buildings_10_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,fileNamePrefix="Buildings_10_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.001107/0.001107, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.499/2.499, allocations: 437.1 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5604/0.5617, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009287/0.571, allocations: 8.546 MB / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1585/0.7295, allocations: 159.4 MB / 1.181 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.7311, allocations: 39.81 kB / 1.182 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.005097/0.7362, allocations: 1.984 MB / 1.183 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003415/0.7397, allocations: 1.256 MB / 1.185 GB, free: 6.539 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.003315/0.743, allocations: 1.443 MB / 1.186 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.005114/0.7481, allocations: 5.415 MB / 1.191 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.7499, allocations: 1.231 MB / 1.193 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002352/0.7522, allocations: 1.707 MB / 1.194 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002229/0.7545, allocations: 1.566 MB / 1.196 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0006721/0.7552, allocations: 292 kB / 1.196 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003827/0.759, allocations: 2.536 MB / 1.199 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.003291/0.7623, allocations: 4.78 MB / 1.203 GB, free: 3.5 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.004936/0.7672, allocations: 4.864 MB / 1.208 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0171/0.7844, allocations: 17.7 MB / 1.225 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.7844, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.053e-06/0.7844, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002622/0.7847, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9825 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.03004/0.8147, allocations: 14.1 MB / 1.239 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.8148, allocations: 12.03 kB / 1.239 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003327/0.8151, allocations: 240.9 kB / 1.239 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003786/0.8189, allocations: 0.9195 MB / 1.24 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 2.047/2.865, allocations: 0.9946 GB / 2.235 GB, free: 430.7 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-05/2.866, allocations: 173.1 kB / 2.235 GB, free: 430.6 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002948/2.866, allocations: 234.1 kB / 2.235 GB, free: 430.5 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003338/2.869, allocations: 2.378 MB / 2.237 GB, free: 429.2 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/2.869, allocations: 3.281 kB / 2.237 GB, free: 429.2 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/2.869, allocations: 67.09 kB / 2.237 GB, free: 429.2 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/2.87, allocations: 37.44 kB / 2.238 GB, free: 429.2 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003367/2.873, allocations: 2.474 MB / 2.24 GB, free: 428.1 MB / 1.248 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.1134/2.986, allocations: 243.1 MB / 2.477 GB, free: 186.8 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/2.989, allocations: 1.996 MB / 2.479 GB, free: 184.8 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/2.99, allocations: 1.281 MB / 2.481 GB, free: 183.5 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 8.848e-05/2.99, allocations: 41.09 kB / 2.481 GB, free: 183.5 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/2.992, allocations: 1.356 MB / 2.482 GB, free: 182.1 MB / 1.248 GB Notification: Performance of pre-optimization done (n=138): time 2.725e-06/2.992, allocations: 0 / 2.482 GB, free: 182.1 MB / 1.248 GB Notification: Performance of matching and sorting (n=138): time 0.009381/3.001, allocations: 4.32 MB / 2.486 GB, free: 177.7 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/3.002, allocations: 362.5 kB / 2.486 GB, free: 177.3 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.675/5.677, allocations: 1.182 GB / 3.669 GB, free: 458.2 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0005263/5.677, allocations: 85.73 kB / 3.669 GB, free: 458.1 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.005116/5.682, allocations: 3.74 MB / 3.673 GB, free: 455.5 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/5.683, allocations: 452.8 kB / 3.673 GB, free: 455.4 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008183/5.684, allocations: 0.6722 MB / 3.674 GB, free: 455.2 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 3.635e-05/5.684, allocations: 305.7 kB / 3.674 GB, free: 454.9 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002293/5.686, allocations: 1.929 MB / 3.676 GB, free: 454.4 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002623/5.689, allocations: 2.877 MB / 3.679 GB, free: 452.7 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004543/5.693, allocations: 4.613 MB / 3.683 GB, free: 450.3 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/5.693, allocations: 7.312 kB / 3.683 GB, free: 450.3 MB / 1.264 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01049/5.704, allocations: 5.985 MB / 3.689 GB, free: 448.3 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001703/5.704, allocations: 209.7 kB / 3.689 GB, free: 448.2 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/5.704, allocations: 30.09 kB / 3.689 GB, free: 448.2 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006403/5.704, allocations: 122.2 kB / 3.689 GB, free: 448.2 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/5.706, allocations: 0.6147 MB / 3.69 GB, free: 448.1 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/5.708, allocations: 1.686 MB / 3.692 GB, free: 446.6 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005511/5.714, allocations: 1.178 MB / 3.693 GB, free: 446.2 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002088/5.714, allocations: 143 kB / 3.693 GB, free: 446.2 MB / 1.264 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.004163/5.718, allocations: 3.839 MB / 3.697 GB, free: 445.1 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003297/5.721, allocations: 0.7494 MB / 3.697 GB, free: 444.7 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00573/5.727, allocations: 4.365 MB / 3.702 GB, free: 443.4 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/5.727, allocations: 11.34 kB / 3.702 GB, free: 443.4 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/5.727, allocations: 0 / 3.702 GB, free: 443.4 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/5.727, allocations: 6 kB / 3.702 GB, free: 443.4 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007923/5.735, allocations: 6.78 MB / 3.708 GB, free: 437.6 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/5.735, allocations: 0 / 3.708 GB, free: 437.6 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008896/5.736, allocations: 211.7 kB / 3.708 GB, free: 437.4 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004435/5.737, allocations: 76.72 kB / 3.709 GB, free: 437.3 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/5.737, allocations: 43.97 kB / 3.709 GB, free: 437.3 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/5.738, allocations: 1.656 MB / 3.71 GB, free: 435.5 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/5.738, allocations: 4.031 kB / 3.71 GB, free: 435.5 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007833/5.746, allocations: 3.867 MB / 3.714 GB, free: 431.6 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005381/5.751, allocations: 3.132 MB / 3.717 GB, free: 428.4 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001991/5.753, allocations: 43.86 kB / 3.717 GB, free: 428.4 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/5.757, allocations: 0.7538 MB / 3.718 GB, free: 427.6 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/5.757, allocations: 101.1 kB / 3.718 GB, free: 427.5 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/5.758, allocations: 71.95 kB / 3.718 GB, free: 427.5 MB / 1.264 GB Notification: Performance of sorting global known variables: time 1.5/7.258, allocations: 0.9475 GB / 4.665 GB, free: 438.1 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.252e-06/7.258, allocations: 4 kB / 4.665 GB, free: 438.1 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.006805/7.265, allocations: 1.88 MB / 4.667 GB, free: 436.4 MB / 1.264 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.0108/7.275, allocations: 5.349 MB / 4.672 GB, free: 432.2 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.007649/7.283, allocations: 6.571 MB / 4.679 GB, free: 426.1 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/7.283, allocations: 0 / 4.679 GB, free: 426.1 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.002246/7.285, allocations: 2.721 MB / 4.682 GB, free: 423.6 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007325/7.293, allocations: 0.8472 MB / 4.682 GB, free: 422.8 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.41/14.7, allocations: 4.835 GB / 9.517 GB, free: 276.7 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004852/14.71, allocations: 4.65 MB / 9.522 GB, free: 272.1 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.006233/14.71, allocations: 3.011 MB / 9.524 GB, free: 269.3 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00602/14.72, allocations: 4.029 MB / 9.528 GB, free: 265.3 MB / 1.279 GB Notification: Performance of SimCode: time 6.71e-07/14.72, allocations: 0 / 9.528 GB, free: 265.3 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.991/17.71, allocations: 0.7098 GB / 10.24 GB, free: 86.27 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/32.58, allocations: 15.59 kB / 10.24 GB, free: 86.26 MB / 1.295 GB (rm -f Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.fmu > Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches