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.0009453/0.0009455, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0009083/0.0009083, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.3 MB / 240 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001752/0.001752, allocations: 266.3 kB / 291.3 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.023/1.023, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004526, allocations: 14.56 kB / 0.598 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2195, allocations: 88.54 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.005176/0.2248, allocations: 3.991 MB / 0.6884 GB, free: 11.47 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006714/0.2315, allocations: 4.152 MB / 0.6924 GB, free: 7.328 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008225/0.2324, allocations: 15.88 kB / 0.6924 GB, free: 7.312 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01346/0.2459, allocations: 14.04 MB / 0.7061 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01488/0.2608, allocations: 14.3 MB / 0.7201 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.2624, allocations: 386.6 kB / 0.7205 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.009874/0.2723, allocations: 5.696 MB / 0.726 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005506/0.2729, allocations: 182.7 kB / 0.7262 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01038/0.2833, allocations: 5.046 MB / 0.7311 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0153/0.2987, allocations: 11.24 MB / 0.7421 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0007705/0.2995, allocations: 31.98 kB / 0.7421 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002051/0.3015, allocations: 0.4994 MB / 0.7426 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.004148/0.3057, allocations: 4.28 MB / 0.7468 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001659/0.3074, allocations: 1.793 MB / 0.7485 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.008853/0.3163, allocations: 7.324 MB / 0.7557 GB, free: 6.371 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.3163, allocations: 3.984 kB / 0.7557 GB, free: 6.367 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.336e-06/0.3163, allocations: 0 / 0.7557 GB, free: 6.367 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004823/0.3168, allocations: 0 / 0.7557 GB, free: 6.367 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.8391/1.156, allocations: 12.65 MB / 0.7681 GB, free: 47.79 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/1.156, allocations: 8.469 kB / 0.7681 GB, free: 47.79 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007472/1.164, allocations: 2.298 MB / 0.7703 GB, free: 46.82 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/1.175, allocations: 5.037 MB / 0.7752 GB, free: 44.38 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/1.175, allocations: 132.8 kB / 0.7754 GB, free: 44.29 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/1.175, allocations: 60.03 kB / 0.7754 GB, free: 44.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007479/1.182, allocations: 6.502 MB / 0.7818 GB, free: 44.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.402e-05/1.182, allocations: 9.75 kB / 0.7818 GB, free: 44.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-05/1.183, allocations: 26.52 kB / 0.7818 GB, free: 44.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.114e-05/1.183, allocations: 17.17 kB / 0.7818 GB, free: 44.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01365/1.196, allocations: 6.512 MB / 0.7882 GB, free: 44.16 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01758/1.214, allocations: 7.921 MB / 0.7959 GB, free: 40.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0063/1.22, allocations: 6.619 MB / 0.8024 GB, free: 39.5 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003896/1.224, allocations: 6.093 MB / 0.8083 GB, free: 34.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001697/1.226, allocations: 2.201 MB / 0.8105 GB, free: 31.44 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00402/1.23, allocations: 6.191 MB / 0.8165 GB, free: 25.92 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 4.018e-06/1.23, allocations: 0 / 0.8165 GB, free: 25.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=79): time 0.02116/1.251, allocations: 26.15 MB / 0.8421 GB, free: 168 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/1.251, allocations: 149.1 kB / 0.8422 GB, free: 15.99 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04476/1.296, allocations: 20.91 MB / 0.8626 GB, free: 11.24 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002778/1.296, allocations: 41.7 kB / 0.8627 GB, free: 11.19 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0124/1.309, allocations: 8.713 MB / 0.8712 GB, free: 2.477 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005469/1.309, allocations: 275.4 kB / 0.8714 GB, free: 2.211 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/1.31, allocations: 16 kB / 0.8715 GB, free: 2.195 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001386/1.31, allocations: 341.9 kB / 0.8718 GB, free: 1.855 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005054/1.315, allocations: 6.05 MB / 0.8777 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005576/1.32, allocations: 6.218 MB / 0.8838 GB, free: 5.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005541/1.326, allocations: 6.091 MB / 0.8897 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/1.326, allocations: 0 / 0.8897 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.02057/1.347, allocations: 19.92 MB / 0.9092 GB, free: 11.49 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 7.182e-05/1.347, allocations: 41.7 kB / 0.9092 GB, free: 11.45 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/1.347, allocations: 4 kB / 0.9092 GB, free: 11.44 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006991/1.347, allocations: 153.6 kB / 0.9094 GB, free: 11.29 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.349, allocations: 218.5 kB / 0.9096 GB, free: 11.09 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00429/1.353, allocations: 2.003 MB / 0.9115 GB, free: 8.969 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004232/1.357, allocations: 127.9 kB / 0.9116 GB, free: 8.844 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/1.357, allocations: 47.97 kB / 0.9117 GB, free: 8.797 MB / 0.6232 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to 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 battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available 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 ($whenCondition2,$whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,$PRE.SLP_July.nextEvent,SLP_July.nextEvent,SLP_July.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.008597/1.366, allocations: 4.921 MB / 0.9165 GB, free: 3.867 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004592/1.371, allocations: 1.715 MB / 0.9182 GB, free: 2.129 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0252/1.396, allocations: 20.37 MB / 0.9381 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/1.396, allocations: 11.98 kB / 0.9381 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/1.396, allocations: 0 / 0.9381 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/1.396, allocations: 3.984 kB / 0.9381 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03555/1.432, allocations: 24.9 MB / 0.9624 GB, free: 4.785 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/1.432, allocations: 4.828 kB / 0.9624 GB, free: 4.781 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/1.433, allocations: 189.9 kB / 0.9626 GB, free: 4.605 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006724/1.433, allocations: 134 kB / 0.9627 GB, free: 4.477 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.112e-05/1.433, allocations: 23.98 kB / 0.9627 GB, free: 4.453 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002921/1.436, allocations: 1.784 MB / 0.9645 GB, free: 2.543 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.436, allocations: 4.031 kB / 0.9645 GB, free: 2.539 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0273/1.464, allocations: 29.51 MB / 0.9933 GB, free: 4.984 MB / 0.7013 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004874/1.469, allocations: 1.529 MB / 0.9948 GB, free: 3.414 MB / 0.7013 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002667/1.471, allocations: 20 kB / 0.9948 GB, free: 3.395 MB / 0.7013 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003105/1.474, allocations: 73.23 kB / 0.9949 GB, free: 3.324 MB / 0.7013 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/1.475, allocations: 60.91 kB / 0.9949 GB, free: 3.266 MB / 0.7013 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/1.475, allocations: 31.98 kB / 0.995 GB, free: 3.234 MB / 0.7013 GB Notification: Performance of sorting global known variables: time 0.03596/1.511, allocations: 14.66 MB / 1.009 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.52e-07/1.511, allocations: 0 / 1.009 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00486/1.516, allocations: 0.6716 MB / 1.01 GB, free: 4.055 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001706/1.517, allocations: 0.544 MB / 1.01 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01191/1.529, allocations: 12.45 MB / 1.023 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/1.529, allocations: 0 / 1.023 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0068/1.536, allocations: 6.343 MB / 1.029 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00766/1.544, allocations: 0.542 MB / 1.029 GB, free: 368 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.492/2.036, allocations: 38.06 MB / 1.067 GB, free: 262.6 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01257/2.049, allocations: 7.607 MB / 1.074 GB, free: 261.2 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.001191/2.05, allocations: 174.2 kB / 1.074 GB, free: 261.2 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/2.05, allocations: 89.36 kB / 1.074 GB, free: 261.1 MB / 0.7482 GB Notification: Performance of SimCode: time 1.182e-06/2.05, allocations: 0 / 1.074 GB, free: 261.1 MB / 0.7482 GB Notification: Performance of Templates: time 0.08999/2.14, allocations: 30.02 MB / 1.104 GB, free: 235.4 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)