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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.855/0.855, allocations: 141.8 MB / 149.3 MB, free: 9.211 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 184.8 kB / 182.2 MB, free: 9.438 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.635/1.635, allocations: 221.5 MB / 436.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 97.45 kB / 0.5074 GB, free: 10.1 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002131/0.002131, allocations: 271.5 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.534e-05/2.556e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4721/0.4721, allocations: 82.77 MB / 0.7575 GB, free: 31.9 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.6433, allocations: 122.9 MB / 0.8775 GB, free: 4.805 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.6437, allocations: 75.97 kB / 0.8776 GB, free: 4.73 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd - DAE generated: time 0.05775/0.7015, allocations: 19.85 MB / 0.897 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7015, allocations: 0 / 0.897 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.769e-05/0.7016, allocations: 8 kB / 0.897 GB, free: 0.7422 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.4681/1.17, allocations: 0.8787 MB / 0.8978 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.296e-05/1.17, allocations: 9.625 kB / 0.8978 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003647/1.173, allocations: 0.5445 MB / 0.8984 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/1.175, allocations: 458.9 kB / 0.8988 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/1.175, allocations: 102.4 kB / 0.8989 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/1.175, allocations: 26.77 kB / 0.8989 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00152/1.176, allocations: 0.6719 MB / 0.8996 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/1.178, allocations: 0.6042 MB / 0.9002 GB, free: 123 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/1.178, allocations: 4.469 kB / 0.9002 GB, free: 123 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/1.178, allocations: 0 / 0.9002 GB, free: 123 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/1.178, allocations: 10.47 kB / 0.9002 GB, free: 123 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/1.182, allocations: 2.073 MB / 0.9022 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/1.185, allocations: 0.8029 MB / 0.903 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006332/1.185, allocations: 334.4 kB / 0.9033 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001626/1.187, allocations: 1.769 MB / 0.905 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008261/1.188, allocations: 415.8 kB / 0.9054 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=60): time 3.327e-06/1.188, allocations: 1.031 kB / 0.9054 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=60): time 0.02215/1.21, allocations: 3.169 MB / 0.9085 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/1.21, allocations: 137.5 kB / 0.9087 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008913/1.211, allocations: 386.2 kB / 0.909 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001002/1.211, allocations: 30.67 kB / 0.9091 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/1.211, allocations: 257.8 kB / 0.9093 GB, free: 120 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000287/1.212, allocations: 191.7 kB / 0.9095 GB, free: 119.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-05/1.212, allocations: 0 / 0.9095 GB, free: 119.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.212, allocations: 370.5 kB / 0.9098 GB, free: 119.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005242/1.212, allocations: 279.2 kB / 0.9101 GB, free: 119.6 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005927/1.213, allocations: 364.6 kB / 0.9105 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/1.231, allocations: 2.57 MB / 0.913 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/1.231, allocations: 0 / 0.913 GB, free: 119.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.02039/1.251, allocations: 3.244 MB / 0.9161 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/1.251, allocations: 3.969 kB / 0.9161 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.251, allocations: 3.969 kB / 0.9161 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006997/1.252, allocations: 159 kB / 0.9163 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009495/1.253, allocations: 192.4 kB / 0.9165 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003307/1.256, allocations: 1.911 MB / 0.9183 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/1.257, allocations: 135.6 kB / 0.9185 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/1.258, allocations: 36.34 kB / 0.9185 GB, free: 117 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.0002227/1.258, allocations: 117.2 kB / 0.9186 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02069/1.279, allocations: 3.164 MB / 0.9217 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002627/1.279, allocations: 54.52 kB / 0.9218 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0189/1.298, allocations: 3.316 MB / 0.925 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/1.298, allocations: 8 kB / 0.925 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.298, allocations: 4 kB / 0.925 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/1.298, allocations: 3.844 kB / 0.925 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02026/1.318, allocations: 4.087 MB / 0.929 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/1.318, allocations: 0 / 0.929 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009385/1.319, allocations: 181.3 kB / 0.9292 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005587/1.32, allocations: 153.2 kB / 0.9293 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/1.32, allocations: 14.67 kB / 0.9293 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002974/1.323, allocations: 1.959 MB / 0.9313 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.323, allocations: 0 / 0.9313 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01839/1.341, allocations: 3.289 MB / 0.9345 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005455/1.342, allocations: 236.2 kB / 0.9347 GB, free: 106 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/1.342, allocations: 4 kB / 0.9347 GB, free: 106 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009102/1.343, allocations: 91.91 kB / 0.9348 GB, free: 105.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/1.343, allocations: 60.67 kB / 0.9348 GB, free: 105.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/1.343, allocations: 31.97 kB / 0.9349 GB, free: 105.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004359/1.344, allocations: 299 kB / 0.9352 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.9e-07/1.344, allocations: 0 / 0.9352 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001157/1.345, allocations: 273.3 kB / 0.9354 GB, free: 105.3 MB / 0.5573 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01949/1.364, allocations: 4.211 MB / 0.9395 GB, free: 101.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001583/1.366, allocations: 0.8176 MB / 0.9403 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.366, allocations: 0 / 0.9403 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007169/1.367, allocations: 0.5005 MB / 0.9408 GB, free: 99.91 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006105/1.367, allocations: 41.44 kB / 0.9409 GB, free: 99.88 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/1.37, allocations: 1.013 MB / 0.9418 GB, free: 98.85 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/1.37, allocations: 0.897 MB / 0.9427 GB, free: 97.93 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007624/1.371, allocations: 141.8 kB / 0.9429 GB, free: 97.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/1.371, allocations: 230.9 kB / 0.9431 GB, free: 97.58 MB / 0.5573 GB Notification: Performance of SimCode: time 5.81e-07/1.371, allocations: 0 / 0.9431 GB, free: 97.58 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04382/1.415, allocations: 15.97 MB / 0.9587 GB, free: 81.77 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/1.416, allocations: 218 kB / 0.9589 GB, free: 81.47 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.596/4.011, allocations: 1.828 kB / 0.9589 GB, free: 81.47 MB / 0.5573 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/linux/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)