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: "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009485/0.0009485, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.006981/0.006982, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.298/1.298, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001807/0.001806, allocations: 262.2 kB / 291.7 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.974/0.974, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004441, allocations: 15.41 kB / 0.5987 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1928, allocations: 88.54 MB / 0.6852 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem): time 0.0051/0.1979, allocations: 4.208 MB / 0.6893 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006664/0.2046, allocations: 4.372 MB / 0.6936 GB, free: 6.418 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008734/0.2055, allocations: 19.88 kB / 0.6936 GB, free: 6.398 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.2187, allocations: 14.4 MB / 0.7077 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01479/0.2335, allocations: 14.65 MB / 0.722 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.2351, allocations: 441.3 kB / 0.7224 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01016/0.2453, allocations: 7.223 MB / 0.7295 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005799/0.2459, allocations: 222.9 kB / 0.7297 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008803/0.2547, allocations: 5.05 MB / 0.7346 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01583/0.2706, allocations: 13.76 MB / 0.748 GB, free: 14.57 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000442/0.2711, allocations: 24 kB / 0.7481 GB, free: 14.55 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001449/0.2725, allocations: 0.5345 MB / 0.7486 GB, free: 14.01 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003105/0.2757, allocations: 4.293 MB / 0.7528 GB, free: 9.703 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.2785, allocations: 4.197 MB / 0.7569 GB, free: 5.457 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.6174/0.8959, allocations: 9.693 MB / 0.7663 GB, free: 53.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.896, allocations: 1.219 kB / 0.7663 GB, free: 53.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.365e-06/0.896, allocations: 0 / 0.7663 GB, free: 53.79 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004707/0.8965, allocations: 1.094 kB / 0.7663 GB, free: 53.79 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.02125/0.9177, allocations: 12.47 MB / 0.7785 GB, free: 46.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.9178, allocations: 9.344 kB / 0.7785 GB, free: 46.32 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003272/0.9181, allocations: 106.3 kB / 0.7786 GB, free: 46.28 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005599/0.9237, allocations: 2.295 MB / 0.7809 GB, free: 45.3 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005969/0.9297, allocations: 5.974 MB / 0.7867 GB, free: 41.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.9299, allocations: 132.2 kB / 0.7868 GB, free: 41.82 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.93, allocations: 67.22 kB / 0.7869 GB, free: 41.82 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007654/0.9377, allocations: 6.508 MB / 0.7933 GB, free: 41.69 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.9378, allocations: 0.9062 kB / 0.7933 GB, free: 41.69 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.942e-05/0.9378, allocations: 23.47 kB / 0.7933 GB, free: 41.69 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.9379, allocations: 13.81 kB / 0.7933 GB, free: 41.69 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006404/0.9443, allocations: 6.525 MB / 0.7997 GB, free: 41.15 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01539/0.9597, allocations: 7.916 MB / 0.8074 GB, free: 37.78 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005268/0.965, allocations: 6.626 MB / 0.8139 GB, free: 34.74 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003403/0.9685, allocations: 6.088 MB / 0.8198 GB, free: 28.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001731/0.9702, allocations: 2.197 MB / 0.822 GB, free: 26.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003641/0.9739, allocations: 6.2 MB / 0.828 GB, free: 19.95 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 3.226e-06/0.9739, allocations: 4 kB / 0.828 GB, free: 19.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=79): time 0.02164/0.9955, allocations: 26.15 MB / 0.8536 GB, free: 9.742 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/0.9957, allocations: 144.2 kB / 0.8537 GB, free: 9.574 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04381/1.04, allocations: 20.83 MB / 0.874 GB, free: 4.906 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002522/1.04, allocations: 41.7 kB / 0.8741 GB, free: 4.859 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.01313/1.053, allocations: 8.717 MB / 0.8826 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004936/1.053, allocations: 266.7 kB / 0.8828 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/1.054, allocations: 77.67 kB / 0.8829 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001207/1.054, allocations: 341.7 kB / 0.8832 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005602/1.059, allocations: 6.047 MB / 0.8891 GB, free: 5.438 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005562/1.065, allocations: 6.232 MB / 0.8952 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.123/4.188, allocations: 494.8 MB / 1.378 GB, free: 225.5 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/4.188, allocations: 6.578 kB / 1.378 GB, free: 225.5 MB / 0.7482 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.01376/4.202, allocations: 19.93 MB / 1.398 GB, free: 209 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 5.052e-05/4.202, allocations: 33.7 kB / 1.398 GB, free: 208.9 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/4.202, allocations: 11.98 kB / 1.398 GB, free: 208.9 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00065/4.203, allocations: 150 kB / 1.398 GB, free: 208.8 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009221/4.204, allocations: 211.5 kB / 1.398 GB, free: 208.6 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/4.208, allocations: 2.009 MB / 1.4 GB, free: 206.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003277/4.211, allocations: 125 kB / 1.4 GB, free: 206.6 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.699e-05/4.211, allocations: 47.72 kB / 1.4 GB, free: 206.5 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.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.007544/4.219, allocations: 4.936 MB / 1.405 GB, free: 202.4 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001852/4.22, allocations: 1.713 MB / 1.407 GB, free: 200.7 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01504/4.236, allocations: 20.37 MB / 1.427 GB, free: 181.5 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/4.236, allocations: 8.562 kB / 1.427 GB, free: 181.5 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/4.236, allocations: 0 / 1.427 GB, free: 181.5 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/4.236, allocations: 3.984 kB / 1.427 GB, free: 181.5 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/4.257, allocations: 24.91 MB / 1.451 GB, free: 156.6 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/4.257, allocations: 7.938 kB / 1.451 GB, free: 156.6 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009178/4.258, allocations: 187.7 kB / 1.451 GB, free: 156.4 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007042/4.259, allocations: 136.4 kB / 1.451 GB, free: 156.2 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.216e-05/4.259, allocations: 27.98 kB / 1.451 GB, free: 156.2 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/4.262, allocations: 1.782 MB / 1.453 GB, free: 154.3 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/4.262, allocations: 3.984 kB / 1.453 GB, free: 154.3 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/4.28, allocations: 29.51 MB / 1.482 GB, free: 124.7 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003087/4.283, allocations: 1.53 MB / 1.484 GB, free: 123.2 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/4.284, allocations: 20 kB / 1.484 GB, free: 123.1 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/4.286, allocations: 77.08 kB / 1.484 GB, free: 123.1 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/4.286, allocations: 68.91 kB / 1.484 GB, free: 123 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.015e-05/4.286, allocations: 35.05 kB / 1.484 GB, free: 123 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.02513/4.311, allocations: 14.57 MB / 1.498 GB, free: 108.5 MB / 0.7482 GB Notification: Performance of sort global known variables: time 4.21e-07/4.311, allocations: 0 / 1.498 GB, free: 108.5 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.002868/4.314, allocations: 0.6602 MB / 1.499 GB, free: 107.9 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.01958/4.333, allocations: 30.61 MB / 1.529 GB, free: 77.41 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.007577/4.341, allocations: 12.44 MB / 1.541 GB, free: 64.94 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/4.341, allocations: 384 / 1.541 GB, free: 64.94 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.003576/4.345, allocations: 6.354 MB / 1.547 GB, free: 58.56 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004772/4.349, allocations: 0.5397 MB / 1.547 GB, free: 58.02 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 11.3/15.65, allocations: 321.9 MB / 1.862 GB, free: 17.41 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006969/15.66, allocations: 7.601 MB / 1.869 GB, free: 9.773 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.0009859/15.66, allocations: 186.2 kB / 1.869 GB, free: 9.648 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004675/15.67, allocations: 6.764 MB / 1.876 GB, free: 2.887 MB / 0.7482 GB Notification: Performance of SimCode: time 9.42e-07/15.67, allocations: 0 / 1.876 GB, free: 2.887 MB / 0.7482 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.228/16.89, allocations: 206.3 MB / 2.077 GB, free: 79.61 MB / 0.7482 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/16.89, allocations: 303.4 kB / 2.078 GB, free: 79.23 MB / 0.7482 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.579/25.47, allocations: 3.938 kB / 2.078 GB, free: 79.22 MB / 0.7482 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem_fmu --startTime=1.57212e+07 --stopTime=1.83996e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem.fmu > BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem.pipe 2>&1)