Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.conf.json 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/PhotoVoltaics 2.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",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/Complex 4.0.0+maint.om/package.mo): time 0.003233/0.003233, allocations: 185.1 kB / 7.459 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.122/1.122, allocations: 221.4 MB / 229.3 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009855/0.0009855, allocations: 107 kB / 280.1 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02342/0.02342, allocations: 5.303 MB / 336.2 MB, free: 9.281 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007686/0.007686, allocations: 2.303 MB / 390.4 MB, free: 74.74 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.08763/0.09535, allocations: 59.05 MB / 449.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.3053, allocations: 52.19 MB / 0.4899 GB, free: 43.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1001/0.4054, allocations: 95.57 MB / 0.5832 GB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.4057, allocations: 68.81 kB / 0.5833 GB, free: 15.06 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.09752/0.5032, allocations: 36.48 MB / 0.6189 GB, free: 10.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.5033, allocations: 13.5 kB / 0.619 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00182/0.5051, allocations: 314.3 kB / 0.6193 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.5064, allocations: 0.5899 MB / 0.6198 GB, free: 9.367 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.612e-05/0.5065, allocations: 36 kB / 0.6199 GB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.5067, allocations: 71.89 kB / 0.6199 GB, free: 9.262 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001928/0.5086, allocations: 0.9374 MB / 0.6208 GB, free: 8.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.5105, allocations: 0.9654 MB / 0.6218 GB, free: 7.301 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/0.5105, allocations: 3.938 kB / 0.6218 GB, free: 7.297 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-05/0.5106, allocations: 7.984 kB / 0.6218 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.5106, allocations: 28 kB / 0.6218 GB, free: 7.262 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006867/0.5175, allocations: 4.36 MB / 0.6261 GB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.5187, allocations: 0.6916 MB / 0.6268 GB, free: 1.992 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005308/0.5192, allocations: 328.5 kB / 0.6271 GB, free: 1.668 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.5194, allocations: 178.8 kB / 0.6272 GB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.52, allocations: 0.5172 MB / 0.6277 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.086e-06/0.5201, allocations: 0 / 0.6277 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.1276/0.6476, allocations: 1.036 MB / 0.6288 GB, free: 140.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.6478, allocations: 312.7 kB / 0.6291 GB, free: 139.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007248/0.6485, allocations: 496.6 kB / 0.6295 GB, free: 139.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.6487, allocations: 37.11 kB / 0.6296 GB, free: 139.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.6489, allocations: 428.3 kB / 0.63 GB, free: 139.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.6491, allocations: 244.7 kB / 0.6302 GB, free: 139.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.378e-05/0.6491, allocations: 3.906 kB / 0.6302 GB, free: 139.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.431e-05/0.6492, allocations: 386.8 kB / 0.6306 GB, free: 139.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/0.6497, allocations: 291.6 kB / 0.6309 GB, free: 139.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/0.6502, allocations: 0.5257 MB / 0.6314 GB, free: 139 MB / 410.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01372/0.6639, allocations: 2.536 MB / 0.6339 GB, free: 138.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.664, allocations: 0 / 0.6339 GB, free: 138.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002099/0.6661, allocations: 1.026 MB / 0.6349 GB, free: 138.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.6661, allocations: 3.25 kB / 0.6349 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.6661, allocations: 7.031 kB / 0.6349 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004751/0.6666, allocations: 103.8 kB / 0.635 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.6677, allocations: 254.9 kB / 0.6352 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.669, allocations: 1.5 MB / 0.6367 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008684/0.6698, allocations: 91.95 kB / 0.6368 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-05/0.6699, allocations: 50.75 kB / 0.6368 GB, free: 137.4 MB / 410.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * 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 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000259/0.6702, allocations: 240.3 kB / 0.637 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.6703, allocations: 82.53 kB / 0.6371 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/0.6747, allocations: 1.299 MB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.6747, allocations: 13.22 kB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.6747, allocations: 0.625 kB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.6747, allocations: 3.703 kB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005269/0.68, allocations: 2.303 MB / 0.6406 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.68, allocations: 1.312 kB / 0.6406 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.6806, allocations: 131.7 kB / 0.6408 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/0.6829, allocations: 0.5564 MB / 0.6413 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.552e-05/0.683, allocations: 24.5 kB / 0.6413 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007345/0.6838, allocations: 0.8304 MB / 0.6422 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6838, allocations: 0 / 0.6422 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002011/0.6858, allocations: 1.405 MB / 0.6435 GB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002627/0.6884, allocations: 2.173 MB / 0.6456 GB, free: 135.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003969/0.6889, allocations: 255 kB / 0.6459 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.689, allocations: 25.98 kB / 0.6459 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00067/0.6897, allocations: 31.52 kB / 0.6459 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.6899, allocations: 53.42 kB / 0.646 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.548e-05/0.6899, allocations: 44.14 kB / 0.646 GB, free: 135.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005155/0.6905, allocations: 381.5 kB / 0.6464 GB, free: 135 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001693/0.6922, allocations: 379.8 kB / 0.6468 GB, free: 135 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006813/0.6929, allocations: 401.1 kB / 0.6471 GB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.6943, allocations: 0.9887 MB / 0.6481 GB, free: 134.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6944, allocations: 0 / 0.6481 GB, free: 134.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006564/0.695, allocations: 0.5347 MB / 0.6486 GB, free: 134.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006171/0.6956, allocations: 93.3 kB / 0.6487 GB, free: 134.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.6982, allocations: 1.28 MB / 0.65 GB, free: 134.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006435/0.6988, allocations: 1.128 MB / 0.6511 GB, free: 133.4 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6988, allocations: 0 / 0.6511 GB, free: 133.4 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)