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: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",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.7005/0.7005, allocations: 141.8 MB / 149.1 MB, free: 1.625 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.001102/0.001102, allocations: 189.2 kB / 181.9 MB, free: 1.004 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.216/1.216, allocations: 221.4 MB / 436 MB, free: 5.707 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.0009482/0.0009481, allocations: 92.62 kB / 0.507 GB, free: 2.391 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001648/0.001648, allocations: 286 kB / 0.5884 GB, free: 47.36 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.312/0.3137, allocations: 89.63 MB / 0.676 GB, free: 59.77 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.4429, allocations: 82.77 MB / 0.7568 GB, free: 0.7031 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3863/0.8292, allocations: 123.2 MB / 0.8771 GB, free: 26.43 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/0.8295, allocations: 81.3 kB / 0.8771 GB, free: 26.43 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: 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.06352/0.893, allocations: 22.69 MB / 0.8993 GB, free: 24.16 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 6.727e-05/0.8931, allocations: 9.453 kB / 0.8993 GB, free: 24.16 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003157/0.8962, allocations: 489.8 kB / 0.8998 GB, free: 24.11 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009314/0.8972, allocations: 448.3 kB / 0.9002 GB, free: 23.85 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.8973, allocations: 106.7 kB / 0.9003 GB, free: 23.75 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.8975, allocations: 32.89 kB / 0.9003 GB, free: 23.75 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001264/0.8988, allocations: 0.671 MB / 0.901 GB, free: 23.75 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.8998, allocations: 0.6136 MB / 0.9016 GB, free: 23.67 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.8999, allocations: 3.938 kB / 0.9016 GB, free: 23.66 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.367e-05/0.8999, allocations: 3.938 kB / 0.9016 GB, free: 23.66 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.9, allocations: 7.75 kB / 0.9016 GB, free: 23.66 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004322/0.9043, allocations: 2.298 MB / 0.9039 GB, free: 23.07 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.9061, allocations: 0.7897 MB / 0.9046 GB, free: 23.03 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/0.9067, allocations: 349 kB / 0.905 GB, free: 23.02 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001463/0.9082, allocations: 1.765 MB / 0.9067 GB, free: 21.05 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006557/0.9088, allocations: 425.7 kB / 0.9071 GB, free: 21 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=58): time 3.387e-06/0.9088, allocations: 7.922 kB / 0.9071 GB, free: 20.99 MB / 0.5419 GB Notification: Performance of matching and sorting (n=58): time 0.01658/0.9254, allocations: 2.269 MB / 0.9093 GB, free: 20.84 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.9255, allocations: 133.7 kB / 0.9094 GB, free: 20.69 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006108/0.9261, allocations: 376.4 kB / 0.9098 GB, free: 20.58 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.9263, allocations: 26.22 kB / 0.9098 GB, free: 20.55 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.9265, allocations: 206.5 kB / 0.91 GB, free: 20.41 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.9267, allocations: 185.8 kB / 0.9102 GB, free: 20.28 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-05/0.9268, allocations: 4 kB / 0.9102 GB, free: 20.28 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.9269, allocations: 358.9 kB / 0.9105 GB, free: 19.96 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/0.9274, allocations: 294.1 kB / 0.9108 GB, free: 19.96 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005449/0.928, allocations: 390.9 kB / 0.9112 GB, free: 19.88 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009214/0.9372, allocations: 1.37 MB / 0.9125 GB, free: 19.81 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.9372, allocations: 0 / 0.9125 GB, free: 19.81 MB / 0.5419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.01659/0.9538, allocations: 2.332 MB / 0.9148 GB, free: 19.66 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.9539, allocations: 3.781 kB / 0.9148 GB, free: 19.66 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.9539, allocations: 4.547 kB / 0.9148 GB, free: 19.66 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008479/0.9624, allocations: 0.7438 MB / 0.9155 GB, free: 19.63 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.9637, allocations: 178.7 kB / 0.9157 GB, free: 19.62 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006521/0.9702, allocations: 2.428 MB / 0.9181 GB, free: 18.29 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.9715, allocations: 128 kB / 0.9182 GB, free: 18.26 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.9718, allocations: 33.77 kB / 0.9182 GB, free: 18.26 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.0002699/0.972, allocations: 121.2 kB / 0.9184 GB, free: 18.14 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.9722, allocations: 47.3 kB / 0.9184 GB, free: 18.11 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/0.9844, allocations: 2.213 MB / 0.9206 GB, free: 17.39 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.9844, allocations: 7.75 kB / 0.9206 GB, free: 17.39 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.9844, allocations: 7.906 kB / 0.9206 GB, free: 17.38 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.9845, allocations: 7.922 kB / 0.9206 GB, free: 17.38 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.9972, allocations: 2.921 MB / 0.9234 GB, free: 16.29 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.9972, allocations: 3.906 kB / 0.9234 GB, free: 16.28 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009595/0.9982, allocations: 178.2 kB / 0.9236 GB, free: 16.24 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002504/1.001, allocations: 331.5 kB / 0.9239 GB, free: 16.11 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/1.001, allocations: 19.66 kB / 0.9239 GB, free: 16.1 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003424/1.004, allocations: 2.012 MB / 0.9259 GB, free: 14.64 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.004, allocations: 0 / 0.9259 GB, free: 14.64 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01133/1.016, allocations: 2.119 MB / 0.928 GB, free: 13.89 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01123/1.027, allocations: 2.531 MB / 0.9305 GB, free: 12.75 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/1.027, allocations: 237.4 kB / 0.9307 GB, free: 12.58 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/1.027, allocations: 3.906 kB / 0.9307 GB, free: 12.58 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008645/1.028, allocations: 86.3 kB / 0.9308 GB, free: 12.55 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/1.028, allocations: 40 kB / 0.9308 GB, free: 12.54 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/1.029, allocations: 31.2 kB / 0.9308 GB, free: 12.52 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0003317/1.029, allocations: 287.9 kB / 0.9311 GB, free: 12.43 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0017/1.031, allocations: 301.4 kB / 0.9314 GB, free: 12.36 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.001003/1.032, allocations: 454 kB / 0.9318 GB, free: 12.12 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.002649/1.034, allocations: 0.9073 MB / 0.9327 GB, free: 11.9 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.034, allocations: 0 / 0.9327 GB, free: 11.9 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/1.036, allocations: 0.5424 MB / 0.9332 GB, free: 11.74 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/1.036, allocations: 41.31 kB / 0.9333 GB, free: 11.72 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/1.038, allocations: 0.9054 MB / 0.9342 GB, free: 11.4 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006387/1.039, allocations: 0.9597 MB / 0.9351 GB, free: 10.59 MB / 0.5419 GB Notification: Performance of SimCode: time 2.91e-07/1.039, allocations: 7.844 kB / 0.9351 GB, free: 10.59 MB / 0.5419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)