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.001248/0.001248, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001061/0.001061, allocations: 192 kB / 16.13 MB, free: 6.66 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002073/0.002073, allocations: 287.1 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9252/0.9252, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 98.25 kB / 0.5945 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.1624, allocations: 86.98 MB / 0.6794 GB, free: 1.207 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004613/0.167, allocations: 3.731 MB / 0.6831 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004451/0.1715, allocations: 3.442 MB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002359/0.1717, allocations: 11.94 kB / 0.6864 GB, free: 10.01 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.0004729/0.1722, allocations: 107.2 kB / 0.6865 GB, free: 9.902 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008308/0.1731, allocations: 370.2 kB / 0.6869 GB, free: 9.539 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006208/0.1737, allocations: 319.2 kB / 0.6872 GB, free: 9.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005833/0.1743, allocations: 0.7058 MB / 0.6879 GB, free: 8.523 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.1746, allocations: 201.5 kB / 0.6881 GB, free: 8.324 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.1749, allocations: 266.8 kB / 0.6883 GB, free: 8.062 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003819/0.1753, allocations: 300.7 kB / 0.6886 GB, free: 7.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.799e-05/0.1754, allocations: 32 kB / 0.6887 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006876/0.1761, allocations: 479.4 kB / 0.6891 GB, free: 7.27 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.1762, allocations: 131.5 kB / 0.6892 GB, free: 7.141 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.1765, allocations: 294.3 kB / 0.6895 GB, free: 6.852 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009645/0.1774, allocations: 1.04 MB / 0.6905 GB, free: 5.809 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1775, allocations: 0 / 0.6905 GB, free: 5.809 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.1775, allocations: 0 / 0.6905 GB, free: 5.809 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1775, allocations: 4 kB / 0.6905 GB, free: 5.805 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.001897/0.1794, allocations: 0.9993 MB / 0.6915 GB, free: 4.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.1794, allocations: 8.031 kB / 0.6915 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003202/0.1826, allocations: 0.5697 MB / 0.6921 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.1839, allocations: 0.6235 MB / 0.6927 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.1841, allocations: 118.7 kB / 0.6928 GB, free: 3.379 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.931e-05/0.1842, allocations: 47.94 kB / 0.6928 GB, free: 3.332 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.1855, allocations: 0.6635 MB / 0.6935 GB, free: 2.648 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1855, allocations: 0 / 0.6935 GB, free: 2.648 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.585e-05/0.1856, allocations: 20 kB / 0.6935 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1856, allocations: 12 kB / 0.6935 GB, free: 2.617 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.1873, allocations: 0.6947 MB / 0.6942 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003166/0.1904, allocations: 1.777 MB / 0.6959 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002617/0.1931, allocations: 0.7985 MB / 0.6967 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007684/0.1939, allocations: 326 kB / 0.697 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001747/0.1956, allocations: 1.765 MB / 0.6988 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008639/0.1965, allocations: 393.2 kB / 0.6991 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.705e-06/0.1965, allocations: 4 kB / 0.6991 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53): time 0.002358/0.1989, allocations: 0.9316 MB / 0.7 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.1989, allocations: 107.2 kB / 0.7001 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.1994, allocations: 419.1 kB / 0.7005 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.1994, allocations: 37.7 kB / 0.7006 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.1996, allocations: 276.5 kB / 0.7008 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.1998, allocations: 181.5 kB / 0.701 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.2, allocations: 122.1 kB / 0.7011 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.2001, allocations: 358.8 kB / 0.7015 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006755/0.2008, allocations: 272.9 kB / 0.7017 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007709/0.2016, allocations: 408.5 kB / 0.7021 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.2031, allocations: 0.6593 MB / 0.7028 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.2031, allocations: 0 / 0.7028 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001742/0.2048, allocations: 0.7599 MB / 0.7035 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2049, allocations: 8 kB / 0.7035 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.2049, allocations: 4 kB / 0.7035 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2049, allocations: 4 kB / 0.7035 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.2065, allocations: 251.9 kB / 0.7038 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.2081, allocations: 1.475 MB / 0.7052 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006799/0.2088, allocations: 85.09 kB / 0.7053 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.879e-05/0.2089, allocations: 35.91 kB / 0.7053 GB, free: 5.773 MB / 0.4981 GB 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.0002817/0.2092, allocations: 217.6 kB / 0.7055 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2093, allocations: 51.38 kB / 0.7056 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002626/0.2119, allocations: 0.9346 MB / 0.7065 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.2119, allocations: 4 kB / 0.7065 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2119, allocations: 0 / 0.7065 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.2119, allocations: 7.984 kB / 0.7065 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003195/0.2151, allocations: 1.614 MB / 0.7081 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2152, allocations: 0 / 0.7081 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000773/0.2159, allocations: 147.8 kB / 0.7082 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005089/0.2165, allocations: 64.8 kB / 0.7083 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.2165, allocations: 23.92 kB / 0.7083 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.2181, allocations: 1.477 MB / 0.7097 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2181, allocations: 0 / 0.7097 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.2203, allocations: 0.898 MB / 0.7106 GB, free: 96 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002488/0.2206, allocations: 204.2 kB / 0.7108 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.2207, allocations: 11.98 kB / 0.7108 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.2213, allocations: 51.94 kB / 0.7109 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.2214, allocations: 48.5 kB / 0.7109 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.785e-05/0.2215, allocations: 19.98 kB / 0.7109 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003256/0.2218, allocations: 299 kB / 0.7112 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2218, allocations: 0 / 0.7112 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007966/0.2226, allocations: 235.6 kB / 0.7115 GB, free: 15.22 MB / 0.5137 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.001165/0.2238, allocations: 0.5009 MB / 0.7119 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002445/0.2262, allocations: 0.7651 MB / 0.7127 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.2262, allocations: 4 kB / 0.7127 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.2273, allocations: 0.4941 MB / 0.7132 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.2278, allocations: 66.69 kB / 0.7132 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.2302, allocations: 1.455 MB / 0.7147 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.2307, allocations: 0.8736 MB / 0.7155 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007068/0.2314, allocations: 148.5 kB / 0.7157 GB, free: 11 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.2316, allocations: 67.39 kB / 0.7157 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of SimCode: time 8.32e-07/0.2316, allocations: 4 kB / 0.7157 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of Templates: time 0.01513/0.2468, allocations: 8.407 MB / 0.7239 GB, free: 2.574 MB / 0.5137 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)