Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.0009535/0.0009535, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.219/1.219, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 290.4 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9098/0.9098, allocations: 169.2 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 91.14 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1406, allocations: 86.97 MB / 0.6816 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004518/0.1452, allocations: 3.709 MB / 0.6852 GB, free: 3.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003964/0.1491, allocations: 3.43 MB / 0.6886 GB, free: 288 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.1493, allocations: 11.94 kB / 0.6886 GB, free: 276 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.000364/0.1497, allocations: 126.9 kB / 0.6887 GB, free: 148 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2251/0.3748, allocations: 448.8 kB / 0.6891 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008786/0.3757, allocations: 370.8 kB / 0.6895 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007157/0.3764, allocations: 0.7566 MB / 0.6902 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.3767, allocations: 196.8 kB / 0.6904 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003139/0.377, allocations: 314 kB / 0.6907 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004314/0.3775, allocations: 324 kB / 0.691 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.509e-05/0.3776, allocations: 66.62 kB / 0.6911 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007392/0.3783, allocations: 0.4938 MB / 0.6915 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.3785, allocations: 172.4 kB / 0.6917 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.3787, allocations: 322.9 kB / 0.692 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.3799, allocations: 1.09 MB / 0.6931 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3799, allocations: 1.172 kB / 0.6931 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3799, allocations: 2.062 kB / 0.6931 GB, free: 12.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3799, allocations: 0 / 0.6931 GB, free: 12.3 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001745/0.3817, allocations: 0.9928 MB / 0.6941 GB, free: 11.68 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.3817, allocations: 9.281 kB / 0.6941 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003059/0.3848, allocations: 0.5647 MB / 0.6946 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.386, allocations: 0.6291 MB / 0.6952 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.165e-05/0.3861, allocations: 118.6 kB / 0.6953 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.3862, allocations: 46.09 kB / 0.6954 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3875, allocations: 0.664 MB / 0.696 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3876, allocations: 1.344 kB / 0.696 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.955e-05/0.3876, allocations: 18.31 kB / 0.6961 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.3876, allocations: 12.67 kB / 0.6961 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.3892, allocations: 0.6952 MB / 0.6967 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003033/0.3923, allocations: 1.756 MB / 0.6985 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002449/0.3947, allocations: 0.8123 MB / 0.6993 GB, free: 9.805 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007164/0.3955, allocations: 324.9 kB / 0.6996 GB, free: 9.691 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001312/0.3968, allocations: 1.768 MB / 0.7013 GB, free: 7.707 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008391/0.3976, allocations: 395.5 kB / 0.7017 GB, free: 7.559 MB / 494.1 MB Notification: Performance of pre-optimization done (n=53): time 2.555e-06/0.3977, allocations: 0 / 0.7017 GB, free: 7.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=53): time 0.002259/0.3999, allocations: 0.9289 MB / 0.7026 GB, free: 7.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.4, allocations: 108.8 kB / 0.7027 GB, free: 7.102 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.4004, allocations: 424.4 kB / 0.7031 GB, free: 6.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.4005, allocations: 36.45 kB / 0.7031 GB, free: 6.855 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.4006, allocations: 271.5 kB / 0.7034 GB, free: 6.633 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.4007, allocations: 179.6 kB / 0.7036 GB, free: 6.496 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.4009, allocations: 118.1 kB / 0.7037 GB, free: 6.441 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.401, allocations: 361.3 kB / 0.704 GB, free: 6.105 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007039/0.4017, allocations: 276 kB / 0.7043 GB, free: 6.016 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007611/0.4025, allocations: 421.4 kB / 0.7047 GB, free: 5.777 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.4039, allocations: 0.6529 MB / 0.7053 GB, free: 5.449 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4039, allocations: 1.625 kB / 0.7053 GB, free: 5.449 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001693/0.4056, allocations: 0.7634 MB / 0.7061 GB, free: 5.172 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.4056, allocations: 6.875 kB / 0.7061 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.4056, allocations: 6.672 kB / 0.7061 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4057, allocations: 5.875 kB / 0.7061 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.4072, allocations: 249 kB / 0.7063 GB, free: 5.164 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.4085, allocations: 1.581 MB / 0.7079 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.4091, allocations: 90.33 kB / 0.7079 GB, free: 3.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.4092, allocations: 28.67 kB / 0.708 GB, free: 3.586 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002243/0.4094, allocations: 205.9 kB / 0.7082 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-05/0.4095, allocations: 52.77 kB / 0.7082 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.4119, allocations: 0.9321 MB / 0.7091 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.4119, allocations: 7.031 kB / 0.7091 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.4119, allocations: 0.6562 kB / 0.7091 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.412, allocations: 3 kB / 0.7091 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.4149, allocations: 1.617 MB / 0.7107 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4149, allocations: 4.625 kB / 0.7107 GB, free: 2.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007211/0.4156, allocations: 146.3 kB / 0.7109 GB, free: 2.234 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004166/0.4161, allocations: 62.91 kB / 0.7109 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.4161, allocations: 17.53 kB / 0.7109 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.4174, allocations: 1.574 MB / 0.7125 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4174, allocations: 1.906 kB / 0.7125 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.4193, allocations: 0.9003 MB / 0.7134 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.4196, allocations: 205.7 kB / 0.7136 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.4197, allocations: 20.19 kB / 0.7136 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005534/0.4202, allocations: 55.7 kB / 0.7136 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.4203, allocations: 42.86 kB / 0.7137 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.4204, allocations: 22.44 kB / 0.7137 GB, free: 104 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000327/0.4207, allocations: 292.7 kB / 0.714 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4207, allocations: 0 / 0.714 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008158/0.4216, allocations: 237.6 kB / 0.7142 GB, free: 15.89 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 (66): * Single equations (assignments): 64 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/0.4227, allocations: 0.5028 MB / 0.7147 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002417/0.4251, allocations: 0.7602 MB / 0.7154 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4252, allocations: 0 / 0.7154 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009778/0.4261, allocations: 0.4907 MB / 0.7159 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.4266, allocations: 66.22 kB / 0.716 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.4287, allocations: 1.21 MB / 0.7172 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.4291, allocations: 0.872 MB / 0.718 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005322/0.4297, allocations: 149.1 kB / 0.7181 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/0.4299, allocations: 75.83 kB / 0.7182 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.4299, allocations: 0 / 0.7182 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of Templates: time 0.01432/0.4442, allocations: 8.697 MB / 0.7267 GB, free: 10.09 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)