Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.WindowRadiationElectrochromic,fileNamePrefix="Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,fileNamePrefix="Buildings_9_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.001095/0.001096, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001269/0.001269, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.065/2.065, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5065/0.5069, allocations: 142.3 MB / 0.9536 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.005489/0.5124, allocations: 6.174 MB / 0.9596 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.14/0.6525, allocations: 132.3 MB / 1.089 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.6536, allocations: 27.81 kB / 1.089 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003493/0.6571, allocations: 1.441 MB / 1.09 GB, free: 3.848 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002136/0.6593, allocations: 1.004 MB / 1.091 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002361/0.6616, allocations: 1.041 MB / 1.092 GB, free: 1.812 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002911/0.6646, allocations: 2.749 MB / 1.095 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.6657, allocations: 1.004 MB / 1.096 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.6672, allocations: 1.288 MB / 1.097 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.6683, allocations: 1.109 MB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.6685, allocations: 68 kB / 1.098 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002916/0.6714, allocations: 1.954 MB / 1.1 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00317/0.6746, allocations: 4.569 MB / 1.105 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.6758, allocations: 1.24 MB / 1.106 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01158/0.6874, allocations: 15.28 MB / 1.121 GB, free: 4.449 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.6874, allocations: 0 / 1.121 GB, free: 4.449 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.724e-06/0.6874, allocations: 3.938 kB / 1.121 GB, free: 4.445 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.000147/0.6876, allocations: 0 / 1.121 GB, free: 4.445 MB / 0.8731 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.02106/0.7087, allocations: 11.45 MB / 1.132 GB, free: 8.883 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.7087, allocations: 8.031 kB / 1.132 GB, free: 8.875 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004259/0.7091, allocations: 244.7 kB / 1.132 GB, free: 8.625 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003104/0.7122, allocations: 0.9302 MB / 1.133 GB, free: 7.684 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.585/2.298, allocations: 0.9547 GB / 2.088 GB, free: 34.21 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/2.298, allocations: 175.1 kB / 2.088 GB, free: 34.04 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003679/2.298, allocations: 236 kB / 2.088 GB, free: 33.81 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002968/2.301, allocations: 2.107 MB / 2.09 GB, free: 31.64 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/2.301, allocations: 0 / 2.09 GB, free: 31.64 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/2.301, allocations: 64 kB / 2.09 GB, free: 31.58 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.556e-05/2.301, allocations: 40.52 kB / 2.09 GB, free: 31.54 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002965/2.304, allocations: 2.215 MB / 2.093 GB, free: 29.32 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.707/3.011, allocations: 242.7 MB / 2.33 GB, free: 270.5 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/3.014, allocations: 1.624 MB / 2.331 GB, free: 268.9 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 9.576e-05/3.014, allocations: 37.72 kB / 2.331 GB, free: 268.9 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001372/3.015, allocations: 1.117 MB / 2.332 GB, free: 267.8 MB / 1.17 GB Notification: Performance of pre-optimization done (n=138): time 2.655e-06/3.015, allocations: 0 / 2.332 GB, free: 267.8 MB / 1.17 GB Notification: Performance of matching and sorting (n=138): time 0.009181/3.025, allocations: 3.671 MB / 2.336 GB, free: 264.4 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002137/3.025, allocations: 366.2 kB / 2.336 GB, free: 264 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.987/6.012, allocations: 1.183 GB / 3.519 GB, free: 417 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.000693/6.013, allocations: 85.2 kB / 3.519 GB, free: 416.9 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.006219/6.019, allocations: 3.742 MB / 3.523 GB, free: 414.3 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008061/6.02, allocations: 451 kB / 3.523 GB, free: 414.1 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/6.02, allocations: 59.44 kB / 3.523 GB, free: 414.1 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0002765/6.021, allocations: 443.9 kB / 3.524 GB, free: 413.7 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/6.023, allocations: 1.662 MB / 3.525 GB, free: 413.1 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003001/6.026, allocations: 2.602 MB / 3.528 GB, free: 411.2 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003162/6.029, allocations: 2.181 MB / 3.53 GB, free: 410.3 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.451e-05/6.029, allocations: 7.594 kB / 3.53 GB, free: 410.3 MB / 1.17 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01565/6.045, allocations: 5.457 MB / 3.535 GB, free: 407.6 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002458/6.045, allocations: 205.5 kB / 3.535 GB, free: 407.4 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.557e-05/6.045, allocations: 28 kB / 3.535 GB, free: 407.4 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006445/6.046, allocations: 128.9 kB / 3.536 GB, free: 407.2 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/6.049, allocations: 0.6168 MB / 3.536 GB, free: 406.6 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/6.05, allocations: 1.589 MB / 3.538 GB, free: 404.9 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009086/6.059, allocations: 1.193 MB / 3.539 GB, free: 403.7 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008338/6.06, allocations: 144.6 kB / 3.539 GB, free: 403.6 MB / 1.17 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 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.HDirTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.007311/6.068, allocations: 3.844 MB / 3.543 GB, free: 399.7 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005656/6.073, allocations: 0.7594 MB / 3.543 GB, free: 398.9 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/6.084, allocations: 3.848 MB / 3.547 GB, free: 395.1 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/6.084, allocations: 12.55 kB / 3.547 GB, free: 395.1 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/6.084, allocations: 0 / 3.547 GB, free: 395.1 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/6.084, allocations: 11.97 kB / 3.547 GB, free: 395 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/6.099, allocations: 6.781 MB / 3.554 GB, free: 388.2 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/6.099, allocations: 0 / 3.554 GB, free: 388.2 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/6.101, allocations: 215.7 kB / 3.554 GB, free: 388 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005517/6.101, allocations: 78.47 kB / 3.554 GB, free: 387.9 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/6.101, allocations: 47.97 kB / 3.554 GB, free: 387.9 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/6.103, allocations: 1.574 MB / 3.556 GB, free: 386.2 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/6.103, allocations: 0 / 3.556 GB, free: 386.2 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008239/6.111, allocations: 3.351 MB / 3.559 GB, free: 382.8 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009702/6.121, allocations: 3.156 MB / 3.562 GB, free: 379.6 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005109/6.126, allocations: 28 kB / 3.562 GB, free: 379.6 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007396/6.133, allocations: 0.7872 MB / 3.563 GB, free: 378.8 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000382/6.134, allocations: 105.1 kB / 3.563 GB, free: 378.7 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002306/6.134, allocations: 71.95 kB / 3.563 GB, free: 378.6 MB / 1.17 GB Notification: Performance of sorting global known variables: time 2.113/8.247, allocations: 0.9476 GB / 4.511 GB, free: 310.8 MB / 1.17 GB Notification: Performance of sort global known variables: time 6.51e-07/8.247, allocations: 0 / 4.511 GB, free: 310.8 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.007649/8.255, allocations: 1.855 MB / 4.513 GB, free: 309.1 MB / 1.17 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009929/8.265, allocations: 4.825 MB / 4.517 GB, free: 305 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.005335/8.27, allocations: 5.2 MB / 4.522 GB, free: 299.8 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/8.27, allocations: 0 / 4.522 GB, free: 299.8 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.002195/8.273, allocations: 2.462 MB / 4.525 GB, free: 297.3 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005999/8.279, allocations: 0.7595 MB / 4.525 GB, free: 296.6 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05056/8.329, allocations: 44.26 MB / 4.569 GB, free: 250.7 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007801/8.337, allocations: 4.794 MB / 4.573 GB, free: 245.9 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.01086/8.348, allocations: 3.009 MB / 4.576 GB, free: 242.9 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01002/8.358, allocations: 4.092 MB / 4.58 GB, free: 238.8 MB / 1.17 GB Notification: Performance of SimCode: time 1.973e-06/8.358, allocations: 0 / 4.58 GB, free: 238.8 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.153/9.511, allocations: 0.4964 GB / 5.077 GB, free: 195.6 MB / 1.17 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/9.511, allocations: 304.9 kB / 5.077 GB, free: 195.2 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/17.08, allocations: 0 / 5.077 GB, free: 195.2 MB / 1.17 GB (rm -f Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; mkfifo Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe ; head -c 1048576 < Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe >> ../files/Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.mat --tempDir=temp_Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.fmu > Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.mat does not exist to compare? outputFormat=mat