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.001573/0.001573, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001312/0.001312, allocations: 196 kB / 16.14 MB, free: 6.715 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002565/0.002565, allocations: 287.1 kB / 290.2 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 178.6 MB / 0.5068 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002761/0.002761, allocations: 93.78 kB / 0.6057 GB, free: 25.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1594, allocations: 89.15 MB / 0.6928 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005468/0.1649, allocations: 3.816 MB / 0.6965 GB, free: 1.008 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005354/0.1703, allocations: 3.467 MB / 0.6999 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.1707, allocations: 7.938 kB / 0.6999 GB, free: 13.52 MB / 0.4981 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.0005778/0.1713, allocations: 99.31 kB / 0.7 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.1724, allocations: 380.8 kB / 0.7004 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008086/0.1732, allocations: 322.5 kB / 0.7007 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008243/0.1741, allocations: 0.729 MB / 0.7014 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.1744, allocations: 197.6 kB / 0.7016 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/0.1747, allocations: 278.7 kB / 0.7018 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/0.1752, allocations: 306.6 kB / 0.7021 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.387e-05/0.1753, allocations: 32 kB / 0.7022 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008795/0.1762, allocations: 471.5 kB / 0.7026 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.1764, allocations: 143.3 kB / 0.7027 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003418/0.1767, allocations: 298.2 kB / 0.703 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.1783, allocations: 1.059 MB / 0.7041 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1783, allocations: 0 / 0.7041 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.72e-07/0.1783, allocations: 0 / 0.7041 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.1783, allocations: 4 kB / 0.7041 GB, free: 9.25 MB / 0.4981 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.002561/0.1809, allocations: 1.011 MB / 0.7051 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.1809, allocations: 15.91 kB / 0.7051 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003739/0.1847, allocations: 0.6205 MB / 0.7057 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.1862, allocations: 0.6351 MB / 0.7063 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.1863, allocations: 118.7 kB / 0.7064 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.293e-05/0.1864, allocations: 51.94 kB / 0.7065 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/0.1881, allocations: 0.7074 MB / 0.7071 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1882, allocations: 4 kB / 0.7072 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.347e-05/0.1882, allocations: 20 kB / 0.7072 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.1883, allocations: 12 kB / 0.7072 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002225/0.1905, allocations: 0.7805 MB / 0.7079 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.1942, allocations: 1.912 MB / 0.7098 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.1973, allocations: 0.8722 MB / 0.7107 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.1984, allocations: 386.3 kB / 0.711 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002137/0.2006, allocations: 1.765 MB / 0.7128 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.2018, allocations: 454.8 kB / 0.7132 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=58): time 2.475e-06/0.2018, allocations: 0 / 0.7132 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of matching and sorting (n=58): time 0.007498/0.2093, allocations: 1.675 MB / 0.7148 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.2094, allocations: 111.4 kB / 0.7149 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005747/0.21, allocations: 419.6 kB / 0.7153 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.958e-05/0.2101, allocations: 37.7 kB / 0.7154 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.2103, allocations: 272.6 kB / 0.7156 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.2105, allocations: 193.2 kB / 0.7158 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.2108, allocations: 122.2 kB / 0.7159 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001909/0.211, allocations: 370.8 kB / 0.7163 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009866/0.212, allocations: 317.1 kB / 0.7166 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.2131, allocations: 447.7 kB / 0.717 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002039/0.2151, allocations: 0.7284 MB / 0.7177 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2151, allocations: 7.938 kB / 0.7177 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0041/0.2192, allocations: 1.061 MB / 0.7188 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.2193, allocations: 8 kB / 0.7188 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2193, allocations: 0 / 0.7188 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007999/0.2201, allocations: 144.9 kB / 0.7189 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000871/0.221, allocations: 163.7 kB / 0.7191 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005227/0.2262, allocations: 1.98 MB / 0.721 GB, free: 6.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008473/0.2271, allocations: 107.5 kB / 0.7211 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.346e-05/0.2272, allocations: 31.97 kB / 0.7211 GB, free: 6.848 MB / 0.5137 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.0003526/0.2275, allocations: 203.8 kB / 0.7213 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.2277, allocations: 59.19 kB / 0.7214 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003789/0.2315, allocations: 1.089 MB / 0.7225 GB, free: 5.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.2315, allocations: 11.98 kB / 0.7225 GB, free: 5.469 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2315, allocations: 0 / 0.7225 GB, free: 5.469 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.2315, allocations: 11.86 kB / 0.7225 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/0.2361, allocations: 1.807 MB / 0.7242 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.2361, allocations: 0 / 0.7242 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008201/0.2369, allocations: 159.8 kB / 0.7244 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007617/0.2377, allocations: 120.7 kB / 0.7245 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.024e-05/0.2377, allocations: 23.98 kB / 0.7245 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003448/0.2412, allocations: 1.77 MB / 0.7263 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.2412, allocations: 0 / 0.7263 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003276/0.2445, allocations: 1.045 MB / 0.7273 GB, free: 316 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003382/0.2448, allocations: 220.1 kB / 0.7275 GB, free: 76 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.245, allocations: 16 kB / 0.7275 GB, free: 60 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007157/0.2457, allocations: 63.88 kB / 0.7276 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.2458, allocations: 44.48 kB / 0.7276 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-05/0.2459, allocations: 31.97 kB / 0.7276 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003917/0.2463, allocations: 295.1 kB / 0.7279 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2463, allocations: 0 / 0.7279 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008566/0.2472, allocations: 243.6 kB / 0.7282 GB, free: 15.4 MB / 0.5294 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.00171/0.2489, allocations: 0.4958 MB / 0.7286 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002572/0.2515, allocations: 0.8943 MB / 0.7295 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2515, allocations: 0 / 0.7295 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.2527, allocations: 0.5258 MB / 0.73 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/0.2533, allocations: 78.53 kB / 0.7301 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.256, allocations: 1.544 MB / 0.7316 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005515/0.2566, allocations: 0.889 MB / 0.7325 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007624/0.2574, allocations: 148.5 kB / 0.7326 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.2576, allocations: 75.39 kB / 0.7327 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of SimCode: time 2.41e-07/0.2577, allocations: 0 / 0.7327 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of Templates: time 0.01871/0.2764, allocations: 10.24 MB / 0.7427 GB, free: 0.6406 MB / 0.5294 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)