Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") translateModel(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001464/0.001464, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002224/0.002225, allocations: 281.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 99.84 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5918/0.5936, allocations: 86.97 MB / 0.767 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.00662/0.6003, allocations: 4.598 MB / 0.7715 GB, free: 15.33 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006894/0.6073, allocations: 4.406 MB / 0.7758 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006926/0.608, allocations: 19.88 kB / 0.7758 GB, free: 10.89 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.01331/0.6214, allocations: 14.42 MB / 0.7899 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01498/0.6364, allocations: 14.75 MB / 0.8043 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.6382, allocations: 0.4913 MB / 0.8048 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01201/0.6503, allocations: 7.286 MB / 0.8119 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006517/0.651, allocations: 241.6 kB / 0.8121 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01093/0.6619, allocations: 5.771 MB / 0.8178 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0212/0.6832, allocations: 13.95 MB / 0.8314 GB, free: 1.883 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001347/0.6846, allocations: 83.94 kB / 0.8315 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002567/0.6871, allocations: 0.5853 MB / 0.832 GB, free: 1.215 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.00331/0.6905, allocations: 3.927 MB / 0.8359 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.004188/0.6947, allocations: 4.242 MB / 0.84 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.7056, allocations: 10.25 MB / 0.85 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.7057, allocations: 0 / 0.85 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7057, allocations: 0 / 0.85 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0003569/0.7061, allocations: 0 / 0.85 GB, free: 14.69 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.02123/0.7273, allocations: 14.45 MB / 0.8642 GB, free: 64 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 6.452e-05/0.7274, allocations: 8.031 kB / 0.8642 GB, free: 56 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005798/0.7332, allocations: 2.282 MB / 0.8664 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006852/0.7401, allocations: 5.972 MB / 0.8722 GB, free: 7.676 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.7403, allocations: 127 kB / 0.8723 GB, free: 7.535 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.7404, allocations: 67.88 kB / 0.8724 GB, free: 7.469 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005764/0.7462, allocations: 6.514 MB / 0.8788 GB, free: 0.918 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.7462, allocations: 0 / 0.8788 GB, free: 0.918 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.397e-05/0.7463, allocations: 24 kB / 0.8788 GB, free: 0.8945 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.7464, allocations: 12 kB / 0.8788 GB, free: 0.8828 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006192/0.7526, allocations: 6.506 MB / 0.8852 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.767, allocations: 7.906 MB / 0.8929 GB, free: 2.387 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007602/0.7747, allocations: 6.614 MB / 0.8993 GB, free: 11.76 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005315/0.7801, allocations: 6.082 MB / 0.9053 GB, free: 5.676 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002415/0.7825, allocations: 2.2 MB / 0.9074 GB, free: 3 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005178/0.7877, allocations: 6.195 MB / 0.9135 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=79): time 4.519e-06/0.7878, allocations: 0 / 0.9135 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of matching and sorting (n=79): time 0.02523/0.813, allocations: 26.12 MB / 0.939 GB, free: 2.594 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.8131, allocations: 141.2 kB / 0.9391 GB, free: 2.422 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.8933/1.706, allocations: 20.83 MB / 0.9595 GB, free: 165.4 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002347/1.707, allocations: 41.14 kB / 0.9595 GB, free: 165.3 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.008139/1.715, allocations: 8.716 MB / 0.968 GB, free: 158.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/1.715, allocations: 264.8 kB / 0.9683 GB, free: 158.4 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003345/1.716, allocations: 170.8 kB / 0.9684 GB, free: 158.4 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.969e-05/1.716, allocations: 342.8 kB / 0.9688 GB, free: 158 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005499/1.721, allocations: 6.049 MB / 0.9747 GB, free: 157.2 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003613/1.725, allocations: 6.229 MB / 0.9807 GB, free: 156.1 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.791/4.516, allocations: 428.1 MB / 1.399 GB, free: 197.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/4.516, allocations: 7.75 kB / 1.399 GB, free: 197.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01428/4.53, allocations: 19.91 MB / 1.418 GB, free: 180.9 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/4.53, allocations: 33.7 kB / 1.418 GB, free: 180.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/4.53, allocations: 12.03 kB / 1.418 GB, free: 180.8 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006753/4.531, allocations: 144.1 kB / 1.418 GB, free: 180.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009852/4.532, allocations: 211.5 kB / 1.419 GB, free: 180.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/4.536, allocations: 2.124 MB / 1.421 GB, free: 178.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00266/4.539, allocations: 126.8 kB / 1.421 GB, free: 178.4 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/4.539, allocations: 47.72 kB / 1.421 GB, free: 178.3 MB / 0.8575 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 14 (SLP_July.nextEventScaled,SLP_July.nextEvent,$PRE.SLP_July.nextEvent,SLP_July.last,SLP_July.b,SLP_July.a,weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,$whenCondition2,radiation.outsidePolarCircle,Eload.local_reset,EGrid.local_reset,EField.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 101 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.005714/4.545, allocations: 4.936 MB / 1.426 GB, free: 174.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/4.546, allocations: 1.713 MB / 1.427 GB, free: 172.4 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01412/4.561, allocations: 20.35 MB / 1.447 GB, free: 152.9 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/4.561, allocations: 7.969 kB / 1.447 GB, free: 152.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/4.561, allocations: 0 / 1.447 GB, free: 152.9 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002884/4.564, allocations: 1.524 MB / 1.449 GB, free: 151.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009584/4.565, allocations: 20 kB / 1.449 GB, free: 151.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/4.566, allocations: 75.36 kB / 1.449 GB, free: 151.2 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/4.566, allocations: 64.89 kB / 1.449 GB, free: 151.2 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01043/4.577, allocations: 18.28 MB / 1.467 GB, free: 132.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01616/4.593, allocations: 29.49 MB / 1.496 GB, free: 103.3 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003411/4.596, allocations: 6.134 MB / 1.502 GB, free: 97.18 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.02044/4.617, allocations: 14.56 MB / 1.516 GB, free: 82.75 MB / 0.8575 GB Notification: Performance of Backend: time 1.232e-06/4.617, allocations: 0 / 1.516 GB, free: 82.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.007939/4.625, allocations: 7.046 MB / 1.523 GB, free: 75.91 MB / 0.8575 GB Notification: Performance of SimCode: time 0.04103/4.666, allocations: 31.63 MB / 1.554 GB, free: 44.21 MB / 0.8575 GB Notification: Performance of Templates: time 0.07971/4.746, allocations: 32.9 MB / 1.586 GB, free: 11.38 MB / 0.8575 GB make -j1 -f BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.makefile (rm -f BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe ; mkfifo BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe >> ../files/BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.sim & ./BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)