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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.007124/0.007124, allocations: 98.91 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.00203/0.00203, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.787/2.787, allocations: 482.4 MB / 0.7548 GB, free: 6.863 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 72.34 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.274, allocations: 162.2 MB / 1.241 GB, free: 9.234 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.01071/0.2848, allocations: 8.536 MB / 1.25 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.1809/0.4657, allocations: 159.4 MB / 1.406 GB, free: 0.6094 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.4671, allocations: 39.81 kB / 1.406 GB, free: 0.5703 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.004957/0.472, allocations: 1.992 MB / 1.408 GB, free: 14.57 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.003095/0.4751, allocations: 1.24 MB / 1.409 GB, free: 13.33 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.003179/0.4783, allocations: 1.456 MB / 1.41 GB, free: 11.88 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.005136/0.4835, allocations: 5.426 MB / 1.415 GB, free: 6.434 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.4851, allocations: 1.235 MB / 1.417 GB, free: 5.148 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001949/0.4871, allocations: 1.726 MB / 1.418 GB, free: 3.418 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001884/0.489, allocations: 1.561 MB / 1.42 GB, free: 1.852 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0004291/0.4894, allocations: 288 kB / 1.42 GB, free: 1.57 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003805/0.4932, allocations: 2.575 MB / 1.423 GB, free: 14.99 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.004116/0.4974, allocations: 4.78 MB / 1.427 GB, free: 10.2 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.005061/0.5024, allocations: 4.868 MB / 1.432 GB, free: 5.312 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.01695/0.5194, allocations: 17.9 MB / 1.45 GB, free: 3.355 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5194, allocations: 0 / 1.45 GB, free: 3.355 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.432e-06/0.5194, allocations: 0 / 1.45 GB, free: 3.355 MB / 1.17 GB Notification: Performance of Transformations before backend: time 0.0001267/0.5195, allocations: 0 / 1.45 GB, free: 3.355 MB / 1.17 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.02525/0.5448, allocations: 14.42 MB / 1.464 GB, free: 4.805 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.5448, allocations: 12.03 kB / 1.464 GB, free: 4.793 MB / 1.186 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003128/0.5452, allocations: 244.9 kB / 1.464 GB, free: 4.543 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003118/0.5483, allocations: 0.9597 MB / 1.465 GB, free: 3.574 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.79/2.338, allocations: 0.9948 GB / 2.46 GB, free: 254.5 MB / 1.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/2.339, allocations: 175.1 kB / 2.46 GB, free: 254.4 MB / 1.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002526/2.339, allocations: 236 kB / 2.46 GB, free: 254.1 MB / 1.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002924/2.342, allocations: 2.373 MB / 2.462 GB, free: 251.7 MB / 1.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/2.342, allocations: 0 / 2.462 GB, free: 251.7 MB / 1.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/2.342, allocations: 64 kB / 2.462 GB, free: 251.6 MB / 1.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/2.342, allocations: 40 kB / 2.462 GB, free: 251.6 MB / 1.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/2.345, allocations: 2.467 MB / 2.465 GB, free: 249.1 MB / 1.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1112/2.456, allocations: 243.2 MB / 2.702 GB, free: 5.668 MB / 1.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002742/2.459, allocations: 1.994 MB / 2.704 GB, free: 3.676 MB / 1.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/2.46, allocations: 1.281 MB / 2.706 GB, free: 2.391 MB / 1.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-05/2.46, allocations: 45.08 kB / 2.706 GB, free: 2.348 MB / 1.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001509/2.462, allocations: 1.342 MB / 2.707 GB, free: 0.9844 MB / 1.545 GB Notification: Performance of pre-optimization done (n=138): time 2.595e-06/2.462, allocations: 4 kB / 2.707 GB, free: 0.9805 MB / 1.545 GB Notification: Performance of matching and sorting (n=138): time 0.01028/2.472, allocations: 4.36 MB / 2.711 GB, free: 12.59 MB / 1.561 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002872/2.472, allocations: 366.5 kB / 2.711 GB, free: 12.18 MB / 1.561 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.224/4.696, allocations: 1.182 GB / 3.894 GB, free: 18.81 MB / 1.561 GB Notification: Performance of collectPreVariables (initialization): time 0.0004436/4.696, allocations: 85.7 kB / 3.894 GB, free: 18.72 MB / 1.561 GB Notification: Performance of collectInitialEqns (initialization): time 0.003862/4.7, allocations: 3.755 MB / 3.898 GB, free: 15.24 MB / 1.561 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003359/4.701, allocations: 482 kB / 3.898 GB, free: 15.08 MB / 1.561 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007263/4.701, allocations: 0.675 MB / 3.899 GB, free: 14.4 MB / 1.561 GB Notification: Performance of setup shared object (initialization): time 2.966e-05/4.701, allocations: 301.9 kB / 3.899 GB, free: 14.11 MB / 1.561 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/4.703, allocations: 1.928 MB / 3.901 GB, free: 12.18 MB / 1.561 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002335/4.706, allocations: 2.883 MB / 3.904 GB, free: 8.926 MB / 1.561 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004108/4.71, allocations: 4.612 MB / 3.908 GB, free: 3.988 MB / 1.561 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/4.71, allocations: 8 kB / 3.908 GB, free: 3.98 MB / 1.561 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.5224/5.232, allocations: 6.025 MB / 3.914 GB, free: 0.5708 GB / 1.561 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002545/5.233, allocations: 207.5 kB / 3.914 GB, free: 0.5708 GB / 1.561 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.191e-05/5.233, allocations: 28.12 kB / 3.914 GB, free: 0.5708 GB / 1.561 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007024/5.233, allocations: 122.1 kB / 3.914 GB, free: 0.5708 GB / 1.561 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/5.236, allocations: 0.6144 MB / 3.915 GB, free: 0.5708 GB / 1.561 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/5.238, allocations: 1.686 MB / 3.917 GB, free: 0.5694 GB / 1.561 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006066/5.244, allocations: 1.19 MB / 3.918 GB, free: 0.5694 GB / 1.561 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002438/5.244, allocations: 146 kB / 3.918 GB, free: 0.5694 GB / 1.561 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.004799/5.249, allocations: 3.852 MB / 3.922 GB, free: 0.5692 GB / 1.561 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003537/5.252, allocations: 0.7958 MB / 3.923 GB, free: 0.5688 GB / 1.561 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006827/5.259, allocations: 4.351 MB / 3.927 GB, free: 0.5683 GB / 1.561 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/5.259, allocations: 12.06 kB / 3.927 GB, free: 0.5683 GB / 1.561 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/5.259, allocations: 1.125 kB / 3.927 GB, free: 0.5683 GB / 1.561 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/5.259, allocations: 9.984 kB / 3.927 GB, free: 0.5683 GB / 1.561 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00961/5.269, allocations: 6.781 MB / 3.933 GB, free: 0.566 GB / 1.561 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/5.269, allocations: 0 / 3.933 GB, free: 0.566 GB / 1.561 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009631/5.27, allocations: 208.1 kB / 3.934 GB, free: 0.566 GB / 1.561 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004939/5.27, allocations: 73.88 kB / 3.934 GB, free: 0.5659 GB / 1.561 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/5.271, allocations: 42.11 kB / 3.934 GB, free: 0.5659 GB / 1.561 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001611/5.272, allocations: 1.66 MB / 3.935 GB, free: 0.5644 GB / 1.561 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/5.272, allocations: 0 / 3.935 GB, free: 0.5644 GB / 1.561 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007783/5.28, allocations: 3.911 MB / 3.939 GB, free: 0.563 GB / 1.561 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00527/5.285, allocations: 3.178 MB / 3.942 GB, free: 0.5613 GB / 1.561 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002102/5.287, allocations: 36.91 kB / 3.942 GB, free: 0.5613 GB / 1.561 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004151/5.291, allocations: 0.7527 MB / 3.943 GB, free: 0.5613 GB / 1.561 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/5.292, allocations: 100 kB / 3.943 GB, free: 0.5612 GB / 1.561 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/5.292, allocations: 72.75 kB / 3.943 GB, free: 0.5612 GB / 1.561 GB Notification: Performance of sorting global known variables: time 1.137/6.429, allocations: 0.9475 GB / 4.891 GB, free: 214.2 MB / 1.561 GB Notification: Performance of sort global known variables: time 1.303e-06/6.429, allocations: 0 / 4.891 GB, free: 214.2 MB / 1.561 GB Notification: Performance of remove unused functions: time 0.006821/6.436, allocations: 1.888 MB / 4.893 GB, free: 212.5 MB / 1.561 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.01099/6.447, allocations: 5.409 MB / 4.898 GB, free: 207.8 MB / 1.561 GB Notification: Performance of simCode: created initialization part: time 0.005368/6.452, allocations: 5.734 MB / 4.903 GB, free: 202.1 MB / 1.561 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/6.452, allocations: 0 / 4.903 GB, free: 202.1 MB / 1.561 GB Notification: Performance of simCode: created simulation system equations: time 0.002109/6.454, allocations: 2.718 MB / 4.906 GB, free: 199.4 MB / 1.561 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005517/6.46, allocations: 0.8388 MB / 4.907 GB, free: 198.6 MB / 1.561 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.385/13.84, allocations: 4.771 GB / 9.678 GB, free: 218.5 MB / 1.576 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003745/13.85, allocations: 4.645 MB / 9.682 GB, free: 213.9 MB / 1.576 GB Notification: Performance of simCode: alias equations: time 0.005789/13.85, allocations: 3.022 MB / 9.685 GB, free: 210.9 MB / 1.576 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006161/13.86, allocations: 4.025 MB / 9.689 GB, free: 206.9 MB / 1.576 GB Notification: Performance of SimCode: time 1.573e-06/13.86, allocations: 0 / 9.689 GB, free: 206.9 MB / 1.576 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.062/16.92, allocations: 0.713 GB / 10.4 GB, free: 173.2 MB / 1.607 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.06/51.98, allocations: 16.8 kB / 10.4 GB, free: 173.2 MB / 1.607 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 400 --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