Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",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.002166/0.002166, allocations: 180 kB / 7.458 MB, free: 2.5 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.133/1.133, allocations: 221.4 MB / 229.3 MB, free: 3.234 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.0009492/0.0009492, allocations: 92.23 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02314/0.02314, allocations: 5.298 MB / 336.2 MB, free: 9.227 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007892/0.007892, allocations: 2.302 MB / 390.4 MB, free: 74.69 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.09273/0.1007, allocations: 59.05 MB / 449.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.3113, allocations: 52.18 MB / 0.4899 GB, free: 43.29 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09817/0.4095, allocations: 95.57 MB / 0.5833 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.4097, allocations: 74 kB / 0.5833 GB, free: 15.01 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.09727/0.507, allocations: 36.48 MB / 0.619 GB, free: 10.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.5071, allocations: 9.5 kB / 0.619 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001648/0.5087, allocations: 318.2 kB / 0.6193 GB, free: 9.941 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.5097, allocations: 0.5977 MB / 0.6198 GB, free: 9.301 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.409e-05/0.5098, allocations: 36 kB / 0.6199 GB, free: 9.266 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.5099, allocations: 71.89 kB / 0.6199 GB, free: 9.195 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00173/0.5117, allocations: 0.9374 MB / 0.6209 GB, free: 8.254 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.5133, allocations: 0.9608 MB / 0.6218 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.5134, allocations: 3.938 kB / 0.6218 GB, free: 7.234 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/0.5135, allocations: 4 kB / 0.6218 GB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.5135, allocations: 28 kB / 0.6218 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006457/0.52, allocations: 4.356 MB / 0.6261 GB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.5211, allocations: 0.6916 MB / 0.6268 GB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.5217, allocations: 331.6 kB / 0.6271 GB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001631/0.5219, allocations: 174.8 kB / 0.6272 GB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000657/0.5226, allocations: 0.5223 MB / 0.6278 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.374e-06/0.5226, allocations: 4 kB / 0.6278 GB, free: 0.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.1201/0.6427, allocations: 1.035 MB / 0.6288 GB, free: 140.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.6428, allocations: 309.7 kB / 0.6291 GB, free: 140.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006004/0.6434, allocations: 0.4884 MB / 0.6295 GB, free: 140.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.6435, allocations: 29.48 kB / 0.6296 GB, free: 140 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.6437, allocations: 425.7 kB / 0.63 GB, free: 139.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.6439, allocations: 251.8 kB / 0.6302 GB, free: 139.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.644, allocations: 0 / 0.6302 GB, free: 139.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.982e-05/0.644, allocations: 385.5 kB / 0.6306 GB, free: 139.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004519/0.6445, allocations: 296.1 kB / 0.6309 GB, free: 139.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005258/0.645, allocations: 0.5268 MB / 0.6314 GB, free: 139.2 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.01381/0.6588, allocations: 2.534 MB / 0.6339 GB, free: 139.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.6589, allocations: 3.844 kB / 0.6339 GB, free: 139.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002039/0.6609, allocations: 1.023 MB / 0.6349 GB, free: 139 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.6609, allocations: 6.719 kB / 0.6349 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.661, allocations: 7.594 kB / 0.6349 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005/0.6615, allocations: 98.95 kB / 0.635 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.6626, allocations: 255.8 kB / 0.6352 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.6639, allocations: 1.497 MB / 0.6367 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000817/0.6647, allocations: 93.42 kB / 0.6368 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.219e-05/0.6648, allocations: 53.44 kB / 0.6368 GB, free: 137.6 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.0002638/0.6651, allocations: 243.3 kB / 0.637 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.6652, allocations: 78.06 kB / 0.6371 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004268/0.6695, allocations: 1.301 MB / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.6695, allocations: 9.75 kB / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.6695, allocations: 0 / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.6695, allocations: 3.562 kB / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004959/0.6745, allocations: 2.297 MB / 0.6406 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.6745, allocations: 0.875 kB / 0.6407 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005796/0.6751, allocations: 139.8 kB / 0.6408 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/0.6775, allocations: 0.5461 MB / 0.6413 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.002e-05/0.6775, allocations: 24.89 kB / 0.6413 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006832/0.6782, allocations: 0.8388 MB / 0.6422 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.6782, allocations: 2.438 kB / 0.6422 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001946/0.6802, allocations: 1.399 MB / 0.6435 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002485/0.6827, allocations: 2.175 MB / 0.6457 GB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003531/0.6831, allocations: 256.6 kB / 0.6459 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.6832, allocations: 13.56 kB / 0.6459 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000655/0.6839, allocations: 42.08 kB / 0.6459 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.684, allocations: 51.8 kB / 0.646 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.168e-05/0.6841, allocations: 40.97 kB / 0.646 GB, free: 135.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000388/0.6845, allocations: 377.3 kB / 0.6464 GB, free: 135.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001539/0.686, allocations: 379.7 kB / 0.6468 GB, free: 135.2 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.0006631/0.6867, allocations: 408.5 kB / 0.6471 GB, free: 135.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.6881, allocations: 0.9818 MB / 0.6481 GB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6881, allocations: 0 / 0.6481 GB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006309/0.6888, allocations: 0.5465 MB / 0.6486 GB, free: 134.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005761/0.6894, allocations: 99.5 kB / 0.6487 GB, free: 134.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.6917, allocations: 1.27 MB / 0.65 GB, free: 134.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000676/0.6924, allocations: 1.133 MB / 0.6511 GB, free: 133.6 MB / 410.7 MB Notification: Performance of SimCode: time 3.3e-07/0.6924, allocations: 0 / 0.6511 GB, free: 133.6 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)