Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple") translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.354/2.354, allocations: 391.2 MB / 407 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 191.4 kB / 499.1 MB, free: 4.633 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 0.7948 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 116.5 kB / 0.9329 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001086, allocations: 57.42 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3166, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimple): time 0.008011/0.3246, allocations: 7.52 MB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.1508/0.4755, allocations: 149.8 MB / 1.372 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.4772, allocations: 31.88 kB / 1.372 GB, free: 7.289 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.479, allocations: 0.5521 MB / 1.372 GB, free: 6.734 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 0.002475/0.4815, allocations: 0.6373 MB / 1.373 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.4842, allocations: 1.004 MB / 1.374 GB, free: 5.102 MB / 0.8698 GB Notification: Performance of NFFlatten.flatten: time 0.002647/0.4869, allocations: 2.148 MB / 1.376 GB, free: 2.945 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002161/0.4891, allocations: 1.518 MB / 1.377 GB, free: 1.387 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009834/0.4901, allocations: 0.7236 MB / 1.378 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.4912, allocations: 0.8828 MB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.4914, allocations: 112 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.493, allocations: 0.6592 MB / 1.38 GB, free: 15 MB / 0.8855 GB Notification: Performance of NFScalarize.scalarize: time 0.000444/0.4934, allocations: 442.4 kB / 1.38 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of NFVerifyModel.verify: time 0.0009384/0.4944, allocations: 0.8351 MB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of NFConvertDAE.convert: time 0.003088/0.4975, allocations: 2.578 MB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.4975, allocations: 4 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4975, allocations: 0 / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.589e-05/0.4976, allocations: 0 / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 420 * Number of variables: 420 Notification: Performance of Generate backend data structure: time 0.004426/0.502, allocations: 2.117 MB / 1.386 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.5021, allocations: 11.98 kB / 1.386 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006053/0.5081, allocations: 0.896 MB / 1.387 GB, free: 8.055 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.5101, allocations: 1.02 MB / 1.388 GB, free: 6.988 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.431e-05/0.5102, allocations: 123.2 kB / 1.388 GB, free: 6.867 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/0.5104, allocations: 159.9 kB / 1.388 GB, free: 6.711 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004756/0.5152, allocations: 2.083 MB / 1.39 GB, free: 4.559 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.5153, allocations: 0 / 1.39 GB, free: 4.559 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/0.5154, allocations: 71.88 kB / 1.39 GB, free: 4.488 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.193e-05/0.5155, allocations: 79.11 kB / 1.39 GB, free: 4.41 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005826/0.5214, allocations: 2.432 MB / 1.392 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01111/0.5325, allocations: 6.437 MB / 1.399 GB, free: 11.31 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/0.5366, allocations: 1.554 MB / 1.4 GB, free: 9.758 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/0.5386, allocations: 0.7574 MB / 1.401 GB, free: 9 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006786/0.5393, allocations: 490.7 kB / 1.401 GB, free: 8.43 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002171/0.5415, allocations: 0.9373 MB / 1.402 GB, free: 7.465 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=129): time 3.867e-06/0.5415, allocations: 0 / 1.402 GB, free: 7.465 MB / 0.9011 GB Notification: Performance of matching and sorting (n=129): time 0.006165/0.5477, allocations: 2.228 MB / 1.404 GB, free: 5.207 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.5478, allocations: 300 kB / 1.405 GB, free: 4.848 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001179/0.549, allocations: 0.8652 MB / 1.406 GB, free: 3.957 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.5491, allocations: 49.7 kB / 1.406 GB, free: 3.902 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005604/0.5497, allocations: 0.6362 MB / 1.406 GB, free: 3.254 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003861/0.5501, allocations: 433.7 kB / 1.407 GB, free: 2.824 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004708/0.5506, allocations: 258.7 kB / 1.407 GB, free: 2.566 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.5507, allocations: 353.9 kB / 1.407 GB, free: 2.215 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.5524, allocations: 0.6306 MB / 1.408 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001861/0.5543, allocations: 0.7966 MB / 1.409 GB, free: 0.7344 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003507/0.5578, allocations: 1.411 MB / 1.41 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.5578, allocations: 0 / 1.41 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004359/0.5622, allocations: 1.683 MB / 1.412 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.5623, allocations: 5.406 kB / 1.412 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.5623, allocations: 4 kB / 1.412 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002438/0.5625, allocations: 37.03 kB / 1.412 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/0.5642, allocations: 343.5 kB / 1.412 GB, free: 13.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.5654, allocations: 1.303 MB / 1.413 GB, free: 11.77 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/0.567, allocations: 192.6 kB / 1.413 GB, free: 11.58 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.5671, allocations: 67.94 kB / 1.414 GB, free: 11.51 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002251/0.5694, allocations: 0.9084 MB / 1.414 GB, free: 10.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001898/0.5713, allocations: 0.8091 MB / 1.415 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003525/0.5748, allocations: 1.41 MB / 1.417 GB, free: 8.289 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.146e-06/0.5749, allocations: 0 / 1.417 GB, free: 8.289 MB / 0.9167 GB Notification: Performance of matching and sorting (n=158) (initialization_lambda0): time 0.004172/0.579, allocations: 1.662 MB / 1.418 GB, free: 6.621 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.5791, allocations: 12.03 kB / 1.418 GB, free: 6.609 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.5791, allocations: 3.938 kB / 1.418 GB, free: 6.605 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.5791, allocations: 12 kB / 1.418 GB, free: 6.594 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.5808, allocations: 343.5 kB / 1.419 GB, free: 6.258 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-05/0.5808, allocations: 19.92 kB / 1.419 GB, free: 6.238 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.5825, allocations: 175 kB / 1.419 GB, free: 6.066 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.5826, allocations: 67.95 kB / 1.419 GB, free: 6 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005117/0.5831, allocations: 265.4 kB / 1.419 GB, free: 5.734 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002783/0.5834, allocations: 122.5 kB / 1.419 GB, free: 5.613 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005556/0.589, allocations: 1.909 MB / 1.421 GB, free: 3.691 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/0.589, allocations: 16 kB / 1.421 GB, free: 3.676 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.5891, allocations: 7.922 kB / 1.421 GB, free: 3.668 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.5891, allocations: 3.984 kB / 1.421 GB, free: 3.664 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6701/1.259, allocations: 3.697 MB / 1.425 GB, free: 202.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/1.259, allocations: 1.875 kB / 1.425 GB, free: 202.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002009/1.261, allocations: 312.4 kB / 1.425 GB, free: 202.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001384/1.261, allocations: 25.62 kB / 1.425 GB, free: 202.3 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/1.262, allocations: 44.42 kB / 1.425 GB, free: 202.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008378/1.262, allocations: 1.279 MB / 1.426 GB, free: 201.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.262, allocations: 4.969 kB / 1.426 GB, free: 201.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007823/1.27, allocations: 3.304 MB / 1.43 GB, free: 200 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000834/1.271, allocations: 386.1 kB / 1.43 GB, free: 199.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/1.271, allocations: 32.84 kB / 1.43 GB, free: 199.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/1.273, allocations: 128.2 kB / 1.43 GB, free: 199.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/1.273, allocations: 93.03 kB / 1.43 GB, free: 199.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/1.273, allocations: 56.5 kB / 1.43 GB, free: 199.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.001248/1.274, allocations: 0.6146 MB / 1.431 GB, free: 199.5 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.41e-07/1.275, allocations: 3.594 kB / 1.431 GB, free: 199.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.003337/1.278, allocations: 0.7752 MB / 1.432 GB, free: 199.3 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001947/1.28, allocations: 0.629 MB / 1.432 GB, free: 199.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.007702/1.288, allocations: 2.493 MB / 1.435 GB, free: 198.3 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/1.288, allocations: 1.25 kB / 1.435 GB, free: 198.3 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.002509/1.29, allocations: 0.9283 MB / 1.436 GB, free: 198 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/1.292, allocations: 317.2 kB / 1.436 GB, free: 197.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007097/1.299, allocations: 4.266 MB / 1.44 GB, free: 195.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/1.3, allocations: 1.298 MB / 1.441 GB, free: 194.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.002812/1.303, allocations: 0.5258 MB / 1.442 GB, free: 194.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005914/1.304, allocations: 154.3 kB / 1.442 GB, free: 194.3 MB / 0.9167 GB Notification: Performance of SimCode: time 1.253e-06/1.304, allocations: 0 / 1.442 GB, free: 194.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.04424/1.348, allocations: 20.79 MB / 1.462 GB, free: 184.6 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1)