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.001734/0.001734, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001368/0.001368, allocations: 190.9 kB / 16.25 MB, free: 6.637 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.493/1.493, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002751/0.002751, allocations: 286.8 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.216/1.216, allocations: 178.6 MB / 0.5069 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 97.09 kB / 0.6059 GB, free: 24.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2465, allocations: 89.15 MB / 0.693 GB, free: 4.727 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.007235/0.2538, allocations: 4.609 MB / 0.6975 GB, free: 104 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007943/0.2618, allocations: 4.361 MB / 0.7017 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009045/0.2627, allocations: 19.88 kB / 0.7017 GB, free: 11.7 MB / 0.4981 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.01535/0.2781, allocations: 14.4 MB / 0.7158 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01718/0.2953, allocations: 14.67 MB / 0.7301 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.2973, allocations: 450.2 kB / 0.7306 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01519/0.3125, allocations: 7.294 MB / 0.7377 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006937/0.3132, allocations: 234.8 kB / 0.7379 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01279/0.326, allocations: 5.771 MB / 0.7435 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0206/0.3467, allocations: 14.54 MB / 0.7577 GB, free: 2.258 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006031/0.3473, allocations: 76 kB / 0.7578 GB, free: 2.184 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.3492, allocations: 0.5892 MB / 0.7584 GB, free: 1.594 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.7476/1.097, allocations: 4.333 MB / 0.7626 GB, free: 37.79 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006336/1.103, allocations: 4.239 MB / 0.7668 GB, free: 35.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01543/1.119, allocations: 10.04 MB / 0.7766 GB, free: 32.13 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/1.119, allocations: 2.312 kB / 0.7766 GB, free: 32.13 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.074e-06/1.119, allocations: 0 / 0.7766 GB, free: 32.13 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0009295/1.12, allocations: 0 / 0.7766 GB, free: 32.13 MB / 0.545 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.03291/1.153, allocations: 14.46 MB / 0.7907 GB, free: 22.48 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/1.153, allocations: 10.22 kB / 0.7907 GB, free: 22.48 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00723/1.16, allocations: 2.283 MB / 0.7929 GB, free: 21.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/1.171, allocations: 5.952 MB / 0.7987 GB, free: 17.99 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/1.171, allocations: 133.6 kB / 0.7989 GB, free: 17.88 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/1.171, allocations: 63.94 kB / 0.7989 GB, free: 17.85 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009448/1.181, allocations: 6.51 MB / 0.8053 GB, free: 16.76 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/1.181, allocations: 1.375 kB / 0.8053 GB, free: 16.76 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/1.181, allocations: 22.88 kB / 0.8053 GB, free: 16.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/1.181, allocations: 15.75 kB / 0.8053 GB, free: 16.75 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006117/1.187, allocations: 6.509 MB / 0.8117 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02667/1.214, allocations: 7.907 MB / 0.8194 GB, free: 12.41 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005451/1.219, allocations: 6.614 MB / 0.8259 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003467/1.223, allocations: 6.083 MB / 0.8318 GB, free: 10.14 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001892/1.225, allocations: 2.2 MB / 0.834 GB, free: 7.559 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003972/1.229, allocations: 6.2 MB / 0.84 GB, free: 2.031 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 4.047e-06/1.229, allocations: 0 / 0.84 GB, free: 2.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=79): time 0.03178/1.261, allocations: 26.13 MB / 0.8655 GB, free: 7.867 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/1.261, allocations: 141.2 kB / 0.8657 GB, free: 7.699 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06247/1.323, allocations: 20.83 MB / 0.886 GB, free: 3.039 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0003108/1.324, allocations: 42.73 kB / 0.886 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0184/1.342, allocations: 8.723 MB / 0.8946 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005599/1.343, allocations: 257.5 kB / 0.8948 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003689/1.343, allocations: 178.4 kB / 0.895 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000173/1.343, allocations: 341.9 kB / 0.8953 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005673/1.349, allocations: 6.045 MB / 0.9012 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00601/1.355, allocations: 6.219 MB / 0.9073 GB, free: 13.18 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.734/4.089, allocations: 428.2 MB / 1.325 GB, free: 12.38 MB / 0.7638 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/4.089, allocations: 0 / 1.325 GB, free: 12.38 MB / 0.7638 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.3989/4.488, allocations: 19.91 MB / 1.345 GB, free: 278.6 MB / 0.7638 GB Notification: Performance of prepare postOptimizeDAE: time 7.282e-05/4.488, allocations: 43.05 kB / 1.345 GB, free: 278.5 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/4.488, allocations: 6.312 kB / 1.345 GB, free: 278.5 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007936/4.489, allocations: 141.6 kB / 1.345 GB, free: 278.5 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/4.49, allocations: 214.8 kB / 1.345 GB, free: 278.5 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00475/4.495, allocations: 2.123 MB / 1.347 GB, free: 277.1 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004725/4.5, allocations: 127.4 kB / 1.347 GB, free: 277.1 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002645/4.5, allocations: 43.44 kB / 1.347 GB, free: 277.1 MB / 0.7638 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.6850000000000001 * 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.01514/4.515, allocations: 4.934 MB / 1.352 GB, free: 277 MB / 0.7638 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004189/4.519, allocations: 1.719 MB / 1.354 GB, free: 276.1 MB / 0.7638 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01866/4.538, allocations: 20.36 MB / 1.374 GB, free: 261.3 MB / 0.7638 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/4.538, allocations: 11.98 kB / 1.374 GB, free: 261.2 MB / 0.7638 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/4.538, allocations: 2.125 kB / 1.374 GB, free: 261.2 MB / 0.7638 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/4.538, allocations: 7.922 kB / 1.374 GB, free: 261.2 MB / 0.7638 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03151/4.57, allocations: 24.89 MB / 1.398 GB, free: 237.4 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/4.57, allocations: 0 / 1.398 GB, free: 237.4 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009837/4.571, allocations: 181.7 kB / 1.398 GB, free: 237.2 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006022/4.571, allocations: 122.1 kB / 1.398 GB, free: 237.1 MB / 0.7638 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-05/4.571, allocations: 27.92 kB / 1.399 GB, free: 237 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003503/4.575, allocations: 1.963 MB / 1.4 GB, free: 234.9 MB / 0.7638 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/4.575, allocations: 1.656 kB / 1.4 GB, free: 234.9 MB / 0.7638 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01946/4.594, allocations: 29.49 MB / 1.429 GB, free: 205.4 MB / 0.7638 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005105/4.6, allocations: 1.528 MB / 1.431 GB, free: 203.9 MB / 0.7638 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002954/4.603, allocations: 18 kB / 1.431 GB, free: 203.8 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00338/4.606, allocations: 69.86 kB / 1.431 GB, free: 203.8 MB / 0.7638 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/4.606, allocations: 60.92 kB / 1.431 GB, free: 203.7 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/4.606, allocations: 36.08 kB / 1.431 GB, free: 203.7 MB / 0.7638 GB Notification: Performance of sorting global known variables: time 0.03463/4.641, allocations: 14.56 MB / 1.445 GB, free: 189.2 MB / 0.7638 GB Notification: Performance of sort global known variables: time 4.31e-07/4.641, allocations: 0.625 kB / 1.445 GB, free: 189.2 MB / 0.7638 GB Notification: Performance of remove unused functions: time 0.004096/4.645, allocations: 0.6794 MB / 1.446 GB, free: 188.6 MB / 0.7638 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged,EField.y,EGrid.y,Eload.y) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,SLP_July.nextEvent,SLP_July.nextEventScaled) * Number of discrete states: 7 (weatherData.weatherData.conTim.tNext,SLP_July.nextEvent,SLP_July.last,SLP_July.nextEventScaled,SLP_July.b,SLP_July.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.001991/4.647, allocations: 0.5295 MB / 1.446 GB, free: 188.3 MB / 0.7638 GB Notification: Performance of simCode: created initialization part: time 0.007914/4.655, allocations: 12.51 MB / 1.459 GB, free: 175.8 MB / 0.7638 GB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/4.655, allocations: 0 / 1.459 GB, free: 175.8 MB / 0.7638 GB Notification: Performance of simCode: created simulation system equations: time 0.003921/4.659, allocations: 6.393 MB / 1.465 GB, free: 169.4 MB / 0.7638 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006624/4.666, allocations: 0.562 MB / 1.465 GB, free: 168.8 MB / 0.7638 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06172/4.727, allocations: 39.62 MB / 1.504 GB, free: 129.2 MB / 0.7638 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01832/4.746, allocations: 7.596 MB / 1.511 GB, free: 121.5 MB / 0.7638 GB Notification: Performance of simCode: alias equations: time 0.001266/4.747, allocations: 186.9 kB / 1.512 GB, free: 121.4 MB / 0.7638 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004075/4.747, allocations: 83.39 kB / 1.512 GB, free: 121.3 MB / 0.7638 GB Notification: Performance of SimCode: time 1.183e-06/4.748, allocations: 0 / 1.512 GB, free: 121.3 MB / 0.7638 GB Notification: Performance of Templates: time 0.09581/4.843, allocations: 30.52 MB / 1.541 GB, free: 90.84 MB / 0.7638 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)