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.001839/0.001839, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001367/0.001367, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.444/1.444, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002604/0.002604, allocations: 291 kB / 290.4 MB, free: 2.047 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.151/1.151, allocations: 178.6 MB / 0.507 GB, free: 4.711 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00279/0.002791, allocations: 103.6 kB / 0.6059 GB, free: 25.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1619, allocations: 89.15 MB / 0.693 GB, free: 4.684 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005374/0.1673, allocations: 3.822 MB / 0.6967 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004975/0.1723, allocations: 3.402 MB / 0.7 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.1726, allocations: 7.938 kB / 0.7 GB, free: 13.44 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.0004697/0.173, allocations: 107.2 kB / 0.7001 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009859/0.174, allocations: 402.2 kB / 0.7005 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006837/0.1747, allocations: 328.2 kB / 0.7008 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008027/0.1755, allocations: 0.7798 MB / 0.7016 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.1758, allocations: 190 kB / 0.7018 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003939/0.1762, allocations: 318.8 kB / 0.7021 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004593/0.1767, allocations: 338.6 kB / 0.7024 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.675e-05/0.1768, allocations: 64 kB / 0.7025 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007876/0.1776, allocations: 0.4994 MB / 0.703 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001836/0.1778, allocations: 171.5 kB / 0.7031 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003737/0.1782, allocations: 338.2 kB / 0.7034 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.1795, allocations: 1.083 MB / 0.7045 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1795, allocations: 0 / 0.7045 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.072e-06/0.1795, allocations: 4 kB / 0.7045 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.1795, allocations: 4 kB / 0.7045 GB, free: 8.855 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.002023/0.1815, allocations: 1.019 MB / 0.7055 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.1816, allocations: 8.031 kB / 0.7055 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003703/0.1853, allocations: 0.6205 MB / 0.7061 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.1867, allocations: 0.6273 MB / 0.7067 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.1868, allocations: 126.7 kB / 0.7068 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.507e-05/0.1869, allocations: 51.88 kB / 0.7069 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.1886, allocations: 0.7151 MB / 0.7076 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.1887, allocations: 0 / 0.7076 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-05/0.1887, allocations: 20 kB / 0.7076 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.1888, allocations: 15.98 kB / 0.7076 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002175/0.1909, allocations: 0.7767 MB / 0.7084 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003575/0.1945, allocations: 1.908 MB / 0.7102 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003035/0.1976, allocations: 0.8761 MB / 0.7111 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.1986, allocations: 378.3 kB / 0.7115 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002089/0.2007, allocations: 1.773 MB / 0.7132 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.202, allocations: 462.8 kB / 0.7136 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=58): time 2.445e-06/0.202, allocations: 3.938 kB / 0.7136 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=58): time 0.007428/0.2094, allocations: 1.659 MB / 0.7153 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.331e-05/0.2095, allocations: 119.3 kB / 0.7154 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005502/0.2101, allocations: 427.6 kB / 0.7158 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.921e-05/0.2102, allocations: 33.7 kB / 0.7158 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.2104, allocations: 272.6 kB / 0.7161 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.2106, allocations: 193.2 kB / 0.7163 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.2109, allocations: 130.2 kB / 0.7164 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001889/0.2111, allocations: 358.8 kB / 0.7167 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009711/0.212, allocations: 325.1 kB / 0.717 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.2132, allocations: 447.8 kB / 0.7175 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.2152, allocations: 0.7245 MB / 0.7182 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2152, allocations: 0 / 0.7182 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003997/0.2192, allocations: 1.065 MB / 0.7192 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.2192, allocations: 11.98 kB / 0.7192 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.2192, allocations: 4.281 kB / 0.7192 GB, free: 9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007761/0.22, allocations: 140.7 kB / 0.7194 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009074/0.2209, allocations: 163.7 kB / 0.7195 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005375/0.2263, allocations: 2.106 MB / 0.7216 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/0.2272, allocations: 111.4 kB / 0.7217 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.372e-05/0.2272, allocations: 31.97 kB / 0.7217 GB, free: 6.305 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.0003498/0.2276, allocations: 207.3 kB / 0.7219 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.2277, allocations: 51.34 kB / 0.722 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003734/0.2315, allocations: 1.101 MB / 0.723 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.2315, allocations: 11.94 kB / 0.723 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.2315, allocations: 0 / 0.723 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.2315, allocations: 7.984 kB / 0.7231 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004432/0.236, allocations: 1.815 MB / 0.7248 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.236, allocations: 0 / 0.7248 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008304/0.2368, allocations: 143.8 kB / 0.725 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006696/0.2375, allocations: 116.7 kB / 0.7251 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.129e-05/0.2376, allocations: 19.98 kB / 0.7251 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004353/0.2419, allocations: 1.97 MB / 0.727 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2419, allocations: 0 / 0.727 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003279/0.2452, allocations: 1.045 MB / 0.728 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.2455, allocations: 216.1 kB / 0.7282 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.2457, allocations: 16 kB / 0.7283 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006772/0.2463, allocations: 59.94 kB / 0.7283 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.2465, allocations: 48.58 kB / 0.7284 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/0.2466, allocations: 23.98 kB / 0.7284 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003608/0.2469, allocations: 295.1 kB / 0.7287 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2469, allocations: 4 kB / 0.7287 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007903/0.2477, allocations: 243.5 kB / 0.7289 GB, free: 14.67 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.001671/0.2494, allocations: 0.5145 MB / 0.7294 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002681/0.2521, allocations: 0.945 MB / 0.7303 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.2521, allocations: 0 / 0.7303 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.2537, allocations: 0.5804 MB / 0.7309 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.2542, allocations: 58.61 kB / 0.7309 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.2568, allocations: 1.545 MB / 0.7325 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.2574, allocations: 0.8812 MB / 0.7333 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007445/0.2581, allocations: 152.4 kB / 0.7335 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.2584, allocations: 75.38 kB / 0.7335 GB, free: 9.977 MB / 0.5294 GB Notification: Performance of SimCode: time 2.81e-07/0.2584, allocations: 3.938 kB / 0.7335 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of Templates: time 0.01871/0.2771, allocations: 10.45 MB / 0.7437 GB, free: 15.59 MB / 0.545 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)