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.00101/0.00101, allocations: 108 kB / 16.27 MB, free: 6.406 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.0009647/0.0009647, allocations: 193 kB / 17.2 MB, free: 5.973 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.237/1.237, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002135/0.002135, allocations: 298.9 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8813/0.8813, allocations: 169.2 MB / 0.4988 GB, free: 4.516 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 94.42 kB / 0.5959 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1444, allocations: 86.98 MB / 0.6808 GB, free: 8.191 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004505/0.149, allocations: 3.695 MB / 0.6844 GB, free: 4.473 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004525/0.1535, allocations: 3.45 MB / 0.6878 GB, free: 1.004 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003685/0.1539, allocations: 7.938 kB / 0.6878 GB, free: 0.9961 MB / 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.0004877/0.1544, allocations: 119 kB / 0.6879 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.1556, allocations: 457.4 kB / 0.6884 GB, free: 440 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007976/0.1564, allocations: 366.1 kB / 0.6887 GB, free: 76 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.2491/0.4055, allocations: 0.7501 MB / 0.6894 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.4059, allocations: 193.9 kB / 0.6896 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004307/0.4064, allocations: 304.5 kB / 0.6899 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004699/0.4069, allocations: 331.6 kB / 0.6902 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.407, allocations: 66 kB / 0.6903 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009515/0.4079, allocations: 0.4914 MB / 0.6908 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.4081, allocations: 171.5 kB / 0.6909 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.4084, allocations: 324.6 kB / 0.6913 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.4097, allocations: 1.071 MB / 0.6923 GB, free: 11.81 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.4097, allocations: 0 / 0.6923 GB, free: 11.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4097, allocations: 0.8438 kB / 0.6923 GB, free: 11.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.4098, allocations: 0.7188 kB / 0.6923 GB, free: 11.81 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.001773/0.4115, allocations: 0.9996 MB / 0.6933 GB, free: 11.19 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.4116, allocations: 9 kB / 0.6933 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003154/0.4147, allocations: 0.5584 MB / 0.6938 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/0.416, allocations: 0.6242 MB / 0.6944 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-05/0.4161, allocations: 120.7 kB / 0.6946 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.522e-05/0.4162, allocations: 48.22 kB / 0.6946 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.4176, allocations: 0.6656 MB / 0.6953 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.4176, allocations: 0 / 0.6953 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/0.4176, allocations: 19.59 kB / 0.6953 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.4177, allocations: 16.34 kB / 0.6953 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.4193, allocations: 0.6886 MB / 0.696 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.4225, allocations: 1.772 MB / 0.6977 GB, free: 9.883 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.425, allocations: 0.8015 MB / 0.6985 GB, free: 9.617 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007774/0.4258, allocations: 327.5 kB / 0.6988 GB, free: 9.504 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001405/0.4272, allocations: 1.773 MB / 0.7005 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008964/0.4282, allocations: 399.2 kB / 0.7009 GB, free: 7.363 MB / 494.1 MB Notification: Performance of pre-optimization done (n=53): time 2.254e-06/0.4282, allocations: 4 kB / 0.7009 GB, free: 7.359 MB / 494.1 MB Notification: Performance of matching and sorting (n=53): time 0.002438/0.4306, allocations: 0.9236 MB / 0.7018 GB, free: 7.031 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.4307, allocations: 116.5 kB / 0.7019 GB, free: 6.902 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.4311, allocations: 416.5 kB / 0.7023 GB, free: 6.699 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.4312, allocations: 38.94 kB / 0.7023 GB, free: 6.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.4313, allocations: 273.4 kB / 0.7026 GB, free: 6.438 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.4315, allocations: 174.8 kB / 0.7028 GB, free: 6.305 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4317, allocations: 118.7 kB / 0.7029 GB, free: 6.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.4318, allocations: 366.8 kB / 0.7032 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007146/0.4325, allocations: 274.2 kB / 0.7035 GB, free: 5.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007715/0.4333, allocations: 411.5 kB / 0.7039 GB, free: 5.586 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.4347, allocations: 0.6559 MB / 0.7045 GB, free: 5.258 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.4347, allocations: 0.5938 kB / 0.7045 GB, free: 5.258 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001797/0.4366, allocations: 0.7674 MB / 0.7053 GB, free: 4.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.4366, allocations: 6.406 kB / 0.7053 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.4366, allocations: 3.922 kB / 0.7053 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4366, allocations: 6.75 kB / 0.7053 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.4381, allocations: 247.4 kB / 0.7055 GB, free: 4.973 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.4395, allocations: 1.578 MB / 0.7071 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006401/0.4402, allocations: 94.75 kB / 0.7072 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-05/0.4402, allocations: 28.42 kB / 0.7072 GB, free: 3.395 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.0002605/0.4405, allocations: 204.5 kB / 0.7074 GB, free: 3.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.4406, allocations: 56.61 kB / 0.7074 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002538/0.4432, allocations: 0.9253 MB / 0.7083 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.4432, allocations: 7.219 kB / 0.7084 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.4432, allocations: 0 / 0.7084 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.4432, allocations: 4.656 kB / 0.7084 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.4462, allocations: 1.623 MB / 0.7099 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4462, allocations: 0 / 0.7099 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/0.4469, allocations: 150.4 kB / 0.7101 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004095/0.4473, allocations: 58.08 kB / 0.7101 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/0.4474, allocations: 19.12 kB / 0.7102 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.4486, allocations: 1.584 MB / 0.7117 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.4486, allocations: 0.8125 kB / 0.7117 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.4507, allocations: 0.8966 MB / 0.7126 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.451, allocations: 204.2 kB / 0.7128 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.101e-05/0.4511, allocations: 18.92 kB / 0.7128 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005586/0.4516, allocations: 54.06 kB / 0.7128 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.625e-05/0.4517, allocations: 46.56 kB / 0.7129 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-05/0.4518, allocations: 21.44 kB / 0.7129 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003243/0.4521, allocations: 291.2 kB / 0.7132 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.4521, allocations: 3.938 kB / 0.7132 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008065/0.4529, allocations: 232.6 kB / 0.7134 GB, free: 15.7 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.001121/0.4541, allocations: 0.5028 MB / 0.7139 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002703/0.4568, allocations: 0.8062 MB / 0.7147 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4568, allocations: 1.188 kB / 0.7147 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009959/0.4578, allocations: 498.6 kB / 0.7152 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.4583, allocations: 74.78 kB / 0.7152 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.4604, allocations: 1.258 MB / 0.7165 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.4609, allocations: 0.8803 MB / 0.7173 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002932/0.4612, allocations: 76.08 kB / 0.7174 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.4612, allocations: 0 / 0.7174 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of Templates: time 0.01533/0.4765, allocations: 12.19 MB / 0.7293 GB, free: 8.129 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)