Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 110.8 kB / 16.37 MB, free: 6.312 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.001773/0.001773, allocations: 189.8 kB / 17.3 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.855/1.855, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.867/1.867, allocations: 292.3 MB / 0.5496 GB, free: 17.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 71.91 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2735, allocations: 114.5 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels): time 0.4562/0.7297, allocations: 10.99 MB / 0.7955 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.1814/0.9112, allocations: 152.8 MB / 0.9448 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.9129, allocations: 35.88 kB / 0.9448 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.9151, allocations: 0.6864 MB / 0.9455 GB, free: 5.703 MB / 0.7325 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.003215/0.9184, allocations: 0.914 MB / 0.9464 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004347/0.9227, allocations: 1.546 MB / 0.9479 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004874/0.9276, allocations: 2.948 MB / 0.9508 GB, free: 308 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004519/0.9322, allocations: 3.071 MB / 0.9538 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002252/0.9344, allocations: 1.257 MB / 0.955 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00246/0.9369, allocations: 1.428 MB / 0.9564 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0005969/0.9375, allocations: 352.9 kB / 0.9567 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.9391, allocations: 0.8469 MB / 0.9576 GB, free: 9.324 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0006841/0.9398, allocations: 0.8141 MB / 0.9584 GB, free: 8.508 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.9412, allocations: 1.434 MB / 0.9598 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004386/0.9456, allocations: 4.188 MB / 0.9638 GB, free: 2.867 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.9456, allocations: 4 kB / 0.9639 GB, free: 2.863 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9457, allocations: 0 / 0.9639 GB, free: 2.863 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.483e-05/0.9457, allocations: 0 / 0.9639 GB, free: 2.863 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.006787/0.9525, allocations: 2.932 MB / 0.9667 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.9526, allocations: 14 kB / 0.9667 GB, free: 15.86 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.9636, allocations: 1.534 MB / 0.9682 GB, free: 14.32 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003879/0.9676, allocations: 1.47 MB / 0.9697 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.9678, allocations: 197 kB / 0.9698 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005581/0.9684, allocations: 243.9 kB / 0.9701 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008675/0.977, allocations: 3.393 MB / 0.9734 GB, free: 8.82 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.872e-05/0.9771, allocations: 11.88 kB / 0.9734 GB, free: 8.809 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003474/0.9775, allocations: 108 kB / 0.9735 GB, free: 8.703 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.9776, allocations: 120.6 kB / 0.9736 GB, free: 8.582 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01136/0.989, allocations: 3.839 MB / 0.9774 GB, free: 4.727 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02156/1.011, allocations: 9.912 MB / 0.9871 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008113/1.019, allocations: 2.693 MB / 0.9897 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003506/1.022, allocations: 1.261 MB / 0.9909 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009263/1.023, allocations: 0.5865 MB / 0.9915 GB, free: 5.824 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003983/1.027, allocations: 1.508 MB / 0.993 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=194): time 4.098e-06/1.027, allocations: 0 / 0.993 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of matching and sorting (n=195): time 0.01233/1.04, allocations: 4.254 MB / 0.9971 GB, free: 24 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001608/1.04, allocations: 257.3 kB / 0.9974 GB, free: 15.72 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/1.041, allocations: 1.102 MB / 0.9984 GB, free: 14.61 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002166/1.042, allocations: 61.7 kB / 0.9985 GB, free: 14.54 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009411/1.043, allocations: 0.9249 MB / 0.9994 GB, free: 13.61 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007549/1.043, allocations: 0.643 MB / 1 GB, free: 12.95 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007449/1.044, allocations: 391.2 kB / 1 GB, free: 12.56 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001029/1.044, allocations: 301.1 kB / 1.001 GB, free: 12.27 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0033/1.048, allocations: 1.074 MB / 1.002 GB, free: 11.19 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003432/1.051, allocations: 1.387 MB / 1.003 GB, free: 9.707 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006794/1.058, allocations: 2.456 MB / 1.005 GB, free: 7.168 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/1.058, allocations: 3.984 kB / 1.005 GB, free: 7.164 MB / 0.795 GB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007764/1.066, allocations: 2.776 MB / 1.008 GB, free: 4.379 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/1.066, allocations: 8 kB / 1.008 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/1.066, allocations: 8.531 kB / 1.008 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/1.066, allocations: 16 kB / 1.008 GB, free: 4.348 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/1.069, allocations: 0.5538 MB / 1.009 GB, free: 3.793 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.198e-05/1.069, allocations: 16 kB / 1.009 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/1.071, allocations: 262.6 kB / 1.009 GB, free: 3.52 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/1.072, allocations: 102.2 kB / 1.009 GB, free: 3.422 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004003/1.076, allocations: 1.441 MB / 1.011 GB, free: 1.977 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003333/1.079, allocations: 1.351 MB / 1.012 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006726/1.086, allocations: 2.412 MB / 1.014 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.254e-05/1.086, allocations: 0 / 1.014 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=237) (initialization_lambda0): time 0.007891/1.094, allocations: 2.71 MB / 1.017 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/1.094, allocations: 8 kB / 1.017 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/1.094, allocations: 8 kB / 1.017 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/1.094, allocations: 16 kB / 1.017 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002983/1.097, allocations: 0.5382 MB / 1.017 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.018e-05/1.097, allocations: 19.94 kB / 1.017 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002431/1.099, allocations: 267 kB / 1.018 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002358/1.1, allocations: 91.92 kB / 1.018 GB, free: 10.36 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (237): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006789/1.1, allocations: 295.7 kB / 1.018 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004653/1.101, allocations: 173.9 kB / 1.018 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008723/1.11, allocations: 3.02 MB / 1.021 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.182e-05/1.11, allocations: 11.95 kB / 1.021 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/1.11, allocations: 4 kB / 1.021 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/1.111, allocations: 0.5412 MB / 1.022 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003525/1.111, allocations: 47.84 kB / 1.022 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002237/1.113, allocations: 215.7 kB / 1.022 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/1.114, allocations: 117.8 kB / 1.022 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008969/1.123, allocations: 2.961 MB / 1.025 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007587/1.13, allocations: 2.884 MB / 1.028 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003356/1.134, allocations: 1.274 MB / 1.029 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001268/1.135, allocations: 0.7831 MB / 1.03 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of Backend: time 4.3e-07/1.135, allocations: 0 / 1.03 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01123/1.146, allocations: 3.707 MB / 1.033 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of SimCode: time 0.006807/1.153, allocations: 3.965 MB / 1.037 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of Templates: time 0.08592/1.239, allocations: 49.26 MB / 1.085 GB, free: 5.523 MB / 0.8731 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe 2>&1)