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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP",fmuType="me",version="2.0",platforms={"static"}) [: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.7077/0.7077, allocations: 141.8 MB / 149.1 MB, free: 9.043 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.001084/0.001084, allocations: 177.8 kB / 181.9 MB, free: 6.145 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.223/1.223, allocations: 221.3 MB / 436 MB, free: 14.16 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000923/0.0009231, allocations: 92.39 kB / 0.507 GB, free: 7.441 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001759/0.001759, allocations: 278.9 kB / 0.5884 GB, free: 4.242 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3313/0.3331, allocations: 89.63 MB / 0.676 GB, free: 165.9 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.4733, allocations: 82.77 MB / 0.7568 GB, free: 112.5 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.5972, allocations: 122.5 MB / 0.8765 GB, free: 5.793 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.5974, allocations: 80.88 kB / 0.8765 GB, free: 5.715 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: 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.2954/0.8929, allocations: 22.23 MB / 0.8983 GB, free: 117.6 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.8929, allocations: 8.781 kB / 0.8983 GB, free: 117.6 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003493/0.8964, allocations: 0.5547 MB / 0.8988 GB, free: 117.6 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.8975, allocations: 449.8 kB / 0.8992 GB, free: 117.3 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.8976, allocations: 102.1 kB / 0.8993 GB, free: 117.2 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.8978, allocations: 26.16 kB / 0.8994 GB, free: 117.2 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001399/0.8992, allocations: 0.6825 MB / 0.9 GB, free: 117.2 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.9004, allocations: 0.6025 MB / 0.9006 GB, free: 117.1 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.9004, allocations: 3.906 kB / 0.9006 GB, free: 117.1 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.131e-05/0.9005, allocations: 0.7188 kB / 0.9006 GB, free: 117.1 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.9005, allocations: 11.31 kB / 0.9006 GB, free: 117.1 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00458/0.9051, allocations: 2.123 MB / 0.9027 GB, free: 116.3 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.9072, allocations: 0.7842 MB / 0.9035 GB, free: 116.2 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006365/0.9078, allocations: 333.3 kB / 0.9038 GB, free: 116.1 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001514/0.9094, allocations: 1.764 MB / 0.9055 GB, free: 114.1 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006549/0.91, allocations: 404.8 kB / 0.9059 GB, free: 114 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=57): time 3.326e-06/0.91, allocations: 0 / 0.9059 GB, free: 114 MB / 0.5575 GB Notification: Performance of matching and sorting (n=57): time 0.0123/0.9224, allocations: 1.954 MB / 0.9078 GB, free: 113.2 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.9224, allocations: 138.8 kB / 0.9079 GB, free: 113 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000692/0.9231, allocations: 390 kB / 0.9083 GB, free: 112.8 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 8.439e-05/0.9232, allocations: 26.52 kB / 0.9083 GB, free: 112.7 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.9234, allocations: 203 kB / 0.9085 GB, free: 112.6 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.9236, allocations: 184 kB / 0.9087 GB, free: 112.4 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.9236, allocations: 0.75 kB / 0.9087 GB, free: 112.4 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 9.313e-05/0.9237, allocations: 365.9 kB / 0.9091 GB, free: 112 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005133/0.9242, allocations: 280.5 kB / 0.9093 GB, free: 111.9 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005809/0.9248, allocations: 383.8 kB / 0.9097 GB, free: 111.7 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009092/0.9339, allocations: 1.333 MB / 0.911 GB, free: 110.7 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.934, allocations: 0 / 0.911 GB, free: 110.7 MB / 0.5575 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.01154/0.9455, allocations: 2.03 MB / 0.913 GB, free: 108.7 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.9456, allocations: 7.938 kB / 0.913 GB, free: 108.7 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.9456, allocations: 4.125 kB / 0.913 GB, free: 108.7 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007173/0.9463, allocations: 156.7 kB / 0.9131 GB, free: 108.5 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009977/0.9473, allocations: 183.7 kB / 0.9133 GB, free: 108.3 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003345/0.9507, allocations: 1.905 MB / 0.9152 GB, free: 106.3 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.9519, allocations: 135.5 kB / 0.9153 GB, free: 106.2 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.952, allocations: 27.97 kB / 0.9153 GB, free: 106.1 MB / 0.5575 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.0001816/0.9522, allocations: 119.1 kB / 0.9154 GB, free: 106 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.9523, allocations: 55.34 kB / 0.9155 GB, free: 106 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/0.9641, allocations: 2.172 MB / 0.9176 GB, free: 103.8 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.9641, allocations: 4 kB / 0.9176 GB, free: 103.8 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.9641, allocations: 0 / 0.9176 GB, free: 103.8 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.9642, allocations: 7.984 kB / 0.9176 GB, free: 103.8 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/0.9769, allocations: 2.888 MB / 0.9204 GB, free: 100.8 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.9769, allocations: 0 / 0.9204 GB, free: 100.8 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009277/0.9778, allocations: 175.8 kB / 0.9206 GB, free: 100.7 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005625/0.9784, allocations: 148.7 kB / 0.9208 GB, free: 100.5 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.413e-05/0.9785, allocations: 11.97 kB / 0.9208 GB, free: 100.5 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003173/0.9817, allocations: 1.933 MB / 0.9227 GB, free: 98.46 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.9817, allocations: 4 kB / 0.9227 GB, free: 98.45 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01139/0.9931, allocations: 2.101 MB / 0.9247 GB, free: 96.33 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01132/1.004, allocations: 2.5 MB / 0.9271 GB, free: 93.8 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004342/1.005, allocations: 236.1 kB / 0.9274 GB, free: 93.55 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/1.005, allocations: 4 kB / 0.9274 GB, free: 93.55 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000914/1.006, allocations: 99.91 kB / 0.9275 GB, free: 93.45 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/1.006, allocations: 36.59 kB / 0.9275 GB, free: 93.42 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/1.006, allocations: 27.97 kB / 0.9275 GB, free: 93.39 MB / 0.5575 GB Notification: Performance of sort global known variables: time 0.0003409/1.007, allocations: 307.2 kB / 0.9278 GB, free: 93.09 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.001669/1.008, allocations: 291.4 kB / 0.9281 GB, free: 92.81 MB / 0.5575 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.001065/1.009, allocations: 463.2 kB / 0.9285 GB, free: 92.45 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0014/1.011, allocations: 0.8045 MB / 0.9293 GB, free: 91.63 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/1.011, allocations: 0 / 0.9293 GB, free: 91.63 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006995/1.011, allocations: 496.1 kB / 0.9298 GB, free: 91.14 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/1.012, allocations: 49.91 kB / 0.9299 GB, free: 91.09 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/1.014, allocations: 0.8897 MB / 0.9307 GB, free: 90.17 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006588/1.015, allocations: 0.97 MB / 0.9317 GB, free: 89.18 MB / 0.5575 GB Notification: Performance of SimCode: time 4.11e-07/1.015, allocations: 0 / 0.9317 GB, free: 89.18 MB / 0.5575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimpleMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)