Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.002287/0.002287, allocations: 177.8 kB / 7.455 MB, free: 2.512 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.126/1.126, allocations: 221.4 MB / 229.3 MB, free: 3.078 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.0008971/0.0008971, allocations: 106.9 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02302/0.02302, allocations: 5.299 MB / 336.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00748/0.00748, allocations: 2.297 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.0888/0.0963, allocations: 59.05 MB / 449.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.3189, allocations: 52.18 MB / 0.4899 GB, free: 43.21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.4235, allocations: 95.56 MB / 0.5832 GB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4238, allocations: 75.89 kB / 0.5833 GB, free: 15.02 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.1003/0.5241, allocations: 36.49 MB / 0.619 GB, free: 10.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.5241, allocations: 9.5 kB / 0.619 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001847/0.526, allocations: 318.2 kB / 0.6193 GB, free: 9.949 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.5273, allocations: 0.5938 MB / 0.6198 GB, free: 9.312 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.43e-05/0.5273, allocations: 36 kB / 0.6199 GB, free: 9.277 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/0.5275, allocations: 71.91 kB / 0.6199 GB, free: 9.207 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002066/0.5296, allocations: 0.9335 MB / 0.6209 GB, free: 8.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/0.5315, allocations: 0.9608 MB / 0.6218 GB, free: 7.254 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/0.5316, allocations: 0 / 0.6218 GB, free: 7.254 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.5317, allocations: 8 kB / 0.6218 GB, free: 7.246 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.5317, allocations: 24 kB / 0.6218 GB, free: 7.223 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007096/0.5388, allocations: 4.376 MB / 0.6261 GB, free: 2.656 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.5399, allocations: 0.6878 MB / 0.6268 GB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.5405, allocations: 324.3 kB / 0.6271 GB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001539/0.5406, allocations: 178.8 kB / 0.6273 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006694/0.5413, allocations: 0.5132 MB / 0.6278 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.045e-06/0.5413, allocations: 0 / 0.6278 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.1201/0.6614, allocations: 1.043 MB / 0.6288 GB, free: 140.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.6615, allocations: 304.9 kB / 0.6291 GB, free: 139.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006454/0.6622, allocations: 494.7 kB / 0.6295 GB, free: 139.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.6623, allocations: 33.48 kB / 0.6296 GB, free: 139.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.6626, allocations: 431.4 kB / 0.63 GB, free: 139.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.6628, allocations: 249.4 kB / 0.6302 GB, free: 139.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-05/0.6628, allocations: 0 / 0.6302 GB, free: 139.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.6629, allocations: 385.5 kB / 0.6306 GB, free: 139.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004649/0.6634, allocations: 289.8 kB / 0.6309 GB, free: 139.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005165/0.6639, allocations: 0.5269 MB / 0.6314 GB, free: 138.8 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.01411/0.678, allocations: 2.548 MB / 0.6339 GB, free: 138.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.847e-05/0.6781, allocations: 0 / 0.6339 GB, free: 138.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002245/0.6803, allocations: 1.02 MB / 0.6349 GB, free: 138.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.6804, allocations: 7.031 kB / 0.6349 GB, free: 138.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.6804, allocations: 6.469 kB / 0.6349 GB, free: 138.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005084/0.6809, allocations: 99.66 kB / 0.635 GB, free: 138.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.682, allocations: 253.3 kB / 0.6352 GB, free: 138.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.6833, allocations: 1.493 MB / 0.6367 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009149/0.6843, allocations: 95.77 kB / 0.6368 GB, free: 137.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.751e-05/0.6844, allocations: 53.36 kB / 0.6368 GB, free: 137.3 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.0002967/0.6847, allocations: 250.9 kB / 0.637 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.6848, allocations: 75.56 kB / 0.6371 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004466/0.6893, allocations: 1.297 MB / 0.6384 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.6893, allocations: 7.844 kB / 0.6384 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6893, allocations: 3.125 kB / 0.6384 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.6893, allocations: 10.78 kB / 0.6384 GB, free: 137 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005336/0.6947, allocations: 2.3 MB / 0.6407 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.6947, allocations: 0 / 0.6407 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/0.6953, allocations: 136.8 kB / 0.6408 GB, free: 136.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002358/0.6977, allocations: 0.548 MB / 0.6413 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.607e-05/0.6978, allocations: 25.3 kB / 0.6413 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007205/0.6985, allocations: 0.8405 MB / 0.6422 GB, free: 136 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6985, allocations: 4.062 kB / 0.6422 GB, free: 136 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00199/0.7005, allocations: 1.393 MB / 0.6435 GB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002495/0.703, allocations: 2.175 MB / 0.6457 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003882/0.7034, allocations: 259.6 kB / 0.6459 GB, free: 134.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.7036, allocations: 18.97 kB / 0.6459 GB, free: 134.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006586/0.7042, allocations: 40.94 kB / 0.646 GB, free: 134.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.7044, allocations: 57.44 kB / 0.646 GB, free: 134.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.984e-05/0.7045, allocations: 33.83 kB / 0.646 GB, free: 134.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004002/0.7049, allocations: 377.2 kB / 0.6464 GB, free: 134.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001634/0.7065, allocations: 384.6 kB / 0.6468 GB, free: 134.8 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.0006586/0.7072, allocations: 395.6 kB / 0.6471 GB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.7086, allocations: 0.9776 MB / 0.6481 GB, free: 134.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.7086, allocations: 0 / 0.6481 GB, free: 134.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006567/0.7093, allocations: 0.5504 MB / 0.6486 GB, free: 134.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005824/0.7099, allocations: 98.02 kB / 0.6487 GB, free: 134.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/0.7123, allocations: 1.275 MB / 0.65 GB, free: 134 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007026/0.713, allocations: 1.13 MB / 0.6511 GB, free: 133.2 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.713, allocations: 0 / 0.6511 GB, free: 133.2 MB / 410.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1)