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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 112.6 kB / 16.37 MB, free: 6 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.001299/0.001299, allocations: 196 kB / 17.31 MB, free: 5.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.217/1.217, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 288.6 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8783/0.8783, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 93.81 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1417, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004781/0.1465, allocations: 3.788 MB / 0.6853 GB, free: 3.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004374/0.1509, allocations: 3.446 MB / 0.6887 GB, free: 200 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002354/0.1512, allocations: 11.94 kB / 0.6887 GB, free: 188 kB / 494.1 MB [/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.0004447/0.1516, allocations: 126.9 kB / 0.6888 GB, free: 60 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2372/0.3889, allocations: 454.7 kB / 0.6892 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008008/0.3897, allocations: 371.2 kB / 0.6896 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007321/0.3904, allocations: 0.7759 MB / 0.6903 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.3907, allocations: 200.6 kB / 0.6905 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000347/0.3911, allocations: 318.4 kB / 0.6908 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004386/0.3915, allocations: 329.9 kB / 0.6912 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.282e-05/0.3917, allocations: 69.45 kB / 0.6912 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008049/0.3925, allocations: 0.4914 MB / 0.6917 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.3926, allocations: 174.2 kB / 0.6919 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002568/0.3929, allocations: 334.4 kB / 0.6922 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.3941, allocations: 1.102 MB / 0.6933 GB, free: 12.24 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3941, allocations: 0.5156 kB / 0.6933 GB, free: 12.24 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3941, allocations: 1.875 kB / 0.6933 GB, free: 12.24 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.3941, allocations: 0 / 0.6933 GB, free: 12.24 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.001717/0.3959, allocations: 1.018 MB / 0.6943 GB, free: 11.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.3959, allocations: 10.03 kB / 0.6943 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003382/0.3993, allocations: 0.6265 MB / 0.6949 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.4006, allocations: 0.6312 MB / 0.6955 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.4007, allocations: 118.2 kB / 0.6956 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.102e-05/0.4008, allocations: 47.12 kB / 0.6957 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.4023, allocations: 0.7235 MB / 0.6964 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.4023, allocations: 0 / 0.6964 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/0.4024, allocations: 20.47 kB / 0.6964 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.4024, allocations: 11.25 kB / 0.6964 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/0.4043, allocations: 0.7745 MB / 0.6971 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.4075, allocations: 1.907 MB / 0.699 GB, free: 9.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/0.4101, allocations: 0.8611 MB / 0.6998 GB, free: 9.504 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009018/0.411, allocations: 384 kB / 0.7002 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001319/0.4124, allocations: 1.767 MB / 0.7019 GB, free: 7.391 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.4134, allocations: 464.9 kB / 0.7024 GB, free: 7.223 MB / 494.1 MB Notification: Performance of pre-optimization done (n=58): time 2.605e-06/0.4134, allocations: 9.172 kB / 0.7024 GB, free: 7.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=58): time 0.00653/0.42, allocations: 1.662 MB / 0.704 GB, free: 6.727 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.42, allocations: 110.4 kB / 0.7041 GB, free: 6.602 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.4205, allocations: 425 kB / 0.7045 GB, free: 6.395 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.584e-05/0.4206, allocations: 32.58 kB / 0.7046 GB, free: 6.359 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.4207, allocations: 273.9 kB / 0.7048 GB, free: 6.137 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.4208, allocations: 192.7 kB / 0.705 GB, free: 5.988 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.4211, allocations: 132 kB / 0.7051 GB, free: 5.926 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.89e-05/0.4212, allocations: 362.5 kB / 0.7055 GB, free: 5.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008731/0.422, allocations: 323.1 kB / 0.7058 GB, free: 5.488 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009333/0.423, allocations: 448.6 kB / 0.7062 GB, free: 5.258 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.4247, allocations: 0.7204 MB / 0.7069 GB, free: 4.926 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.4248, allocations: 5.875 kB / 0.7069 GB, free: 4.922 MB / 494.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003842/0.4286, allocations: 1.067 MB / 0.708 GB, free: 4.602 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.4286, allocations: 9.531 kB / 0.708 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4287, allocations: 3.719 kB / 0.708 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007539/0.4294, allocations: 144 kB / 0.7081 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000856/0.4303, allocations: 166 kB / 0.7083 GB, free: 4.559 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004734/0.435, allocations: 2.106 MB / 0.7103 GB, free: 2.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008318/0.4359, allocations: 103.9 kB / 0.7104 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.549e-05/0.436, allocations: 31.45 kB / 0.7105 GB, free: 2.934 MB / 494.1 MB 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.0003596/0.4363, allocations: 212.4 kB / 0.7107 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.4365, allocations: 53.22 kB / 0.7107 GB, free: 2.738 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/0.4399, allocations: 1.093 MB / 0.7118 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.4399, allocations: 7.344 kB / 0.7118 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4399, allocations: 7.969 kB / 0.7118 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.4399, allocations: 3.422 kB / 0.7118 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.4439, allocations: 1.805 MB / 0.7136 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4439, allocations: 1.406 kB / 0.7136 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007484/0.4446, allocations: 148.7 kB / 0.7137 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005658/0.4452, allocations: 119.2 kB / 0.7138 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.427e-05/0.4453, allocations: 18.22 kB / 0.7138 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/0.4486, allocations: 1.965 MB / 0.7157 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4486, allocations: 0 / 0.7157 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/0.4515, allocations: 1.056 MB / 0.7168 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/0.4519, allocations: 208.1 kB / 0.717 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.452, allocations: 19.84 kB / 0.717 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/0.4526, allocations: 59.45 kB / 0.7171 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.4528, allocations: 43.86 kB / 0.7171 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.354e-05/0.4528, allocations: 29.16 kB / 0.7171 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003434/0.4532, allocations: 299.4 kB / 0.7174 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4532, allocations: 0 / 0.7174 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000865/0.454, allocations: 242.3 kB / 0.7176 GB, free: 14.98 MB / 0.4981 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.001207/0.4553, allocations: 0.5011 MB / 0.7181 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002249/0.4575, allocations: 0.8934 MB / 0.719 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4575, allocations: 1.094 kB / 0.719 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.459, allocations: 0.5866 MB / 0.7196 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004987/0.4595, allocations: 78.11 kB / 0.7196 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.4618, allocations: 1.275 MB / 0.7209 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.4623, allocations: 0.8882 MB / 0.7218 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005792/0.4628, allocations: 144.2 kB / 0.7219 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/0.4631, allocations: 71.77 kB / 0.722 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of SimCode: time 3.8e-07/0.4631, allocations: 0 / 0.722 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of Templates: time 0.01749/0.4806, allocations: 10.51 MB / 0.7322 GB, free: 7.184 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)