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.001534/0.001534, allocations: 98.83 kB / 16.35 MB, free: 5.824 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.001574/0.001574, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.44/1.44, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002209/0.002209, allocations: 283.5 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.001881, allocations: 94.98 kB / 0.5966 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2546, allocations: 86.97 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.006635/0.2613, allocations: 4.59 MB / 0.6861 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4691/0.7304, allocations: 4.412 MB / 0.6904 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.7315, allocations: 19.28 kB / 0.6904 GB, free: 12.6 MB / 494.1 MB [/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.02341/0.755, allocations: 14.42 MB / 0.7045 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01915/0.7743, allocations: 14.75 MB / 0.7189 GB, free: 5.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.7763, allocations: 0.495 MB / 0.7194 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.01431/0.7906, allocations: 7.293 MB / 0.7265 GB, free: 220 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005987/0.7913, allocations: 234.5 kB / 0.7267 GB, free: 44 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01369/0.805, allocations: 5.758 MB / 0.7323 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02421/0.8292, allocations: 13.96 MB / 0.746 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.8309, allocations: 80 kB / 0.746 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.8342, allocations: 0.5823 MB / 0.7466 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.004358/0.8386, allocations: 3.932 MB / 0.7504 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.006878/0.8455, allocations: 4.235 MB / 0.7546 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.86, allocations: 10.25 MB / 0.7646 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.86, allocations: 0 / 0.7646 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.516e-06/0.86, allocations: 0 / 0.7646 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0003967/0.8604, allocations: 0 / 0.7646 GB, free: 9.762 MB / 0.5294 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.02589/0.8863, allocations: 14.45 MB / 0.7787 GB, free: 11.13 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.8864, allocations: 12.03 kB / 0.7787 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006283/0.8927, allocations: 2.288 MB / 0.7809 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008335/0.9011, allocations: 5.964 MB / 0.7868 GB, free: 2.746 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.9013, allocations: 131.4 kB / 0.7869 GB, free: 2.602 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/0.9014, allocations: 74.64 kB / 0.787 GB, free: 2.531 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007022/0.9085, allocations: 6.499 MB / 0.7933 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.9085, allocations: 0 / 0.7933 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-05/0.9087, allocations: 28 kB / 0.7933 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.9087, allocations: 20 kB / 0.7934 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007988/0.9167, allocations: 6.502 MB / 0.7997 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02751/0.9442, allocations: 7.906 MB / 0.8074 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.9547, allocations: 6.607 MB / 0.8139 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006492/0.9613, allocations: 6.089 MB / 0.8198 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.9645, allocations: 2.196 MB / 0.822 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006842/0.9714, allocations: 6.195 MB / 0.828 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 6.462e-06/0.9714, allocations: 0 / 0.828 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of matching and sorting (n=79): time 0.03388/1.005, allocations: 26.13 MB / 0.8535 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/1.006, allocations: 141.2 kB / 0.8537 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05114/1.057, allocations: 20.83 MB / 0.874 GB, free: 8.844 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.000432/1.057, allocations: 37.7 kB / 0.874 GB, free: 8.801 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.01423/1.072, allocations: 8.718 MB / 0.8826 GB, free: 80 kB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007997/1.072, allocations: 260.4 kB / 0.8828 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007878/1.073, allocations: 178.4 kB / 0.883 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002409/1.073, allocations: 341.9 kB / 0.8833 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008155/1.082, allocations: 6.045 MB / 0.8892 GB, free: 9.246 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006399/1.088, allocations: 6.228 MB / 0.8953 GB, free: 2.934 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.813/4.901, allocations: 428.1 MB / 1.313 GB, free: 215.1 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/4.901, allocations: 4 kB / 1.313 GB, free: 215.1 MB / 0.7482 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.02069/4.922, allocations: 19.91 MB / 1.333 GB, free: 198.6 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/4.922, allocations: 45.78 kB / 1.333 GB, free: 198.5 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/4.922, allocations: 4 kB / 1.333 GB, free: 198.5 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007902/4.923, allocations: 147 kB / 1.333 GB, free: 198.4 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/4.924, allocations: 215.5 kB / 1.333 GB, free: 198.2 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005029/4.929, allocations: 2.122 MB / 1.335 GB, free: 196.1 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004852/4.934, allocations: 126.7 kB / 1.335 GB, free: 196 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/4.934, allocations: 47.72 kB / 1.335 GB, free: 196 MB / 0.7482 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.01007/4.944, allocations: 4.926 MB / 1.34 GB, free: 191.9 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003781/4.948, allocations: 1.717 MB / 1.342 GB, free: 190.2 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02212/4.97, allocations: 20.35 MB / 1.362 GB, free: 170.9 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/4.97, allocations: 8 kB / 1.362 GB, free: 170.9 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/4.97, allocations: 0 / 1.362 GB, free: 170.9 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/4.97, allocations: 11.64 kB / 1.362 GB, free: 170.9 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0391/5.009, allocations: 24.88 MB / 1.386 GB, free: 146 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/5.009, allocations: 0 / 1.386 GB, free: 146 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/5.01, allocations: 184.3 kB / 1.386 GB, free: 145.8 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006173/5.011, allocations: 125.7 kB / 1.386 GB, free: 145.7 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/5.011, allocations: 27.97 kB / 1.386 GB, free: 145.7 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003722/5.015, allocations: 1.961 MB / 1.388 GB, free: 143.6 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/5.015, allocations: 3.938 kB / 1.388 GB, free: 143.6 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0232/5.038, allocations: 29.49 MB / 1.417 GB, free: 114 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005794/5.044, allocations: 1.531 MB / 1.419 GB, free: 112.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002243/5.046, allocations: 19.94 kB / 1.419 GB, free: 112.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003296/5.05, allocations: 67.75 kB / 1.419 GB, free: 112.4 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/5.05, allocations: 64.91 kB / 1.419 GB, free: 112.3 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002093/5.05, allocations: 31.98 kB / 1.419 GB, free: 112.3 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.04078/5.091, allocations: 14.56 MB / 1.433 GB, free: 97.83 MB / 0.7482 GB Notification: Performance of sort global known variables: time 1.323e-06/5.091, allocations: 0 / 1.433 GB, free: 97.83 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.005606/5.097, allocations: 0.676 MB / 1.434 GB, free: 97.17 MB / 0.7482 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.002652/5.099, allocations: 0.5286 MB / 1.434 GB, free: 96.81 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.01226/5.112, allocations: 12.44 MB / 1.446 GB, free: 84.35 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/5.112, allocations: 4.375 kB / 1.446 GB, free: 84.34 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.005342/5.117, allocations: 6.381 MB / 1.453 GB, free: 77.93 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006591/5.124, allocations: 0.568 MB / 1.453 GB, free: 77.37 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07452/5.198, allocations: 36.01 MB / 1.488 GB, free: 41.33 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0219/5.22, allocations: 7.595 MB / 1.496 GB, free: 33.7 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.001481/5.222, allocations: 181.8 kB / 1.496 GB, free: 33.52 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005096/5.222, allocations: 95.38 kB / 1.496 GB, free: 33.42 MB / 0.7482 GB Notification: Performance of SimCode: time 1.613e-06/5.222, allocations: 3.938 kB / 1.496 GB, free: 33.42 MB / 0.7482 GB Notification: Performance of Templates: time 0.08698/5.309, allocations: 30.56 MB / 1.526 GB, free: 2.941 MB / 0.7482 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)