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.001132/0.001132, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001521/0.001521, allocations: 194.2 kB / 16.14 MB, free: 6.656 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.556/1.556, allocations: 222.9 MB / 239.8 MB, free: 4.574 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.52/2.52, allocations: 437 MB / 0.71 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 60.14 kB / 0.8687 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5538/0.5553, allocations: 151.6 MB / 1.017 GB, free: 2.902 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009183/0.5645, allocations: 8.501 MB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1555/0.72, allocations: 157.4 MB / 1.179 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001564/0.7216, allocations: 35.75 kB / 1.179 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004781/0.7264, allocations: 1.822 MB / 1.181 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003029/0.7295, allocations: 1.147 MB / 1.182 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002974/0.7325, allocations: 1.247 MB / 1.183 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.005076/0.7375, allocations: 5.402 MB / 1.188 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.7391, allocations: 1.199 MB / 1.189 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001834/0.7409, allocations: 1.467 MB / 1.191 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.7424, allocations: 1.51 MB / 1.192 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002754/0.7427, allocations: 136 kB / 1.192 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003271/0.7459, allocations: 2.282 MB / 1.195 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.003084/0.749, allocations: 4.636 MB / 1.199 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.003704/0.7527, allocations: 4.134 MB / 1.203 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.7655, allocations: 17.5 MB / 1.22 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.7656, allocations: 3.984 kB / 1.22 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7656, allocations: 0 / 1.22 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001651/0.7657, allocations: 0 / 1.22 GB, free: 1.688 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.02477/0.7905, allocations: 14.11 MB / 1.234 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.7906, allocations: 16.03 kB / 1.234 GB, free: 3.441 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002797/0.7909, allocations: 240.9 kB / 1.234 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003202/0.7941, allocations: 0.9156 MB / 1.235 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 2.09/2.884, allocations: 0.9946 GB / 2.23 GB, free: 433.6 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.061e-05/2.884, allocations: 171.1 kB / 2.23 GB, free: 433.5 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002543/2.885, allocations: 244.7 kB / 2.23 GB, free: 433.4 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00295/2.888, allocations: 2.371 MB / 2.232 GB, free: 432.1 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/2.888, allocations: 0 / 2.232 GB, free: 432.1 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/2.888, allocations: 65.84 kB / 2.233 GB, free: 432.1 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/2.888, allocations: 39.03 kB / 2.233 GB, free: 432.1 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003054/2.891, allocations: 2.475 MB / 2.235 GB, free: 431 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.1171/3.008, allocations: 243.1 MB / 2.472 GB, free: 191.9 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/3.011, allocations: 1.993 MB / 2.474 GB, free: 190 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001192/3.012, allocations: 1.285 MB / 2.476 GB, free: 188.7 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 8.815e-05/3.012, allocations: 37.02 kB / 2.476 GB, free: 188.6 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001503/3.014, allocations: 1.347 MB / 2.477 GB, free: 187.3 MB / 1.248 GB Notification: Performance of pre-optimization done (n=138): time 2.345e-06/3.014, allocations: 0 / 2.477 GB, free: 187.3 MB / 1.248 GB Notification: Performance of matching and sorting (n=138): time 0.009291/3.023, allocations: 4.32 MB / 2.481 GB, free: 182.9 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/3.023, allocations: 365.5 kB / 2.482 GB, free: 182.5 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.513/5.536, allocations: 1.182 GB / 3.664 GB, free: 459.2 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0004603/5.537, allocations: 85.17 kB / 3.664 GB, free: 459.1 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.004141/5.541, allocations: 3.741 MB / 3.668 GB, free: 456.5 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003847/5.541, allocations: 454.8 kB / 3.668 GB, free: 456.4 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008227/5.542, allocations: 0.6783 MB / 3.669 GB, free: 456.2 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 3.364e-05/5.542, allocations: 305 kB / 3.669 GB, free: 455.9 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002285/5.545, allocations: 1.926 MB / 3.671 GB, free: 455.3 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002618/5.547, allocations: 2.878 MB / 3.674 GB, free: 453.7 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004427/5.552, allocations: 4.62 MB / 3.678 GB, free: 451.3 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/5.552, allocations: 11.69 kB / 3.678 GB, free: 451.3 MB / 1.264 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01039/5.562, allocations: 5.985 MB / 3.684 GB, free: 449.2 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001647/5.562, allocations: 205.3 kB / 3.684 GB, free: 449.2 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.832e-05/5.562, allocations: 30.17 kB / 3.684 GB, free: 449.2 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/5.563, allocations: 119.5 kB / 3.684 GB, free: 449.1 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001945/5.565, allocations: 0.6109 MB / 3.685 GB, free: 449.1 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001749/5.567, allocations: 1.585 MB / 3.687 GB, free: 447.6 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005706/5.572, allocations: 1.189 MB / 3.688 GB, free: 447.3 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/5.573, allocations: 143.7 kB / 3.688 GB, free: 447.3 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.004189/5.577, allocations: 3.844 MB / 3.692 GB, free: 446.1 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003122/5.58, allocations: 0.7478 MB / 3.692 GB, free: 445.7 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005679/5.586, allocations: 4.364 MB / 3.697 GB, free: 444.4 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/5.586, allocations: 17.78 kB / 3.697 GB, free: 444.4 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/5.586, allocations: 0 / 3.697 GB, free: 444.4 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/5.586, allocations: 7.594 kB / 3.697 GB, free: 444.4 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006283/5.592, allocations: 6.78 MB / 3.703 GB, free: 440.8 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/5.592, allocations: 0 / 3.703 GB, free: 440.8 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008544/5.593, allocations: 212 kB / 3.703 GB, free: 440.8 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005028/5.593, allocations: 81.55 kB / 3.704 GB, free: 440.8 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.164e-05/5.594, allocations: 49.86 kB / 3.704 GB, free: 440.7 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/5.595, allocations: 1.538 MB / 3.705 GB, free: 439.2 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/5.595, allocations: 0 / 3.705 GB, free: 439.2 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006342/5.601, allocations: 3.869 MB / 3.709 GB, free: 437.4 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003502/5.605, allocations: 3.135 MB / 3.712 GB, free: 434.3 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/5.606, allocations: 35.92 kB / 3.712 GB, free: 434.3 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003355/5.609, allocations: 0.7694 MB / 3.713 GB, free: 433.5 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/5.61, allocations: 97.17 kB / 3.713 GB, free: 433.4 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/5.61, allocations: 68.03 kB / 3.713 GB, free: 433.3 MB / 1.264 GB Notification: Performance of sorting global known variables: time 1.421/7.031, allocations: 0.9475 GB / 4.66 GB, free: 444 MB / 1.264 GB Notification: Performance of sort global known variables: time 6.31e-07/7.031, allocations: 0 / 4.66 GB, free: 444 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.006691/7.038, allocations: 1.887 MB / 4.662 GB, free: 442.3 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.01031/7.048, allocations: 5.349 MB / 4.667 GB, free: 438.1 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.005117/7.053, allocations: 5.728 MB / 4.673 GB, free: 432.8 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/7.053, allocations: 0 / 4.673 GB, free: 432.8 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.001989/7.055, allocations: 2.709 MB / 4.676 GB, free: 430.3 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005014/7.06, allocations: 0.8174 MB / 4.676 GB, free: 429.5 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.228/14.29, allocations: 4.835 GB / 9.512 GB, free: 282.6 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004519/14.29, allocations: 4.652 MB / 9.516 GB, free: 278 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.005658/14.3, allocations: 3.016 MB / 9.519 GB, free: 275.2 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005521/14.3, allocations: 4.025 MB / 9.523 GB, free: 271.2 MB / 1.279 GB Notification: Performance of SimCode: time 7.41e-07/14.3, allocations: 0 / 9.523 GB, free: 271.2 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.902/18.21, allocations: 0.7061 GB / 10.23 GB, free: 93.61 MB / 1.295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/18.21, allocations: 328.3 kB / 10.23 GB, free: 93.23 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.63/23.84, allocations: 0 / 10.23 GB, free: 93.23 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)