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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00126/0.00126, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001317/0.001317, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.232/2.232, allocations: 390.2 MB / 0.6643 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5281/0.5293, allocations: 140.4 MB / 0.949 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.006885/0.5362, allocations: 7.267 MB / 0.9561 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.145/0.6812, allocations: 157.3 MB / 1.11 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.6827, allocations: 31.81 kB / 1.11 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004278/0.687, allocations: 1.783 MB / 1.112 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002671/0.6897, allocations: 1.044 MB / 1.113 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002607/0.6923, allocations: 1.25 MB / 1.114 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003806/0.6961, allocations: 5.201 MB / 1.119 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.6974, allocations: 1.245 MB / 1.12 GB, free: 2.34 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.6989, allocations: 1.421 MB / 1.121 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.7002, allocations: 1.49 MB / 1.123 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.00026/0.7005, allocations: 136 kB / 1.123 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003013/0.7035, allocations: 2.282 MB / 1.125 GB, free: 13 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002841/0.7064, allocations: 4.636 MB / 1.13 GB, free: 8.355 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.003315/0.7097, allocations: 4.099 MB / 1.134 GB, free: 4.234 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01137/0.7211, allocations: 17.43 MB / 1.151 GB, free: 2.758 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.7211, allocations: 4 kB / 1.151 GB, free: 2.754 MB / 0.9044 GB Notification: Performance of FrontEnd: time 7.11e-07/0.7211, allocations: 0 / 1.151 GB, free: 2.754 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001241/0.7212, allocations: 0 / 1.151 GB, free: 2.754 MB / 0.9044 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.02342/0.7447, allocations: 14.08 MB / 1.165 GB, free: 4.555 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.7447, allocations: 8.031 kB / 1.165 GB, free: 4.547 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002765/0.745, allocations: 248.9 kB / 1.165 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003162/0.7482, allocations: 0.9156 MB / 1.166 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.71/2.458, allocations: 0.9946 GB / 2.16 GB, free: 381.5 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-05/2.458, allocations: 171.5 kB / 2.16 GB, free: 381.4 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/2.458, allocations: 236 kB / 2.161 GB, free: 381.2 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/2.461, allocations: 2.369 MB / 2.163 GB, free: 378.8 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/2.461, allocations: 7.938 kB / 2.163 GB, free: 378.8 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/2.461, allocations: 67.98 kB / 2.163 GB, free: 378.7 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/2.461, allocations: 36 kB / 2.163 GB, free: 378.6 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/2.464, allocations: 2.467 MB / 2.165 GB, free: 376.2 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1013/2.565, allocations: 242.6 MB / 2.402 GB, free: 133.4 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/2.567, allocations: 1.985 MB / 2.404 GB, free: 131.4 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/2.569, allocations: 1.283 MB / 2.406 GB, free: 130.1 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 8.458e-05/2.569, allocations: 40.92 kB / 2.406 GB, free: 130.1 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001413/2.57, allocations: 1.361 MB / 2.407 GB, free: 128.7 MB / 1.154 GB Notification: Performance of pre-optimization done (n=138): time 2.555e-06/2.57, allocations: 0 / 2.407 GB, free: 128.7 MB / 1.154 GB Notification: Performance of matching and sorting (n=138): time 0.008553/2.579, allocations: 4.309 MB / 2.411 GB, free: 124.3 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/2.579, allocations: 366.5 kB / 2.412 GB, free: 123.9 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.128/4.707, allocations: 1.182 GB / 3.594 GB, free: 306.9 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0004248/4.707, allocations: 85.7 kB / 3.594 GB, free: 306.8 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.004027/4.711, allocations: 3.749 MB / 3.598 GB, free: 303.3 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004035/4.712, allocations: 457.6 kB / 3.598 GB, free: 303.1 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009188/4.713, allocations: 0.6725 MB / 3.599 GB, free: 302.4 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 3.17e-05/4.713, allocations: 305.1 kB / 3.599 GB, free: 302.1 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/4.715, allocations: 1.927 MB / 3.601 GB, free: 300.2 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/4.717, allocations: 2.879 MB / 3.604 GB, free: 296.9 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003862/4.721, allocations: 4.612 MB / 3.608 GB, free: 292 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-05/4.721, allocations: 8 kB / 3.608 GB, free: 291.9 MB / 1.17 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.00911/4.73, allocations: 5.984 MB / 3.614 GB, free: 286.1 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/4.73, allocations: 213.6 kB / 3.614 GB, free: 285.9 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.061e-05/4.73, allocations: 28 kB / 3.614 GB, free: 285.9 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005713/4.731, allocations: 116.9 kB / 3.614 GB, free: 285.8 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/4.733, allocations: 0.6122 MB / 3.615 GB, free: 285.1 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/4.734, allocations: 1.579 MB / 3.617 GB, free: 283.4 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005149/4.739, allocations: 1.185 MB / 3.618 GB, free: 282.2 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/4.739, allocations: 141.3 kB / 3.618 GB, free: 282.1 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 (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.003233/4.743, allocations: 3.845 MB / 3.622 GB, free: 278.2 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003303/4.746, allocations: 0.7516 MB / 3.622 GB, free: 277.5 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005101/4.751, allocations: 4.357 MB / 3.627 GB, free: 273.1 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/4.751, allocations: 19.94 kB / 3.627 GB, free: 273.1 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/4.751, allocations: 0.875 kB / 3.627 GB, free: 273.1 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/4.751, allocations: 7.969 kB / 3.627 GB, free: 273.1 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006023/4.757, allocations: 6.776 MB / 3.633 GB, free: 266.3 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/4.757, allocations: 4 kB / 3.633 GB, free: 266.3 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007458/4.758, allocations: 203.7 kB / 3.633 GB, free: 266.1 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004465/4.758, allocations: 88.7 kB / 3.634 GB, free: 266 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.108e-05/4.758, allocations: 43.97 kB / 3.634 GB, free: 265.9 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/4.76, allocations: 1.547 MB / 3.635 GB, free: 264.2 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/4.76, allocations: 0 / 3.635 GB, free: 264.2 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005857/4.766, allocations: 3.872 MB / 3.639 GB, free: 260.3 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003384/4.769, allocations: 3.136 MB / 3.642 GB, free: 257.2 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001149/4.77, allocations: 31.98 kB / 3.642 GB, free: 257.1 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/4.773, allocations: 0.7633 MB / 3.643 GB, free: 256.4 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/4.773, allocations: 101.1 kB / 3.643 GB, free: 256.3 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/4.773, allocations: 75.8 kB / 3.643 GB, free: 256.2 MB / 1.17 GB Notification: Performance of sorting global known variables: time 1.28/6.054, allocations: 0.9475 GB / 4.59 GB, free: 195.5 MB / 1.17 GB Notification: Performance of sort global known variables: time 5.01e-07/6.054, allocations: 0 / 4.59 GB, free: 195.5 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.00715/6.061, allocations: 1.862 MB / 4.592 GB, free: 193.8 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 (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.01116/6.072, allocations: 5.35 MB / 4.597 GB, free: 189.2 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.00626/6.078, allocations: 5.719 MB / 4.603 GB, free: 183.5 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/6.078, allocations: 0 / 4.603 GB, free: 183.5 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.003614/6.082, allocations: 2.722 MB / 4.606 GB, free: 180.7 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/6.092, allocations: 0.7921 MB / 4.606 GB, free: 180 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 7.629/13.72, allocations: 4.836 GB / 9.442 GB, free: 151.1 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/13.73, allocations: 4.66 MB / 9.447 GB, free: 146.4 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.005982/13.73, allocations: 3.004 MB / 9.45 GB, free: 143.7 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006075/13.74, allocations: 4.023 MB / 9.454 GB, free: 139.6 MB / 1.186 GB Notification: Performance of SimCode: time 6.11e-07/13.74, allocations: 0 / 9.454 GB, free: 139.6 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.85/18.59, allocations: 0.7055 GB / 10.16 GB, free: 378.3 MB / 1.201 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/18.59, allocations: 325.8 kB / 10.16 GB, free: 377.9 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.752/24.34, allocations: 6.766 kB / 10.16 GB, free: 377.9 MB / 1.201 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/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)