Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",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.6818/0.6818, allocations: 141.8 MB / 149.1 MB, free: 13.23 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: 182.1 kB / 181.9 MB, free: 9.898 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.187/1.187, allocations: 221.3 MB / 436 MB, free: 2.387 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.0009774/0.0009774, allocations: 104.1 kB / 0.507 GB, free: 11.1 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001725/0.001725, allocations: 260.9 kB / 0.5884 GB, free: 7.949 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1612/0.1629, allocations: 89.65 MB / 0.676 GB, free: 14.21 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.5886, allocations: 82.77 MB / 0.7568 GB, free: 139.1 MB / 0.5577 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.7039, allocations: 122.6 MB / 0.8766 GB, free: 16.33 MB / 0.5577 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.7042, allocations: 88.5 kB / 0.8766 GB, free: 16.25 MB / 0.5577 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.05975/0.764, allocations: 22.25 MB / 0.8984 GB, free: 9.871 MB / 0.5733 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.7641, allocations: 12 kB / 0.8984 GB, free: 9.859 MB / 0.5733 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002802/0.7669, allocations: 498.7 kB / 0.8989 GB, free: 9.371 MB / 0.5733 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.7676, allocations: 439.2 kB / 0.8993 GB, free: 8.898 MB / 0.5733 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.7677, allocations: 102.1 kB / 0.8994 GB, free: 8.781 MB / 0.5733 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.7679, allocations: 32 kB / 0.8994 GB, free: 8.75 MB / 0.5733 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00116/0.769, allocations: 0.6462 MB / 0.9 GB, free: 8.102 MB / 0.5733 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009588/0.77, allocations: 0.5758 MB / 0.9006 GB, free: 7.508 MB / 0.5733 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.77, allocations: 0 / 0.9006 GB, free: 7.508 MB / 0.5733 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.195e-05/0.7701, allocations: 4 kB / 0.9006 GB, free: 7.504 MB / 0.5733 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.7701, allocations: 8 kB / 0.9006 GB, free: 7.496 MB / 0.5733 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004088/0.7742, allocations: 2.096 MB / 0.9026 GB, free: 5.32 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.7763, allocations: 0.7615 MB / 0.9034 GB, free: 4.547 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/0.7768, allocations: 322 kB / 0.9037 GB, free: 4.23 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001799/0.7786, allocations: 1.757 MB / 0.9054 GB, free: 2.086 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005737/0.7792, allocations: 386.5 kB / 0.9058 GB, free: 1.703 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=55): time 3.486e-06/0.7792, allocations: 0 / 0.9058 GB, free: 1.703 MB / 0.5733 GB Notification: Performance of matching and sorting (n=55): time 0.009812/0.789, allocations: 1.69 MB / 0.9074 GB, free: 4 kB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1753/0.9643, allocations: 136.1 kB / 0.9076 GB, free: 177.7 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.9648, allocations: 387.4 kB / 0.9079 GB, free: 177.6 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.965, allocations: 28.98 kB / 0.908 GB, free: 177.5 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.9651, allocations: 207 kB / 0.9082 GB, free: 177.4 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.9652, allocations: 179.5 kB / 0.9083 GB, free: 177.4 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.9652, allocations: 0 / 0.9083 GB, free: 177.4 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 6.608e-05/0.9653, allocations: 357.4 kB / 0.9087 GB, free: 177.1 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.9657, allocations: 265.3 kB / 0.9089 GB, free: 177.1 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004042/0.9661, allocations: 370.5 kB / 0.9093 GB, free: 177 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008502/0.9746, allocations: 1.331 MB / 0.9106 GB, free: 177 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.9746, allocations: 0 / 0.9106 GB, free: 177 MB / 0.5733 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.009036/0.9837, allocations: 1.763 MB / 0.9123 GB, free: 176.9 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.9837, allocations: 6.188 kB / 0.9123 GB, free: 176.9 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.9837, allocations: 1.531 kB / 0.9123 GB, free: 176.9 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.9837, allocations: 4.344 kB / 0.9123 GB, free: 176.9 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004692/0.9884, allocations: 0.5165 MB / 0.9128 GB, free: 176.9 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00202/0.9905, allocations: 1.591 MB / 0.9144 GB, free: 175.6 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008816/0.9914, allocations: 124 kB / 0.9145 GB, free: 175.6 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.556e-05/0.9915, allocations: 30.38 kB / 0.9145 GB, free: 175.6 MB / 0.5733 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 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001446/0.9916, allocations: 116.2 kB / 0.9146 GB, free: 175.5 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.371e-05/0.9917, allocations: 54.56 kB / 0.9147 GB, free: 175.5 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/1.003, allocations: 2.004 MB / 0.9166 GB, free: 175.4 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/1.003, allocations: 10.5 kB / 0.9166 GB, free: 175.4 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/1.003, allocations: 0 / 0.9166 GB, free: 175.4 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/1.003, allocations: 5.203 kB / 0.9167 GB, free: 175.4 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01155/1.014, allocations: 2.699 MB / 0.9193 GB, free: 175.1 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/1.014, allocations: 1.859 kB / 0.9193 GB, free: 175.1 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009462/1.015, allocations: 172.2 kB / 0.9195 GB, free: 175.1 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000993/1.016, allocations: 113.9 kB / 0.9196 GB, free: 175.1 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-05/1.016, allocations: 20.05 kB / 0.9196 GB, free: 175.1 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/1.018, allocations: 1.574 MB / 0.9211 GB, free: 173.8 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.018, allocations: 4.75 kB / 0.9211 GB, free: 173.8 MB / 0.5733 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01027/1.028, allocations: 1.939 MB / 0.923 GB, free: 173.6 MB / 0.5733 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01035/1.039, allocations: 2.343 MB / 0.9253 GB, free: 173 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/1.039, allocations: 231.6 kB / 0.9255 GB, free: 172.9 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/1.039, allocations: 2.109 kB / 0.9255 GB, free: 172.9 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007916/1.04, allocations: 81.77 kB / 0.9256 GB, free: 172.9 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/1.04, allocations: 40.72 kB / 0.9256 GB, free: 172.9 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.357e-05/1.04, allocations: 28.02 kB / 0.9257 GB, free: 172.9 MB / 0.5733 GB Notification: Performance of sort global known variables: time 0.0003289/1.04, allocations: 292.1 kB / 0.9259 GB, free: 172.8 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.001429/1.042, allocations: 293.1 kB / 0.9262 GB, free: 172.8 MB / 0.5733 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.0008839/1.043, allocations: 462.1 kB / 0.9267 GB, free: 172.7 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.005834/1.049, allocations: 1.075 MB / 0.9277 GB, free: 172.7 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/1.049, allocations: 0 / 0.9277 GB, free: 172.7 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.0008412/1.049, allocations: 480.7 kB / 0.9282 GB, free: 172.6 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/1.05, allocations: 38.42 kB / 0.9282 GB, free: 172.6 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/1.052, allocations: 0.8545 MB / 0.929 GB, free: 172.4 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007135/1.052, allocations: 0.9696 MB / 0.93 GB, free: 171.6 MB / 0.5733 GB Notification: Performance of SimCode: time 9.91e-07/1.052, allocations: 1.375 kB / 0.93 GB, free: 171.6 MB / 0.5733 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)