Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.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.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") [: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.7812/0.7812, allocations: 141.8 MB / 149.1 MB, free: 1.531 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 189.2 kB / 181.9 MB, free: 0.9297 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.421/1.421, allocations: 221.4 MB / 436 MB, free: 5.801 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.001082/0.001082, allocations: 92.66 kB / 0.507 GB, free: 2.457 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001748/0.001748, allocations: 267.6 kB / 0.5884 GB, free: 47.46 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 7.794e-06/7.834e-06, allocations: 0.9688 kB / 0.6759 GB, free: 59.67 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1902, allocations: 82.78 MB / 0.7567 GB, free: 0.9141 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.522/0.7122, allocations: 123.2 MB / 0.877 GB, free: 26.8 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.7125, allocations: 77.17 kB / 0.8771 GB, free: 26.8 MB / 0.5419 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.06045/0.773, allocations: 21.76 MB / 0.8983 GB, free: 25.14 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 3.864e-05/0.7731, allocations: 7.688 kB / 0.8983 GB, free: 25.14 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002173/0.7752, allocations: 0.9115 MB / 0.8992 GB, free: 24.53 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.7753, allocations: 7.812 kB / 0.8992 GB, free: 24.53 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0027/0.778, allocations: 0.4904 MB / 0.8997 GB, free: 24.47 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00074/0.7787, allocations: 442.2 kB / 0.9001 GB, free: 24.21 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.7789, allocations: 103.4 kB / 0.9002 GB, free: 24.12 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-05/0.779, allocations: 26.72 kB / 0.9002 GB, free: 24.12 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001135/0.7801, allocations: 0.6788 MB / 0.9009 GB, free: 24.12 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009333/0.781, allocations: 0.6135 MB / 0.9015 GB, free: 24.03 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.7811, allocations: 3.875 kB / 0.9015 GB, free: 24.03 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.545e-05/0.7811, allocations: 0 / 0.9015 GB, free: 24.03 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.7812, allocations: 11.62 kB / 0.9015 GB, free: 24.03 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004222/0.7854, allocations: 2.286 MB / 0.9037 GB, free: 23.45 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.7872, allocations: 0.787 MB / 0.9045 GB, free: 23.41 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000521/0.7878, allocations: 361.2 kB / 0.9049 GB, free: 23.39 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001546/0.7893, allocations: 1.765 MB / 0.9066 GB, free: 21.42 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006658/0.79, allocations: 421.5 kB / 0.907 GB, free: 21.37 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=58): time 2.735e-06/0.79, allocations: 0 / 0.907 GB, free: 21.37 MB / 0.5419 GB Notification: Performance of matching and sorting (n=58): time 0.01659/0.8066, allocations: 2.271 MB / 0.9092 GB, free: 21.22 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.8067, allocations: 136.9 kB / 0.9093 GB, free: 21.06 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.8073, allocations: 375.3 kB / 0.9097 GB, free: 20.95 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.8074, allocations: 25.7 kB / 0.9097 GB, free: 20.92 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.8076, allocations: 208.7 kB / 0.9099 GB, free: 20.78 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.8078, allocations: 186.7 kB / 0.9101 GB, free: 20.65 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/0.8078, allocations: 0 / 0.9101 GB, free: 20.65 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.8079, allocations: 359 kB / 0.9104 GB, free: 20.34 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004446/0.8084, allocations: 295.4 kB / 0.9107 GB, free: 20.34 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.8089, allocations: 400 kB / 0.9111 GB, free: 20.24 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009433/0.8183, allocations: 1.36 MB / 0.9124 GB, free: 20.18 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.8184, allocations: 0 / 0.9124 GB, free: 20.18 MB / 0.5419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.01655/0.8349, allocations: 2.338 MB / 0.9147 GB, free: 20.02 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.835, allocations: 3.5 kB / 0.9147 GB, free: 20.02 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.835, allocations: 3.5 kB / 0.9147 GB, free: 20.02 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008517/0.8435, allocations: 0.7386 MB / 0.9154 GB, free: 20 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.8449, allocations: 178.2 kB / 0.9156 GB, free: 19.99 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006603/0.8515, allocations: 2.432 MB / 0.918 GB, free: 18.66 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.8529, allocations: 123.7 kB / 0.9181 GB, free: 18.63 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.853, allocations: 44.53 kB / 0.9181 GB, free: 18.62 MB / 0.5419 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {3} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.8532, allocations: 113.3 kB / 0.9183 GB, free: 18.51 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.8533, allocations: 46.16 kB / 0.9183 GB, free: 18.49 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/0.8651, allocations: 2.211 MB / 0.9205 GB, free: 17.79 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.8652, allocations: 7.625 kB / 0.9205 GB, free: 17.79 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.8652, allocations: 7.844 kB / 0.9205 GB, free: 17.79 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.8652, allocations: 3.984 kB / 0.9205 GB, free: 17.78 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.8778, allocations: 2.932 MB / 0.9233 GB, free: 16.68 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.8778, allocations: 7.891 kB / 0.9233 GB, free: 16.67 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009531/0.8788, allocations: 175.4 kB / 0.9235 GB, free: 16.63 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002399/0.8812, allocations: 334.3 kB / 0.9238 GB, free: 16.5 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.481e-05/0.8813, allocations: 15.31 kB / 0.9238 GB, free: 16.49 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/0.8847, allocations: 2.008 MB / 0.9258 GB, free: 15.04 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.8847, allocations: 4 kB / 0.9258 GB, free: 15.04 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01141/0.8961, allocations: 2.126 MB / 0.9279 GB, free: 14.28 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004497/0.8966, allocations: 236.8 kB / 0.9281 GB, free: 14.11 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.8967, allocations: 4 kB / 0.9281 GB, free: 14.11 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008026/0.8975, allocations: 93.58 kB / 0.9282 GB, free: 14.07 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.8977, allocations: 42.8 kB / 0.9282 GB, free: 14.05 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.459e-05/0.8978, allocations: 23.02 kB / 0.9283 GB, free: 14.05 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0003917/0.8981, allocations: 293.8 kB / 0.9285 GB, free: 13.95 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.001212/0.8994, allocations: 272.1 kB / 0.9288 GB, free: 13.89 MB / 0.5419 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 (69): * Single equations (assignments): 67 * 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 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/0.9005, allocations: 458.6 kB / 0.9292 GB, free: 13.66 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.002606/0.9031, allocations: 0.9085 MB / 0.9301 GB, free: 13.43 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.9031, allocations: 0 / 0.9301 GB, free: 13.43 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.9043, allocations: 0.5394 MB / 0.9307 GB, free: 13.27 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.9047, allocations: 33.48 kB / 0.9307 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.9066, allocations: 0.9087 MB / 0.9316 GB, free: 12.93 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006049/0.9072, allocations: 0.9673 MB / 0.9325 GB, free: 12.12 MB / 0.5419 GB Notification: Performance of SimCode: time 4.11e-07/0.9072, allocations: 3.938 kB / 0.9325 GB, free: 12.12 MB / 0.5419 GB Notification: Performance of Templates: time 0.01767/0.9249, allocations: 12.54 MB / 0.9448 GB, free: 5.77 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)