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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00475/0.00475, allocations: 100.7 kB / 15.73 MB, free: 6.477 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.001218/0.001218, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.244/2.244, allocations: 390.3 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.59 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2355, allocations: 140.4 MB / 1.088 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009005/0.2446, allocations: 7.301 MB / 1.095 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1506/0.3952, allocations: 159.3 MB / 1.25 GB, free: 10.73 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009344/0.3961, allocations: 39.75 kB / 1.25 GB, free: 10.69 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00359/0.3997, allocations: 1.942 MB / 1.252 GB, free: 8.742 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001992/0.4017, allocations: 1.157 MB / 1.253 GB, free: 7.582 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002511/0.4042, allocations: 1.43 MB / 1.255 GB, free: 6.16 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003618/0.4079, allocations: 5.229 MB / 1.26 GB, free: 0.918 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.5038/0.9117, allocations: 1.277 MB / 1.261 GB, free: 5.5 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002926/0.9147, allocations: 1.691 MB / 1.263 GB, free: 5.5 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002858/0.9176, allocations: 1.531 MB / 1.264 GB, free: 5.5 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001195/0.9188, allocations: 290.9 kB / 1.264 GB, free: 5.5 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005428/0.9242, allocations: 2.577 MB / 1.267 GB, free: 5.5 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.006159/0.9304, allocations: 4.768 MB / 1.272 GB, free: 5.5 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.007727/0.9381, allocations: 4.824 MB / 1.276 GB, free: 4.258 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01913/0.9573, allocations: 17.78 MB / 1.294 GB, free: 2.496 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.9573, allocations: 0.875 kB / 1.294 GB, free: 2.496 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9573, allocations: 0 / 1.294 GB, free: 2.496 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002642/0.9576, allocations: 0.9688 kB / 1.294 GB, free: 2.496 MB / 1.014 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.03781/0.9954, allocations: 14.08 MB / 1.307 GB, free: 14.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.9955, allocations: 8.656 kB / 1.307 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003658/0.9958, allocations: 243.4 kB / 1.308 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005877/1.002, allocations: 0.9185 MB / 1.309 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.181/2.183, allocations: 0.9957 GB / 2.304 GB, free: 117.8 MB / 1.467 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.862e-05/2.183, allocations: 171.1 kB / 2.304 GB, free: 117.6 MB / 1.467 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002846/2.183, allocations: 236 kB / 2.305 GB, free: 117.4 MB / 1.467 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/2.186, allocations: 2.373 MB / 2.307 GB, free: 114.9 MB / 1.467 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/2.186, allocations: 0 / 2.307 GB, free: 114.9 MB / 1.467 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/2.186, allocations: 71.98 kB / 2.307 GB, free: 114.9 MB / 1.467 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/2.186, allocations: 36 kB / 2.307 GB, free: 114.8 MB / 1.467 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002713/2.189, allocations: 2.471 MB / 2.309 GB, free: 112.4 MB / 1.467 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5391/2.728, allocations: 242.6 MB / 2.546 GB, free: 0.5059 GB / 1.467 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002453/2.731, allocations: 1.985 MB / 2.548 GB, free: 0.504 GB / 1.467 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/2.732, allocations: 1.28 MB / 2.55 GB, free: 0.5027 GB / 1.467 GB Notification: Performance of preOpt evalFunc (simulation): time 7.074e-05/2.732, allocations: 43.2 kB / 2.55 GB, free: 0.5027 GB / 1.467 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/2.733, allocations: 1.359 MB / 2.551 GB, free: 0.5013 GB / 1.467 GB Notification: Performance of pre-optimization done (n=138): time 2.374e-06/2.733, allocations: 0 / 2.551 GB, free: 0.5013 GB / 1.467 GB Notification: Performance of matching and sorting (n=138): time 0.01007/2.743, allocations: 4.318 MB / 2.555 GB, free: 0.4975 GB / 1.467 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/2.743, allocations: 362.5 kB / 2.555 GB, free: 0.4971 GB / 1.467 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.994/4.738, allocations: 1.182 GB / 3.738 GB, free: 0.5591 GB / 1.467 GB Notification: Performance of collectPreVariables (initialization): time 0.0005778/4.738, allocations: 85.7 kB / 3.738 GB, free: 0.559 GB / 1.467 GB Notification: Performance of collectInitialEqns (initialization): time 0.004306/4.743, allocations: 3.744 MB / 3.742 GB, free: 0.5558 GB / 1.467 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003468/4.743, allocations: 448.8 kB / 3.742 GB, free: 0.5556 GB / 1.467 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007161/4.744, allocations: 0.6734 MB / 3.743 GB, free: 0.5551 GB / 1.467 GB Notification: Performance of setup shared object (initialization): time 3.133e-05/4.744, allocations: 305.1 kB / 3.743 GB, free: 0.5548 GB / 1.467 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/4.746, allocations: 1.927 MB / 3.745 GB, free: 0.5531 GB / 1.467 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002145/4.748, allocations: 2.88 MB / 3.748 GB, free: 0.5501 GB / 1.467 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003731/4.752, allocations: 4.613 MB / 3.752 GB, free: 0.5454 GB / 1.467 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/4.752, allocations: 9.5 kB / 3.752 GB, free: 0.5454 GB / 1.467 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01032/4.762, allocations: 5.986 MB / 3.758 GB, free: 0.5397 GB / 1.467 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/4.762, allocations: 209.6 kB / 3.758 GB, free: 0.5395 GB / 1.467 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/4.762, allocations: 28 kB / 3.758 GB, free: 0.5395 GB / 1.467 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005378/4.763, allocations: 115 kB / 3.758 GB, free: 0.5394 GB / 1.467 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/4.764, allocations: 0.614 MB / 3.759 GB, free: 0.5388 GB / 1.467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/4.766, allocations: 1.697 MB / 3.761 GB, free: 0.537 GB / 1.467 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005821/4.772, allocations: 1.172 MB / 3.762 GB, free: 0.5358 GB / 1.467 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/4.772, allocations: 144 kB / 3.762 GB, free: 0.5357 GB / 1.467 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.004569/4.777, allocations: 3.843 MB / 3.766 GB, free: 0.5319 GB / 1.467 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004118/4.781, allocations: 0.7516 MB / 3.766 GB, free: 0.5312 GB / 1.467 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005494/4.786, allocations: 4.351 MB / 3.771 GB, free: 0.5269 GB / 1.467 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/4.786, allocations: 12 kB / 3.771 GB, free: 0.5269 GB / 1.467 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/4.786, allocations: 0 / 3.771 GB, free: 0.5269 GB / 1.467 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/4.786, allocations: 7.969 kB / 3.771 GB, free: 0.5269 GB / 1.467 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008793/4.795, allocations: 6.778 MB / 3.777 GB, free: 0.5202 GB / 1.467 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/4.795, allocations: 1.641 kB / 3.777 GB, free: 0.5202 GB / 1.467 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008226/4.796, allocations: 215.6 kB / 3.777 GB, free: 0.52 GB / 1.467 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004261/4.796, allocations: 69.56 kB / 3.778 GB, free: 0.52 GB / 1.467 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/4.797, allocations: 43.97 kB / 3.778 GB, free: 0.5199 GB / 1.467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001377/4.798, allocations: 1.666 MB / 3.779 GB, free: 0.5182 GB / 1.467 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/4.798, allocations: 0 / 3.779 GB, free: 0.5182 GB / 1.467 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008533/4.806, allocations: 3.865 MB / 3.783 GB, free: 0.5144 GB / 1.467 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007525/4.814, allocations: 3.128 MB / 3.786 GB, free: 0.5113 GB / 1.467 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002461/4.816, allocations: 40 kB / 3.786 GB, free: 0.5112 GB / 1.467 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/4.82, allocations: 0.7538 MB / 3.787 GB, free: 0.5105 GB / 1.467 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/4.82, allocations: 105.1 kB / 3.787 GB, free: 0.5104 GB / 1.467 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/4.82, allocations: 71.95 kB / 3.787 GB, free: 0.5103 GB / 1.467 GB Notification: Performance of sorting global known variables: time 1.006/5.827, allocations: 0.9475 GB / 4.734 GB, free: 187.4 MB / 1.467 GB Notification: Performance of sort global known variables: time 3.5e-07/5.827, allocations: 0 / 4.734 GB, free: 187.4 MB / 1.467 GB Notification: Performance of remove unused functions: time 0.008553/5.835, allocations: 1.859 MB / 4.736 GB, free: 185.7 MB / 1.467 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.009293/5.845, allocations: 5.355 MB / 4.741 GB, free: 181.2 MB / 1.467 GB Notification: Performance of simCode: created initialization part: time 0.004807/5.849, allocations: 5.725 MB / 4.747 GB, free: 175.5 MB / 1.467 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/5.849, allocations: 0 / 4.747 GB, free: 175.5 MB / 1.467 GB Notification: Performance of simCode: created simulation system equations: time 0.001888/5.851, allocations: 2.723 MB / 4.75 GB, free: 172.7 MB / 1.467 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00472/5.856, allocations: 0.8227 MB / 4.751 GB, free: 171.9 MB / 1.467 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 6.444/12.3, allocations: 4.771 GB / 9.521 GB, free: 324.5 MB / 1.467 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003608/12.3, allocations: 4.657 MB / 9.526 GB, free: 319.9 MB / 1.467 GB Notification: Performance of simCode: alias equations: time 0.007121/12.31, allocations: 3.003 MB / 9.529 GB, free: 317 MB / 1.467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007749/12.32, allocations: 4.029 MB / 9.533 GB, free: 312.9 MB / 1.467 GB Notification: Performance of SimCode: time 6.81e-07/12.32, allocations: 0 / 9.533 GB, free: 312.9 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.881/19.2, allocations: 0.7124 GB / 10.25 GB, free: 231.3 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.31/53.51, allocations: 7.797 kB / 10.25 GB, free: 231.3 MB / 1.467 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)