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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001221/0.001221, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0009979/0.0009979, allocations: 172.2 kB / 16.26 MB, free: 6.664 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.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.515/2.515, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003406, allocations: 16 kB / 0.873 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6271/0.6275, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.008949/0.6365, allocations: 8.011 MB / 1.031 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1697/0.8062, allocations: 152 MB / 1.179 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.8078, allocations: 31.81 kB / 1.179 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00495/0.8127, allocations: 1.818 MB / 1.181 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003287/0.816, allocations: 1.136 MB / 1.182 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.003224/0.8193, allocations: 1.259 MB / 1.184 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.005756/0.825, allocations: 5.398 MB / 1.189 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001928/0.827, allocations: 1.168 MB / 1.19 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002374/0.8294, allocations: 1.307 MB / 1.191 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002255/0.8316, allocations: 1.319 MB / 1.193 GB, free: 1.746 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0005523/0.8322, allocations: 72 kB / 1.193 GB, free: 1.676 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004118/0.8363, allocations: 2.212 MB / 1.195 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.003891/0.8402, allocations: 4.526 MB / 1.199 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.005685/0.8459, allocations: 4.03 MB / 1.203 GB, free: 6.867 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.8634, allocations: 17.15 MB / 1.22 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8635, allocations: 0 / 1.22 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.795e-06/0.8635, allocations: 0 / 1.22 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0003792/0.8639, allocations: 0 / 1.22 GB, free: 5.668 MB / 0.9669 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.02683/0.8907, allocations: 11.39 MB / 1.231 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.8908, allocations: 11.97 kB / 1.231 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006874/0.8915, allocations: 248.9 kB / 1.231 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004866/0.8963, allocations: 0.9234 MB / 1.232 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 2.18/3.076, allocations: 0.9946 GB / 2.227 GB, free: 422.9 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/3.076, allocations: 170.9 kB / 2.227 GB, free: 422.9 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005655/3.077, allocations: 242.3 kB / 2.227 GB, free: 422.8 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003888/3.081, allocations: 2.378 MB / 2.229 GB, free: 420.6 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/3.081, allocations: 0 / 2.229 GB, free: 420.6 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/3.081, allocations: 72 kB / 2.229 GB, free: 420.5 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/3.081, allocations: 36 kB / 2.23 GB, free: 420.5 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003355/3.084, allocations: 2.49 MB / 2.232 GB, free: 418 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.1264/3.211, allocations: 243.2 MB / 2.469 GB, free: 174.5 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/3.214, allocations: 1.998 MB / 2.471 GB, free: 172.5 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/3.215, allocations: 1.289 MB / 2.473 GB, free: 171.2 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/3.215, allocations: 41.58 kB / 2.473 GB, free: 171.2 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001764/3.217, allocations: 1.369 MB / 2.474 GB, free: 169.8 MB / 1.248 GB Notification: Performance of pre-optimization done (n=138): time 3.717e-06/3.217, allocations: 0 / 2.474 GB, free: 169.8 MB / 1.248 GB Notification: Performance of matching and sorting (n=138): time 0.00848/3.226, allocations: 4.348 MB / 2.478 GB, free: 165.4 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/3.226, allocations: 362.5 kB / 2.479 GB, free: 165 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.575/5.801, allocations: 1.182 GB / 3.661 GB, free: 453.8 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0004416/5.801, allocations: 85.31 kB / 3.661 GB, free: 453.7 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.004756/5.806, allocations: 3.747 MB / 3.665 GB, free: 451.2 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004611/5.807, allocations: 452.9 kB / 3.665 GB, free: 451.1 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005593/5.807, allocations: 361.9 kB / 3.666 GB, free: 450.9 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 3.363e-05/5.807, allocations: 301.1 kB / 3.666 GB, free: 450.7 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/5.81, allocations: 1.938 MB / 3.668 GB, free: 450.1 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002917/5.813, allocations: 2.886 MB / 3.671 GB, free: 448.5 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004711/5.817, allocations: 4.637 MB / 3.675 GB, free: 444.9 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.216e-05/5.817, allocations: 12 kB / 3.675 GB, free: 444.8 MB / 1.264 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.009329/5.827, allocations: 5.999 MB / 3.681 GB, free: 439.5 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001501/5.827, allocations: 216.8 kB / 3.681 GB, free: 439.3 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.946e-05/5.827, allocations: 28 kB / 3.681 GB, free: 439.3 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006245/5.828, allocations: 123.5 kB / 3.681 GB, free: 439.2 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/5.829, allocations: 0.6097 MB / 3.682 GB, free: 438.7 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/5.831, allocations: 1.596 MB / 3.683 GB, free: 437 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005912/5.837, allocations: 1.203 MB / 3.685 GB, free: 435.8 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/5.837, allocations: 143.1 kB / 3.685 GB, free: 435.7 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.004422/5.842, allocations: 3.846 MB / 3.688 GB, free: 432.2 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002781/5.845, allocations: 0.7497 MB / 3.689 GB, free: 431.5 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006127/5.851, allocations: 4.379 MB / 3.693 GB, free: 427.3 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/5.851, allocations: 15.94 kB / 3.694 GB, free: 427.3 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/5.851, allocations: 0 / 3.694 GB, free: 427.3 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/5.851, allocations: 7.984 kB / 3.694 GB, free: 427.3 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008539/5.859, allocations: 6.78 MB / 3.7 GB, free: 420.5 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/5.859, allocations: 0 / 3.7 GB, free: 420.5 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008191/5.86, allocations: 215.7 kB / 3.7 GB, free: 420.3 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004833/5.861, allocations: 84.77 kB / 3.7 GB, free: 420.2 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.422e-05/5.861, allocations: 39.98 kB / 3.7 GB, free: 420.2 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/5.862, allocations: 1.546 MB / 3.702 GB, free: 418.5 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/5.862, allocations: 32 / 3.702 GB, free: 418.5 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005996/5.868, allocations: 3.891 MB / 3.706 GB, free: 414.6 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003957/5.872, allocations: 3.152 MB / 3.709 GB, free: 411.4 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001239/5.873, allocations: 39.98 kB / 3.709 GB, free: 411.3 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003407/5.877, allocations: 0.7889 MB / 3.71 GB, free: 410.5 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/5.877, allocations: 97.8 kB / 3.71 GB, free: 410.5 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/5.877, allocations: 67.97 kB / 3.71 GB, free: 410.4 MB / 1.264 GB Notification: Performance of sorting global known variables: time 1.568/7.445, allocations: 0.9475 GB / 4.657 GB, free: 418.8 MB / 1.264 GB Notification: Performance of sort global known variables: time 6.11e-07/7.445, allocations: 1.719 kB / 4.657 GB, free: 418.8 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.006482/7.451, allocations: 1.876 MB / 4.659 GB, free: 417.1 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.009105/7.46, allocations: 5.382 MB / 4.664 GB, free: 412.9 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.005332/7.466, allocations: 5.734 MB / 4.67 GB, free: 407.6 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/7.466, allocations: 4 kB / 4.67 GB, free: 407.6 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.002108/7.468, allocations: 2.73 MB / 4.673 GB, free: 405.1 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006122/7.474, allocations: 0.8048 MB / 4.673 GB, free: 404.3 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.512/14.99, allocations: 4.836 GB / 9.509 GB, free: 256.4 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004341/14.99, allocations: 4.649 MB / 9.513 GB, free: 251.8 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.005382/15, allocations: 3.017 MB / 9.516 GB, free: 249 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005222/15, allocations: 4.03 MB / 9.52 GB, free: 245 MB / 1.279 GB Notification: Performance of SimCode: time 4.9e-07/15, allocations: 0 / 9.52 GB, free: 245 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.556/21.56, allocations: 0.5103 GB / 10.03 GB, free: 267.7 MB / 1.295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002552/21.56, allocations: 330.6 kB / 10.03 GB, free: 267.4 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.583/28.14, allocations: 0 / 10.03 GB, free: 267.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic_res.mat --tempDir=temp_Buildings_10_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_HeatTransfer_Windows_BaseClasses_Examples_WindowRadiationElectrochromic.fmu > Buildings_10_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.pipe 2>&1)