Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.002106/0.002106, allocations: 180.2 kB / 7.458 MB, free: 2.34 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.132/1.132, allocations: 221.4 MB / 229.3 MB, free: 3.07 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.0008551/0.0008551, allocations: 96.58 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02357/0.02357, allocations: 5.291 MB / 336.2 MB, free: 9.211 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007767/0.007768, allocations: 2.294 MB / 390.4 MB, free: 74.71 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.09147/0.09929, allocations: 59.05 MB / 449.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.3067, allocations: 52.19 MB / 0.4899 GB, free: 43.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.103/0.4097, allocations: 95.56 MB / 0.5832 GB, free: 15.05 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.41, allocations: 73.22 kB / 0.5833 GB, free: 14.98 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.09896/0.5089, allocations: 36.49 MB / 0.619 GB, free: 10.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.509, allocations: 9.5 kB / 0.619 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001691/0.5107, allocations: 314.3 kB / 0.6193 GB, free: 9.914 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.5118, allocations: 0.5977 MB / 0.6198 GB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.087e-05/0.5118, allocations: 37.22 kB / 0.6199 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/0.512, allocations: 71.91 kB / 0.62 GB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001892/0.5139, allocations: 0.9296 MB / 0.6209 GB, free: 8.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.5157, allocations: 0.9686 MB / 0.6218 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.23e-05/0.5158, allocations: 4 kB / 0.6218 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-05/0.5159, allocations: 4 kB / 0.6218 GB, free: 7.199 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.452e-05/0.5159, allocations: 24 kB / 0.6218 GB, free: 7.176 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006766/0.5227, allocations: 4.364 MB / 0.6261 GB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.5238, allocations: 0.6955 MB / 0.6268 GB, free: 1.898 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005371/0.5244, allocations: 329.3 kB / 0.6271 GB, free: 1.574 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.5245, allocations: 170.9 kB / 0.6273 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006815/0.5252, allocations: 0.5172 MB / 0.6278 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/0.5252, allocations: 0 / 0.6278 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.1386/0.6638, allocations: 1.031 MB / 0.6288 GB, free: 140.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.664, allocations: 316 kB / 0.6291 GB, free: 140 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007418/0.6647, allocations: 495.4 kB / 0.6295 GB, free: 139.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.6649, allocations: 35.5 kB / 0.6296 GB, free: 139.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/0.6651, allocations: 428.5 kB / 0.63 GB, free: 139.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002872/0.6654, allocations: 245.6 kB / 0.6302 GB, free: 139.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.757e-05/0.6655, allocations: 7.812 kB / 0.6302 GB, free: 139.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.6656, allocations: 383.2 kB / 0.6306 GB, free: 139.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005153/0.6662, allocations: 288.8 kB / 0.6309 GB, free: 139.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/0.6668, allocations: 0.5261 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.01455/0.6814, allocations: 2.535 MB / 0.6339 GB, free: 138.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/0.6814, allocations: 2.312 kB / 0.6339 GB, free: 138.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00239/0.6838, allocations: 1.027 MB / 0.6349 GB, free: 138.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.6839, allocations: 5.5 kB / 0.6349 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.6839, allocations: 9.531 kB / 0.6349 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004872/0.6844, allocations: 94.97 kB / 0.635 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.6855, allocations: 258.2 kB / 0.6352 GB, free: 138.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.6869, allocations: 1.502 MB / 0.6367 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.688, allocations: 90.81 kB / 0.6368 GB, free: 137.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.6881, allocations: 53.97 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.0003559/0.6885, allocations: 243.2 kB / 0.637 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.6888, allocations: 74.12 kB / 0.6371 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004524/0.6933, allocations: 1.31 MB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.6933, allocations: 6.5 kB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.6933, allocations: 3.844 kB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.6933, allocations: 6.031 kB / 0.6384 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005632/0.699, allocations: 2.302 MB / 0.6407 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.699, allocations: 0 / 0.6407 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006752/0.6997, allocations: 135.6 kB / 0.6408 GB, free: 136.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002482/0.7022, allocations: 0.5424 MB / 0.6413 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-05/0.7023, allocations: 25.58 kB / 0.6413 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007578/0.7031, allocations: 0.8418 MB / 0.6422 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7031, allocations: 2.156 kB / 0.6422 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002347/0.7054, allocations: 1.397 MB / 0.6435 GB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002877/0.7083, allocations: 2.179 MB / 0.6457 GB, free: 135.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005381/0.7089, allocations: 255.8 kB / 0.6459 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/0.7091, allocations: 15.47 kB / 0.6459 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/0.7099, allocations: 40.95 kB / 0.646 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.71, allocations: 53.23 kB / 0.646 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-05/0.7101, allocations: 40.86 kB / 0.646 GB, free: 135.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004646/0.7106, allocations: 378.8 kB / 0.6464 GB, free: 135 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001992/0.7126, allocations: 382 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.0008698/0.7135, allocations: 401.1 kB / 0.6472 GB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.7151, allocations: 0.9731 MB / 0.6481 GB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7151, allocations: 3.312 kB / 0.6481 GB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007563/0.7159, allocations: 0.5458 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.0006556/0.7165, allocations: 95.3 kB / 0.6487 GB, free: 134.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.7195, allocations: 1.269 MB / 0.65 GB, free: 134.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.7206, allocations: 1.137 MB / 0.6511 GB, free: 133.4 MB / 410.7 MB Notification: Performance of SimCode: time 8.82e-07/0.7206, allocations: 0 / 0.6511 GB, free: 133.4 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)