Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.837/0.837, allocations: 141.8 MB / 149.1 MB, free: 13.05 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 186.4 kB / 181.9 MB, free: 9.738 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.681/1.681, allocations: 221.4 MB / 436 MB, free: 2.207 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 84.77 kB / 0.507 GB, free: 10.93 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001887/0.001887, allocations: 276.2 kB / 0.5884 GB, free: 7.758 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 6.321e-06/6.351e-06, allocations: 0 / 0.6759 GB, free: 14.12 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.495/0.4951, allocations: 82.76 MB / 0.7567 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.6419, allocations: 122.5 MB / 0.8764 GB, free: 16.25 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.6422, allocations: 89.5 kB / 0.8765 GB, free: 16.17 MB / 0.5575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd: time 0.05713/0.6994, allocations: 21.35 MB / 0.8973 GB, free: 10.75 MB / 0.5732 GB Notification: Performance of Transformations before backend: time 4.014e-05/0.6995, allocations: 20 kB / 0.8973 GB, free: 10.73 MB / 0.5732 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001891/0.7014, allocations: 0.8825 MB / 0.8982 GB, free: 9.797 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.7014, allocations: 8.031 kB / 0.8982 GB, free: 9.789 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003127/0.7045, allocations: 0.5533 MB / 0.8987 GB, free: 9.234 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008329/0.7054, allocations: 444.9 kB / 0.8992 GB, free: 8.758 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.7055, allocations: 102.1 kB / 0.8993 GB, free: 8.641 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.472e-05/0.7056, allocations: 31.98 kB / 0.8993 GB, free: 8.609 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001222/0.7068, allocations: 0.6735 MB / 0.8999 GB, free: 7.938 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.7079, allocations: 0.6031 MB / 0.9005 GB, free: 7.316 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.7079, allocations: 3.906 kB / 0.9005 GB, free: 7.312 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.247e-05/0.708, allocations: 4 kB / 0.9005 GB, free: 7.309 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.708, allocations: 12 kB / 0.9005 GB, free: 7.297 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004245/0.7122, allocations: 2.121 MB / 0.9026 GB, free: 5.098 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.7143, allocations: 0.782 MB / 0.9034 GB, free: 4.305 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005618/0.7148, allocations: 326.3 kB / 0.9037 GB, free: 3.984 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00201/0.7169, allocations: 1.773 MB / 0.9054 GB, free: 1.82 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006402/0.7175, allocations: 405.1 kB / 0.9058 GB, free: 1.414 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=57): time 3.397e-06/0.7175, allocations: 0 / 0.9058 GB, free: 1.414 MB / 0.5732 GB Notification: Performance of matching and sorting (n=57): time 0.2695/0.987, allocations: 1.951 MB / 0.9077 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.9871, allocations: 136.9 kB / 0.9078 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.9877, allocations: 389.4 kB / 0.9082 GB, free: 177.4 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.9878, allocations: 29.55 kB / 0.9082 GB, free: 177.4 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.988, allocations: 205 kB / 0.9084 GB, free: 177.3 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.9881, allocations: 187.5 kB / 0.9086 GB, free: 177.2 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.9882, allocations: 0 / 0.9086 GB, free: 177.2 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 8.692e-05/0.9883, allocations: 358.7 kB / 0.909 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.9887, allocations: 282.9 kB / 0.9092 GB, free: 176.9 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000454/0.9892, allocations: 378.2 kB / 0.9096 GB, free: 176.8 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00865/0.9978, allocations: 1.337 MB / 0.9109 GB, free: 176.8 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.9979, allocations: 3.344 kB / 0.9109 GB, free: 176.8 MB / 0.5732 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.01162/1.01, allocations: 2.014 MB / 0.9129 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/1.01, allocations: 7.75 kB / 0.9129 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/1.01, allocations: 2.469 kB / 0.9129 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007734/1.01, allocations: 164.8 kB / 0.913 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/1.011, allocations: 180.5 kB / 0.9132 GB, free: 176.7 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00372/1.015, allocations: 1.897 MB / 0.9151 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/1.016, allocations: 137 kB / 0.9152 GB, free: 175.5 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/1.017, allocations: 37.09 kB / 0.9152 GB, free: 175.5 MB / 0.5732 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002194/1.017, allocations: 120.2 kB / 0.9153 GB, free: 175.4 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/1.017, allocations: 48.06 kB / 0.9154 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/1.03, allocations: 2.165 MB / 0.9175 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/1.03, allocations: 7.875 kB / 0.9175 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/1.03, allocations: 0 / 0.9175 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/1.03, allocations: 4.75 kB / 0.9175 GB, free: 175.3 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.043, allocations: 2.9 MB / 0.9203 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/1.043, allocations: 1.406 kB / 0.9203 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/1.045, allocations: 173 kB / 0.9205 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006391/1.045, allocations: 145.5 kB / 0.9207 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.128e-05/1.045, allocations: 15.75 kB / 0.9207 GB, free: 175 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004068/1.049, allocations: 1.934 MB / 0.9226 GB, free: 173.7 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.049, allocations: 1.797 kB / 0.9226 GB, free: 173.7 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0179/1.067, allocations: 2.105 MB / 0.9246 GB, free: 173.5 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007716/1.068, allocations: 235.1 kB / 0.9248 GB, free: 173.4 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/1.068, allocations: 4.391 kB / 0.9248 GB, free: 173.4 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/1.07, allocations: 95.03 kB / 0.9249 GB, free: 173.4 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/1.07, allocations: 48.53 kB / 0.925 GB, free: 173.4 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/1.07, allocations: 25.64 kB / 0.925 GB, free: 173.4 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0006521/1.071, allocations: 300.3 kB / 0.9253 GB, free: 173.3 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.001765/1.072, allocations: 273 kB / 0.9255 GB, free: 173.3 MB / 0.5732 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00143/1.074, allocations: 458.8 kB / 0.926 GB, free: 173.2 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.002261/1.076, allocations: 0.8034 MB / 0.9268 GB, free: 173.1 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/1.076, allocations: 1.094 kB / 0.9268 GB, free: 173.1 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.001126/1.077, allocations: 0.4957 MB / 0.9273 GB, free: 173 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005642/1.078, allocations: 44.12 kB / 0.9273 GB, free: 172.9 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/1.081, allocations: 0.8845 MB / 0.9282 GB, free: 172.7 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009663/1.082, allocations: 0.9737 MB / 0.9291 GB, free: 172 MB / 0.5732 GB Notification: Performance of SimCode: time 5.71e-07/1.082, allocations: 0 / 0.9291 GB, free: 172 MB / 0.5732 GB Notification: Performance of Templates: time 0.02147/1.103, allocations: 13.05 MB / 0.9419 GB, free: 171.3 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)