Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",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.000897/0.000897, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005523/0.005523, allocations: 173.9 kB / 16.26 MB, free: 6.613 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.245/1.245, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001669/0.001669, allocations: 266.9 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8702/0.8702, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004036/0.0004037, allocations: 19.77 kB / 0.5988 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1323, allocations: 88.54 MB / 0.6852 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.003556/0.1359, allocations: 3.434 MB / 0.6886 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004107/0.14, allocations: 3.386 MB / 0.6919 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.1402, allocations: 7.938 kB / 0.6919 GB, free: 8.156 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.1406, allocations: 114.6 kB / 0.692 GB, free: 8.047 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008089/0.1414, allocations: 382.1 kB / 0.6924 GB, free: 7.672 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006117/0.142, allocations: 327.4 kB / 0.6927 GB, free: 7.359 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006061/0.1426, allocations: 0.725 MB / 0.6934 GB, free: 6.633 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.1429, allocations: 192.8 kB / 0.6936 GB, free: 6.445 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002843/0.1432, allocations: 250.7 kB / 0.6938 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000376/0.1436, allocations: 288.6 kB / 0.6941 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.1436, allocations: 20 kB / 0.6941 GB, free: 5.898 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006702/0.1443, allocations: 467.5 kB / 0.6945 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.1445, allocations: 119.4 kB / 0.6947 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.1447, allocations: 300 kB / 0.6949 GB, free: 5.023 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009206/0.1456, allocations: 1.028 MB / 0.696 GB, free: 3.992 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1456, allocations: 7.984 kB / 0.696 GB, free: 3.984 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1456, allocations: 4 kB / 0.696 GB, free: 3.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1456, allocations: 0 / 0.696 GB, free: 3.98 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001591/0.1472, allocations: 0.8785 MB / 0.6968 GB, free: 3.047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1473, allocations: 16.02 kB / 0.6968 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.1474, allocations: 86.72 kB / 0.6969 GB, free: 2.938 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003354/0.1508, allocations: 0.64 MB / 0.6975 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.152, allocations: 0.639 MB / 0.6982 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.1521, allocations: 130.4 kB / 0.6983 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.55e-05/0.1522, allocations: 47.94 kB / 0.6983 GB, free: 1.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1537, allocations: 0.7152 MB / 0.699 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1537, allocations: 3.938 kB / 0.699 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.421e-05/0.1537, allocations: 24 kB / 0.6991 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.1538, allocations: 12 kB / 0.6991 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.1557, allocations: 0.7923 MB / 0.6998 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003143/0.1589, allocations: 1.916 MB / 0.7017 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.1616, allocations: 0.8802 MB / 0.7026 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009571/0.1626, allocations: 398.3 kB / 0.703 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001572/0.1642, allocations: 1.761 MB / 0.7047 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.1653, allocations: 474.8 kB / 0.7051 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 2.224e-06/0.1653, allocations: 7.875 kB / 0.7051 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.006592/0.1719, allocations: 1.695 MB / 0.7068 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.1719, allocations: 115.3 kB / 0.7069 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/0.1724, allocations: 419.5 kB / 0.7073 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.1724, allocations: 37.7 kB / 0.7073 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.1726, allocations: 272.7 kB / 0.7076 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.1728, allocations: 201 kB / 0.7078 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.1728, allocations: 53.69 kB / 0.7078 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.173, allocations: 358.8 kB / 0.7082 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008791/0.1738, allocations: 333 kB / 0.7085 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009366/0.1748, allocations: 455.8 kB / 0.7089 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.1766, allocations: 0.7402 MB / 0.7097 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1766, allocations: 4 kB / 0.7097 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003539/0.1801, allocations: 1.081 MB / 0.7107 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1802, allocations: 8 kB / 0.7107 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1802, allocations: 4.219 kB / 0.7107 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006874/0.1809, allocations: 144.7 kB / 0.7109 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007835/0.1817, allocations: 167.7 kB / 0.711 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004317/0.186, allocations: 1.988 MB / 0.713 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007112/0.1867, allocations: 107.5 kB / 0.7131 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.086e-05/0.1868, allocations: 35.91 kB / 0.7131 GB, free: 1.492 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * 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.0002677/0.1871, allocations: 207 kB / 0.7133 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.949e-05/0.1872, allocations: 55.34 kB / 0.7134 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003338/0.1905, allocations: 1.109 MB / 0.7144 GB, free: 108 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.1905, allocations: 12 kB / 0.7145 GB, free: 96 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.1905, allocations: 0 / 0.7145 GB, free: 96 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1906, allocations: 15.84 kB / 0.7145 GB, free: 80 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003867/0.1944, allocations: 1.827 MB / 0.7163 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.1944, allocations: 3.984 kB / 0.7163 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007408/0.1952, allocations: 151.8 kB / 0.7164 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007278/0.1959, allocations: 132.7 kB / 0.7165 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.196, allocations: 15.98 kB / 0.7165 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002963/0.199, allocations: 1.786 MB / 0.7183 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.199, allocations: 0 / 0.7183 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002935/0.2019, allocations: 1.072 MB / 0.7193 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.2022, allocations: 212.2 kB / 0.7195 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.286e-05/0.2023, allocations: 16 kB / 0.7196 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006457/0.2029, allocations: 67.84 kB / 0.7196 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.203, allocations: 52.52 kB / 0.7197 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.758e-05/0.2031, allocations: 27.98 kB / 0.7197 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003051/0.2034, allocations: 291.1 kB / 0.72 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2034, allocations: 0 / 0.72 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007119/0.2041, allocations: 247.6 kB / 0.7202 GB, free: 9.949 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * 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.004169/0.2083, allocations: 2.019 MB / 0.7222 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002099/0.2104, allocations: 0.9098 MB / 0.7231 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2104, allocations: 0 / 0.7231 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.2115, allocations: 0.5413 MB / 0.7236 GB, free: 6.578 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.212, allocations: 72.72 kB / 0.7237 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.2244, allocations: 6.346 MB / 0.7299 GB, free: 4 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.2248, allocations: 0.889 MB / 0.7307 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006891/0.2255, allocations: 148.5 kB / 0.7309 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003765/0.2259, allocations: 227.3 kB / 0.7311 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of SimCode: time 4.41e-07/0.2259, allocations: 0 / 0.7311 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6703/0.8962, allocations: 15.34 MB / 0.7461 GB, free: 15.68 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002606/0.8965, allocations: 315.6 kB / 0.7464 GB, free: 15.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/3.059, allocations: 0 / 0.7464 GB, free: 15.3 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)