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.005215/0.005214, allocations: 100.4 kB / 15.73 MB, free: 6.023 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.001131/0.001131, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002042/0.002042, allocations: 275 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9222/0.9222, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 91.48 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1556, allocations: 86.97 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005279/0.1609, allocations: 3.797 MB / 0.7696 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005084/0.166, allocations: 3.454 MB / 0.7729 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004459/0.1665, allocations: 7.938 kB / 0.773 GB, free: 1.676 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.0006618/0.1672, allocations: 123 kB / 0.7731 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0014/0.1686, allocations: 469.3 kB / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008801/0.1695, allocations: 362 kB / 0.7739 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3496/0.5191, allocations: 0.769 MB / 0.7746 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005179/0.5196, allocations: 191.9 kB / 0.7748 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007697/0.5204, allocations: 317.6 kB / 0.7751 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000651/0.5211, allocations: 331.9 kB / 0.7754 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.5212, allocations: 66.59 kB / 0.7755 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.5224, allocations: 0.4984 MB / 0.776 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002071/0.5226, allocations: 172 kB / 0.7761 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003313/0.523, allocations: 334.5 kB / 0.7765 GB, free: 8.023 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001612/0.5246, allocations: 1.104 MB / 0.7775 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5246, allocations: 0 / 0.7775 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5246, allocations: 0 / 0.7775 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.769e-05/0.5246, allocations: 0.9688 kB / 0.7775 GB, free: 7.891 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.002013/0.5267, allocations: 1.013 MB / 0.7785 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.5267, allocations: 11.5 kB / 0.7785 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.5268, allocations: 89.34 kB / 0.7786 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003424/0.5303, allocations: 0.6245 MB / 0.7792 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.5316, allocations: 0.6317 MB / 0.7798 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.5317, allocations: 124.3 kB / 0.78 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.5318, allocations: 47.25 kB / 0.78 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.5334, allocations: 0.7194 MB / 0.7807 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.5334, allocations: 2.031 kB / 0.7807 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.051e-05/0.5335, allocations: 21.5 kB / 0.7807 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.5335, allocations: 12.03 kB / 0.7807 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001946/0.5355, allocations: 0.7727 MB / 0.7815 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.5389, allocations: 1.913 MB / 0.7834 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002808/0.5417, allocations: 0.86 MB / 0.7842 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009261/0.5427, allocations: 383.1 kB / 0.7846 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001696/0.5444, allocations: 1.77 MB / 0.7863 GB, free: 19.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.5455, allocations: 458.2 kB / 0.7867 GB, free: 19.63 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=58): time 2.935e-06/0.5455, allocations: 3.375 kB / 0.7867 GB, free: 19.63 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58): time 0.006606/0.5521, allocations: 1.667 MB / 0.7884 GB, free: 19.13 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.5522, allocations: 109.2 kB / 0.7885 GB, free: 19.01 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005368/0.5527, allocations: 426.2 kB / 0.7889 GB, free: 18.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.032e-05/0.5528, allocations: 36.55 kB / 0.7889 GB, free: 18.76 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.5531, allocations: 284.5 kB / 0.7892 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.5532, allocations: 191.6 kB / 0.7894 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.5534, allocations: 122.2 kB / 0.7895 GB, free: 18.33 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000206/0.5537, allocations: 363.8 kB / 0.7898 GB, free: 18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008733/0.5545, allocations: 318.8 kB / 0.7901 GB, free: 17.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009483/0.5555, allocations: 447.4 kB / 0.7906 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.5573, allocations: 0.7265 MB / 0.7913 GB, free: 17.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5573, allocations: 0 / 0.7913 GB, free: 17.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003631/0.561, allocations: 1.07 MB / 0.7923 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.561, allocations: 6.062 kB / 0.7923 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.561, allocations: 2.906 kB / 0.7923 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007079/0.5617, allocations: 142.2 kB / 0.7925 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008117/0.5626, allocations: 169.1 kB / 0.7926 GB, free: 16.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004853/0.5674, allocations: 2.107 MB / 0.7947 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009415/0.5684, allocations: 100.2 kB / 0.7948 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.071e-05/0.5685, allocations: 38.69 kB / 0.7948 GB, free: 15.34 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.0004006/0.5689, allocations: 213.5 kB / 0.795 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.569, allocations: 52.5 kB / 0.7951 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003645/0.5727, allocations: 1.091 MB / 0.7961 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.5727, allocations: 16 kB / 0.7961 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5727, allocations: 0.875 kB / 0.7961 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.5727, allocations: 3.188 kB / 0.7962 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004432/0.5772, allocations: 1.803 MB / 0.7979 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.5772, allocations: 0.5 kB / 0.7979 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008487/0.578, allocations: 148.2 kB / 0.7981 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006477/0.5787, allocations: 120.2 kB / 0.7982 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.423e-05/0.5788, allocations: 22.94 kB / 0.7982 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004133/0.5829, allocations: 1.967 MB / 0.8001 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5829, allocations: 0.5156 kB / 0.8001 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003235/0.5862, allocations: 1.043 MB / 0.8011 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004586/0.5867, allocations: 217.8 kB / 0.8013 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.5868, allocations: 11.28 kB / 0.8013 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007361/0.5876, allocations: 62.75 kB / 0.8014 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.5877, allocations: 50.97 kB / 0.8015 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.933e-05/0.5878, allocations: 23.17 kB / 0.8015 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000528/0.5884, allocations: 295.8 kB / 0.8018 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.6e-07/0.5884, allocations: 0 / 0.8018 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001069/0.5894, allocations: 245.9 kB / 0.802 GB, free: 11.43 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.004682/0.5941, allocations: 1.993 MB / 0.8039 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002494/0.5966, allocations: 0.8974 MB / 0.8048 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.5967, allocations: 4.812 kB / 0.8048 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.5983, allocations: 0.5804 MB / 0.8054 GB, free: 9.793 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005744/0.5989, allocations: 80.02 kB / 0.8055 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/0.613, allocations: 5.914 MB / 0.8112 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.6137, allocations: 0.8919 MB / 0.8121 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007112/0.6144, allocations: 151.4 kB / 0.8123 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.6149, allocations: 229.3 kB / 0.8125 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/0.6149, allocations: 0 / 0.8125 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.6573, allocations: 16.12 MB / 0.8282 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/12.07, allocations: 13.23 kB / 0.8282 GB, free: 14.51 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)