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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001235/0.001235, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.396/2.396, allocations: 437 MB / 0.7104 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 64.05 kB / 0.8693 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5024/0.5039, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009023/0.513, allocations: 8.556 MB / 1.026 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1488/0.6618, allocations: 159.4 MB / 1.181 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.6632, allocations: 43.75 kB / 1.182 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00485/0.668, allocations: 1.984 MB / 1.183 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00308/0.6711, allocations: 1.259 MB / 1.185 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002872/0.674, allocations: 1.439 MB / 1.186 GB, free: 5.141 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.004631/0.6787, allocations: 5.419 MB / 1.191 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001562/0.6802, allocations: 1.231 MB / 1.193 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002337/0.6826, allocations: 1.707 MB / 1.194 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.6843, allocations: 1.569 MB / 1.196 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003804/0.6847, allocations: 292 kB / 1.196 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003697/0.6884, allocations: 2.54 MB / 1.199 GB, free: 8.316 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.003156/0.6916, allocations: 4.772 MB / 1.203 GB, free: 3.535 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.005527/0.6971, allocations: 4.864 MB / 1.208 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.01491/0.712, allocations: 17.7 MB / 1.225 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.7121, allocations: 0 / 1.225 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7121, allocations: 0 / 1.225 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002063/0.7123, allocations: 0 / 1.225 GB, free: 12.9 MB / 0.9825 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.02746/0.7398, allocations: 14.11 MB / 1.239 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.7398, allocations: 8.031 kB / 1.239 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003111/0.7401, allocations: 244.9 kB / 1.239 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003671/0.7438, allocations: 0.9156 MB / 1.24 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.942/2.685, allocations: 0.9946 GB / 2.235 GB, free: 430.6 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/2.685, allocations: 179.3 kB / 2.235 GB, free: 430.5 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/2.686, allocations: 233.6 kB / 2.235 GB, free: 430.4 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002878/2.689, allocations: 2.378 MB / 2.237 GB, free: 429.2 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/2.689, allocations: 2.531 kB / 2.237 GB, free: 429.2 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/2.689, allocations: 74.28 kB / 2.237 GB, free: 429.1 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.526e-05/2.689, allocations: 36.5 kB / 2.238 GB, free: 429.1 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/2.692, allocations: 2.458 MB / 2.24 GB, free: 428 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.1082/2.8, allocations: 243.1 MB / 2.477 GB, free: 186.6 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/2.803, allocations: 1.993 MB / 2.479 GB, free: 184.6 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/2.804, allocations: 1.283 MB / 2.481 GB, free: 183.3 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 7.31e-05/2.804, allocations: 33.11 kB / 2.481 GB, free: 183.3 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/2.805, allocations: 1.362 MB / 2.482 GB, free: 181.9 MB / 1.248 GB Notification: Performance of pre-optimization done (n=138): time 2.435e-06/2.805, allocations: 0 / 2.482 GB, free: 181.9 MB / 1.248 GB Notification: Performance of matching and sorting (n=138): time 0.00858/2.814, allocations: 4.316 MB / 2.486 GB, free: 177.5 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/2.814, allocations: 362.5 kB / 2.486 GB, free: 177.1 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.384/5.198, allocations: 1.182 GB / 3.669 GB, free: 457.9 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0004549/5.199, allocations: 85.84 kB / 3.669 GB, free: 457.8 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.004434/5.203, allocations: 3.738 MB / 3.673 GB, free: 455.3 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004506/5.204, allocations: 460.3 kB / 3.673 GB, free: 455.1 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007484/5.204, allocations: 0.6771 MB / 3.674 GB, free: 454.9 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 3.554e-05/5.204, allocations: 305.4 kB / 3.674 GB, free: 454.6 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00215/5.207, allocations: 1.929 MB / 3.676 GB, free: 454.1 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/5.209, allocations: 2.877 MB / 3.679 GB, free: 452.4 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004313/5.213, allocations: 4.615 MB / 3.683 GB, free: 450 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/5.213, allocations: 7.75 kB / 3.683 GB, free: 450 MB / 1.264 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01007/5.223, allocations: 5.987 MB / 3.689 GB, free: 448 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001565/5.224, allocations: 209.6 kB / 3.689 GB, free: 447.9 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/5.224, allocations: 26.11 kB / 3.689 GB, free: 447.9 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/5.224, allocations: 121.4 kB / 3.689 GB, free: 447.9 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/5.226, allocations: 0.6186 MB / 3.69 GB, free: 447.8 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/5.228, allocations: 1.691 MB / 3.692 GB, free: 446.3 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005343/5.233, allocations: 1.17 MB / 3.693 GB, free: 445.9 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/5.233, allocations: 142.1 kB / 3.693 GB, free: 445.9 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.004025/5.237, allocations: 3.842 MB / 3.697 GB, free: 444.8 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003453/5.241, allocations: 0.7566 MB / 3.697 GB, free: 444.3 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005646/5.246, allocations: 4.359 MB / 3.702 GB, free: 443 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/5.246, allocations: 15 kB / 3.702 GB, free: 443 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/5.246, allocations: 0 / 3.702 GB, free: 443 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/5.246, allocations: 9.156 kB / 3.702 GB, free: 443 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006442/5.253, allocations: 6.776 MB / 3.708 GB, free: 437.3 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/5.253, allocations: 0 / 3.708 GB, free: 437.3 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/5.254, allocations: 211.7 kB / 3.708 GB, free: 437.1 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003993/5.254, allocations: 76.72 kB / 3.709 GB, free: 437 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-05/5.254, allocations: 39.98 kB / 3.709 GB, free: 437 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/5.255, allocations: 1.659 MB / 3.71 GB, free: 435.2 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/5.256, allocations: 64 / 3.71 GB, free: 435.2 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005863/5.261, allocations: 3.864 MB / 3.714 GB, free: 431.2 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004073/5.265, allocations: 3.136 MB / 3.717 GB, free: 428.1 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001617/5.267, allocations: 43.86 kB / 3.717 GB, free: 428 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003323/5.27, allocations: 0.7556 MB / 3.718 GB, free: 427.3 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/5.271, allocations: 97.19 kB / 3.718 GB, free: 427.2 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/5.271, allocations: 71.95 kB / 3.718 GB, free: 427.1 MB / 1.264 GB Notification: Performance of sorting global known variables: time 1.408/6.678, allocations: 0.9474 GB / 4.665 GB, free: 437.4 MB / 1.264 GB Notification: Performance of sort global known variables: time 6.31e-07/6.678, allocations: 0 / 4.665 GB, free: 437.4 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.006678/6.685, allocations: 1.892 MB / 4.667 GB, free: 435.7 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.009951/6.695, allocations: 5.343 MB / 4.673 GB, free: 431.5 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.006982/6.702, allocations: 6.573 MB / 4.679 GB, free: 425.4 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/6.702, allocations: 3.938 kB / 4.679 GB, free: 425.4 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.002092/6.704, allocations: 2.714 MB / 4.682 GB, free: 422.9 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005465/6.71, allocations: 0.8325 MB / 4.682 GB, free: 422.1 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 6.715/13.42, allocations: 4.835 GB / 9.517 GB, free: 275.6 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003346/13.43, allocations: 4.647 MB / 9.522 GB, free: 271 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.005361/13.43, allocations: 3.016 MB / 9.524 GB, free: 268.2 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004552/13.44, allocations: 4.024 MB / 9.528 GB, free: 264.2 MB / 1.279 GB Notification: Performance of SimCode: time 1.603e-06/13.44, allocations: 0 / 9.528 GB, free: 264.2 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.001/17.44, allocations: 0.7098 GB / 10.24 GB, free: 85.14 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.57/37.01, allocations: 17.17 kB / 10.24 GB, free: 85.13 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)