Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",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.002424/0.002424, allocations: 175.6 kB / 7.451 MB, free: 2.27 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.115/1.115, allocations: 221.4 MB / 229.3 MB, free: 3.242 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.0008625/0.0008625, allocations: 95.17 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0233/0.0233, allocations: 5.293 MB / 336.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007597/0.007597, allocations: 2.3 MB / 390.4 MB, free: 74.72 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.09104/0.09867, allocations: 59.05 MB / 449.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.3004, allocations: 52.19 MB / 0.4899 GB, free: 43.25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.4014, allocations: 95.56 MB / 0.5832 GB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.4017, allocations: 67.91 kB / 0.5833 GB, free: 15.03 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.09527/0.497, allocations: 36.49 MB / 0.6189 GB, free: 10.28 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.497, allocations: 9.5 kB / 0.619 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.4986, allocations: 322.3 kB / 0.6193 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008819/0.4995, allocations: 0.6004 MB / 0.6198 GB, free: 9.316 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.4996, allocations: 36 kB / 0.6199 GB, free: 9.281 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.4997, allocations: 67.91 kB / 0.6199 GB, free: 9.215 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001683/0.5014, allocations: 0.9335 MB / 0.6209 GB, free: 8.277 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.503, allocations: 0.9647 MB / 0.6218 GB, free: 7.258 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.503, allocations: 0 / 0.6218 GB, free: 7.258 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.478e-05/0.5031, allocations: 4 kB / 0.6218 GB, free: 7.254 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.5032, allocations: 24 kB / 0.6218 GB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006329/0.5095, allocations: 4.364 MB / 0.6261 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.5106, allocations: 0.6947 MB / 0.6268 GB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005281/0.5111, allocations: 331.6 kB / 0.6271 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001631/0.5113, allocations: 178.8 kB / 0.6273 GB, free: 1.414 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006476/0.512, allocations: 0.5133 MB / 0.6278 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.477e-06/0.512, allocations: 0 / 0.6278 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.121/0.6329, allocations: 1.037 MB / 0.6288 GB, free: 140.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.6331, allocations: 305.9 kB / 0.6291 GB, free: 140.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006041/0.6337, allocations: 0.4885 MB / 0.6295 GB, free: 140.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.6338, allocations: 29.36 kB / 0.6296 GB, free: 140 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.634, allocations: 431 kB / 0.63 GB, free: 139.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.6342, allocations: 253.5 kB / 0.6302 GB, free: 139.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.6342, allocations: 0 / 0.6302 GB, free: 139.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.6343, allocations: 388.8 kB / 0.6306 GB, free: 139.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.6348, allocations: 289.5 kB / 0.6309 GB, free: 139.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005038/0.6353, allocations: 0.5261 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.01373/0.649, allocations: 2.531 MB / 0.6339 GB, free: 139.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.968e-06/0.6491, allocations: 7.531 kB / 0.6339 GB, free: 139.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002028/0.6511, allocations: 1.026 MB / 0.6349 GB, free: 139 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.6511, allocations: 7.062 kB / 0.6349 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.6511, allocations: 10.59 kB / 0.6349 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004782/0.6516, allocations: 94.86 kB / 0.635 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.6527, allocations: 253.3 kB / 0.6352 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.654, allocations: 1.493 MB / 0.6367 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008334/0.6548, allocations: 94.11 kB / 0.6368 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.048e-05/0.6549, allocations: 53.75 kB / 0.6368 GB, free: 137.7 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.0002587/0.6552, allocations: 251.7 kB / 0.637 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6553, allocations: 78.44 kB / 0.6371 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/0.6595, allocations: 1.301 MB / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.6595, allocations: 7.125 kB / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.6596, allocations: 0 / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.6596, allocations: 11.25 kB / 0.6384 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005244/0.6648, allocations: 2.292 MB / 0.6406 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.6648, allocations: 1.031 kB / 0.6406 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005914/0.6654, allocations: 139.8 kB / 0.6408 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.6678, allocations: 0.5476 MB / 0.6413 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/0.6679, allocations: 24.91 kB / 0.6413 GB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007234/0.6686, allocations: 0.836 MB / 0.6422 GB, free: 136.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6686, allocations: 0 / 0.6422 GB, free: 136.4 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00249/0.6711, allocations: 1.4 MB / 0.6435 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002586/0.6737, allocations: 2.171 MB / 0.6456 GB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000388/0.6741, allocations: 258.7 kB / 0.6459 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.6743, allocations: 17.8 kB / 0.6459 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006594/0.675, allocations: 35.73 kB / 0.6459 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.6751, allocations: 56.36 kB / 0.646 GB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.889e-05/0.6752, allocations: 41.69 kB / 0.646 GB, free: 135.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004299/0.6756, allocations: 375.2 kB / 0.6464 GB, free: 135.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001715/0.6773, allocations: 384.2 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.0007207/0.6781, allocations: 411 kB / 0.6472 GB, free: 135.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.6796, allocations: 0.9792 MB / 0.6481 GB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.6796, allocations: 0 / 0.6481 GB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006666/0.6803, allocations: 0.5478 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.0006027/0.6809, allocations: 89.42 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.002487/0.6834, allocations: 1.273 MB / 0.65 GB, free: 134.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006797/0.6841, allocations: 1.135 MB / 0.6511 GB, free: 133.6 MB / 410.7 MB Notification: Performance of SimCode: time 4.9e-07/0.6841, allocations: 0 / 0.6511 GB, free: 133.6 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)