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.7802/0.7802, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001057, allocations: 184 kB / 187.3 MB, free: 11.88 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.464/1.464, allocations: 221.3 MB / 441.4 MB, free: 4.594 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.0009371/0.0009372, allocations: 95.45 kB / 0.5124 GB, free: 24.12 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00189/0.00189, allocations: 274.1 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.899e-05/4.908e-05, allocations: 0 / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4695/0.4695, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.15/0.6196, allocations: 123.6 MB / 0.885 GB, free: 0.9219 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.62, allocations: 87.89 kB / 0.8851 GB, free: 0.8359 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.06156/0.6816, allocations: 20.12 MB / 0.9048 GB, free: 12.6 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.996e-06/0.6817, allocations: 0 / 0.9048 GB, free: 12.6 MB / 0.573 GB Notification: Performance of Transformations before backend: time 7.702e-05/0.6817, allocations: 8 kB / 0.9048 GB, free: 12.59 MB / 0.573 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.002577/0.6843, allocations: 0.8786 MB / 0.9056 GB, free: 11.66 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.6844, allocations: 12.03 kB / 0.9057 GB, free: 11.65 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000256/0.6847, allocations: 86.52 kB / 0.9057 GB, free: 11.55 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003147/0.6878, allocations: 0.5494 MB / 0.9063 GB, free: 11 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.689, allocations: 456.7 kB / 0.9067 GB, free: 10.52 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.6891, allocations: 126.1 kB / 0.9068 GB, free: 10.38 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.6893, allocations: 44 kB / 0.9069 GB, free: 10.33 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.6908, allocations: 0.6606 MB / 0.9075 GB, free: 9.648 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.6908, allocations: 0 / 0.9075 GB, free: 9.648 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.322e-05/0.6909, allocations: 24 kB / 0.9075 GB, free: 9.625 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.6909, allocations: 11.94 kB / 0.9076 GB, free: 9.613 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.6922, allocations: 0.7027 MB / 0.9082 GB, free: 8.91 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.6971, allocations: 2.16 MB / 0.9103 GB, free: 6.695 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.6994, allocations: 0.8297 MB / 0.9112 GB, free: 5.855 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006381/0.7, allocations: 350.5 kB / 0.9115 GB, free: 5.512 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002009/0.7021, allocations: 1.769 MB / 0.9132 GB, free: 3.352 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008158/0.7029, allocations: 442.8 kB / 0.9136 GB, free: 2.906 MB / 0.573 GB Notification: Performance of pre-optimization done (n=60): time 4.749e-06/0.7029, allocations: 0 / 0.9136 GB, free: 2.906 MB / 0.573 GB Notification: Performance of matching and sorting (n=60): time 0.003106/0.706, allocations: 0.9373 MB / 0.9146 GB, free: 1.961 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.736e-05/0.7062, allocations: 145 kB / 0.9147 GB, free: 1.785 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008247/0.707, allocations: 427.1 kB / 0.9151 GB, free: 1.363 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.104e-05/0.7071, allocations: 37.7 kB / 0.9151 GB, free: 1.32 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002686/0.7074, allocations: 261 kB / 0.9154 GB, free: 1.059 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.7076, allocations: 209 kB / 0.9156 GB, free: 0.8516 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.7077, allocations: 12 kB / 0.9156 GB, free: 0.8398 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001886/0.7079, allocations: 362.8 kB / 0.9159 GB, free: 488 kB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005309/0.7084, allocations: 285 kB / 0.9162 GB, free: 204 kB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4648/1.173, allocations: 380.7 kB / 0.9166 GB, free: 134.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008066/1.174, allocations: 287.4 kB / 0.9169 GB, free: 134.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/1.174, allocations: 0.9062 kB / 0.9169 GB, free: 134.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003573/1.178, allocations: 0.9968 MB / 0.9178 GB, free: 134.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/1.178, allocations: 5.062 kB / 0.9178 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/1.178, allocations: 2.359 kB / 0.9178 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008341/1.179, allocations: 161.4 kB / 0.918 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/1.18, allocations: 187.9 kB / 0.9182 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/1.184, allocations: 1.969 MB / 0.9201 GB, free: 133.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/1.185, allocations: 153 kB / 0.9202 GB, free: 133.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/1.185, allocations: 33.77 kB / 0.9203 GB, free: 133.1 MB / 0.573 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.0002169/1.185, allocations: 142.6 kB / 0.9204 GB, free: 133 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/1.186, allocations: 59.05 kB / 0.9205 GB, free: 133 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003929/1.189, allocations: 1.147 MB / 0.9216 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/1.189, allocations: 7.625 kB / 0.9216 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/1.19, allocations: 3.969 kB / 0.9216 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/1.19, allocations: 3.188 kB / 0.9216 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005153/1.195, allocations: 1.99 MB / 0.9235 GB, free: 132.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/1.195, allocations: 1.125 kB / 0.9235 GB, free: 132.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009997/1.196, allocations: 187.2 kB / 0.9237 GB, free: 132.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006179/1.196, allocations: 150.6 kB / 0.9239 GB, free: 132.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/1.196, allocations: 21.91 kB / 0.9239 GB, free: 132.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003609/1.2, allocations: 2.015 MB / 0.9258 GB, free: 131.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.2, allocations: 2.484 kB / 0.9259 GB, free: 131.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/1.203, allocations: 1.103 MB / 0.9269 GB, free: 131.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004903/1.204, allocations: 246.3 kB / 0.9272 GB, free: 130.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/1.204, allocations: 13.38 kB / 0.9272 GB, free: 130.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008955/1.205, allocations: 110.4 kB / 0.9273 GB, free: 130.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/1.205, allocations: 56.22 kB / 0.9273 GB, free: 130.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/1.205, allocations: 26.11 kB / 0.9274 GB, free: 130.9 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006308/1.206, allocations: 340 kB / 0.9277 GB, free: 130.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.71e-07/1.206, allocations: 4.531 kB / 0.9277 GB, free: 130.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001411/1.207, allocations: 293.3 kB / 0.928 GB, free: 130.8 MB / 0.573 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.004732/1.212, allocations: 2.066 MB / 0.93 GB, free: 130 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001635/1.214, allocations: 0.8543 MB / 0.9308 GB, free: 129.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/1.214, allocations: 0 / 0.9308 GB, free: 129.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007789/1.214, allocations: 0.5279 MB / 0.9313 GB, free: 129.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/1.215, allocations: 51.47 kB / 0.9314 GB, free: 129.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/1.217, allocations: 1.077 MB / 0.9324 GB, free: 128.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/1.218, allocations: 0.8952 MB / 0.9333 GB, free: 128.2 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0007671/1.219, allocations: 147.3 kB / 0.9335 GB, free: 128.1 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004418/1.219, allocations: 230.7 kB / 0.9337 GB, free: 128 MB / 0.573 GB Notification: Performance of SimCode: time 1.102e-06/1.219, allocations: 0 / 0.9337 GB, free: 128 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/1.257, allocations: 17.38 MB / 0.9506 GB, free: 122.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/1.258, allocations: 266.4 kB / 0.9509 GB, free: 121.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/3.841, allocations: 2.672 kB / 0.9509 GB, free: 121.9 MB / 0.573 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)