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.005088/0.005088, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001361/0.001361, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.002579, allocations: 286.5 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.061/1.061, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00297/0.00297, allocations: 87.86 kB / 0.6809 GB, free: 44 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1766, allocations: 86.98 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.006117/0.1827, allocations: 3.784 MB / 0.7696 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005738/0.1885, allocations: 3.458 MB / 0.7729 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004021/0.1889, allocations: 11.94 kB / 0.773 GB, free: 1.688 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005998/0.1895, allocations: 126.9 kB / 0.7731 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001389/0.1909, allocations: 461.4 kB / 0.7735 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008943/0.1918, allocations: 374.5 kB / 0.7739 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3271/0.5189, allocations: 0.7705 MB / 0.7746 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004609/0.5194, allocations: 190.7 kB / 0.7748 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006793/0.5201, allocations: 321 kB / 0.7751 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/0.5207, allocations: 329.3 kB / 0.7754 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.5209, allocations: 68.25 kB / 0.7755 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.522, allocations: 0.493 MB / 0.776 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.5222, allocations: 169.1 kB / 0.7761 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.5225, allocations: 334.4 kB / 0.7765 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001448/0.524, allocations: 1.107 MB / 0.7775 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.524, allocations: 0 / 0.7775 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.535e-06/0.524, allocations: 0.6562 kB / 0.7775 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.733e-05/0.524, allocations: 3.125 kB / 0.7775 GB, free: 7.934 MB / 0.5606 GB 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.001914/0.5259, allocations: 1.047 MB / 0.7786 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.526, allocations: 9 kB / 0.7786 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.5261, allocations: 88.81 kB / 0.7787 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003608/0.5297, allocations: 0.6237 MB / 0.7793 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.531, allocations: 0.632 MB / 0.7799 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.5311, allocations: 127.2 kB / 0.78 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.5312, allocations: 49.19 kB / 0.78 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.5327, allocations: 0.7147 MB / 0.7807 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5327, allocations: 4.875 kB / 0.7808 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.5328, allocations: 23.11 kB / 0.7808 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.5328, allocations: 13.59 kB / 0.7808 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001962/0.5348, allocations: 0.7702 MB / 0.7815 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.5381, allocations: 1.912 MB / 0.7834 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002833/0.541, allocations: 0.8743 MB / 0.7843 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009449/0.5419, allocations: 380 kB / 0.7846 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/0.5436, allocations: 1.767 MB / 0.7863 GB, free: 19.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.5448, allocations: 460.8 kB / 0.7868 GB, free: 19.62 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=58): time 2.465e-06/0.5448, allocations: 0 / 0.7868 GB, free: 19.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58): time 0.007002/0.5518, allocations: 1.669 MB / 0.7884 GB, free: 19.12 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/0.5519, allocations: 112.6 kB / 0.7885 GB, free: 19 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005015/0.5524, allocations: 420.5 kB / 0.7889 GB, free: 18.79 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.986e-05/0.5525, allocations: 39.53 kB / 0.789 GB, free: 18.75 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.5526, allocations: 283.7 kB / 0.7892 GB, free: 18.52 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.5528, allocations: 196.5 kB / 0.7894 GB, free: 18.37 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.553, allocations: 127.6 kB / 0.7895 GB, free: 18.31 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.5532, allocations: 358.1 kB / 0.7899 GB, free: 17.98 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008827/0.5541, allocations: 324.2 kB / 0.7902 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009508/0.5551, allocations: 451 kB / 0.7906 GB, free: 17.64 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.5568, allocations: 0.7249 MB / 0.7913 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5569, allocations: 1.688 kB / 0.7913 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003711/0.5606, allocations: 1.067 MB / 0.7924 GB, free: 16.99 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.5606, allocations: 10.66 kB / 0.7924 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.5606, allocations: 2.375 kB / 0.7924 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007755/0.5614, allocations: 146.3 kB / 0.7925 GB, free: 16.96 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008556/0.5623, allocations: 164.7 kB / 0.7927 GB, free: 16.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005123/0.5674, allocations: 2.115 MB / 0.7947 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008494/0.5683, allocations: 107.5 kB / 0.7949 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/0.5683, allocations: 29.48 kB / 0.7949 GB, free: 15.32 MB / 0.5762 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.0003648/0.5687, allocations: 211 kB / 0.7951 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.5688, allocations: 56.53 kB / 0.7951 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003483/0.5723, allocations: 1.093 MB / 0.7962 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.5724, allocations: 11.91 kB / 0.7962 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5724, allocations: 0 / 0.7962 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.5724, allocations: 3.656 kB / 0.7962 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.5767, allocations: 1.809 MB / 0.798 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.5768, allocations: 0 / 0.798 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009055/0.5777, allocations: 144.7 kB / 0.7981 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006901/0.5784, allocations: 120.7 kB / 0.7982 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.569e-05/0.5785, allocations: 18.31 kB / 0.7983 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004399/0.5829, allocations: 1.97 MB / 0.8002 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5829, allocations: 0.6562 kB / 0.8002 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003224/0.5861, allocations: 1.047 MB / 0.8012 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003998/0.5865, allocations: 217.2 kB / 0.8014 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.5e-05/0.5866, allocations: 16.17 kB / 0.8014 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007007/0.5873, allocations: 61.17 kB / 0.8015 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.5875, allocations: 53.28 kB / 0.8015 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.597e-05/0.5876, allocations: 28.86 kB / 0.8016 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004119/0.588, allocations: 294.4 kB / 0.8018 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.588, allocations: 0 / 0.8018 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001084/0.5891, allocations: 253 kB / 0.8021 GB, free: 11.38 MB / 0.5762 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.005303/0.5944, allocations: 1.981 MB / 0.804 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002463/0.5969, allocations: 0.9038 MB / 0.8049 GB, free: 9.988 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5969, allocations: 0 / 0.8049 GB, free: 9.988 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.5986, allocations: 0.5862 MB / 0.8055 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.5992, allocations: 78.52 kB / 0.8055 GB, free: 9.703 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.6137, allocations: 5.944 MB / 0.8114 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.6144, allocations: 0.8844 MB / 0.8122 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006817/0.6151, allocations: 151.7 kB / 0.8124 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004685/0.6156, allocations: 230.9 kB / 0.8126 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/0.6156, allocations: 0 / 0.8126 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05335/0.6689, allocations: 16.32 MB / 0.8285 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.27, allocations: 15.72 kB / 0.8285 GB, free: 14.25 MB / 0.5919 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)