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: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") [: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.001995/0.001995, allocations: 180.7 kB / 7.456 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.045/1.045, allocations: 221.4 MB / 229.3 MB, free: 3.023 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.0008379/0.0008379, allocations: 99.7 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.02252/0.02252, allocations: 5.299 MB / 336.2 MB, free: 9.219 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007233/0.007233, allocations: 2.3 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 5.09e-06/5.11e-06, allocations: 0 / 449.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.191, allocations: 52.19 MB / 0.4898 GB, free: 43.24 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09886/0.2899, allocations: 95.56 MB / 0.5832 GB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.2902, allocations: 67.97 kB / 0.5832 GB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.09048/0.3807, allocations: 35.12 MB / 0.6175 GB, free: 11.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.281e-05/0.3808, allocations: 20 kB / 0.6175 GB, free: 11.77 MB / 410.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.003166/0.3839, allocations: 1.346 MB / 0.6189 GB, free: 10.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.384, allocations: 12.03 kB / 0.6189 GB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.3857, allocations: 318.2 kB / 0.6192 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.3869, allocations: 0.5939 MB / 0.6197 GB, free: 9.398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/0.387, allocations: 36 kB / 0.6198 GB, free: 9.363 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.3872, allocations: 67.91 kB / 0.6198 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001844/0.3891, allocations: 0.9374 MB / 0.6208 GB, free: 8.355 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.3908, allocations: 0.9647 MB / 0.6217 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.3909, allocations: 0.6562 kB / 0.6217 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-05/0.3909, allocations: 7.984 kB / 0.6217 GB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.391, allocations: 28 kB / 0.6217 GB, free: 7.301 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006471/0.3974, allocations: 4.356 MB / 0.626 GB, free: 2.754 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.3986, allocations: 0.6877 MB / 0.6267 GB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005288/0.3991, allocations: 332.3 kB / 0.627 GB, free: 1.707 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.3993, allocations: 178.8 kB / 0.6272 GB, free: 1.496 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006221/0.3999, allocations: 0.5095 MB / 0.6276 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.835e-06/0.3999, allocations: 0 / 0.6276 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.112/0.5119, allocations: 1.045 MB / 0.6287 GB, free: 140.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.5121, allocations: 306.2 kB / 0.629 GB, free: 140.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006499/0.5127, allocations: 498.3 kB / 0.6294 GB, free: 140.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.5129, allocations: 32.36 kB / 0.6295 GB, free: 140.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.5131, allocations: 436.6 kB / 0.6299 GB, free: 140.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.5133, allocations: 245.4 kB / 0.6301 GB, free: 140 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.5134, allocations: 0 / 0.6301 GB, free: 140 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.242e-05/0.5135, allocations: 387.8 kB / 0.6305 GB, free: 139.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004678/0.5139, allocations: 289.8 kB / 0.6308 GB, free: 139.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005156/0.5144, allocations: 0.5307 MB / 0.6313 GB, free: 139.4 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.01364/0.5281, allocations: 2.53 MB / 0.6338 GB, free: 139.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.5281, allocations: 2.656 kB / 0.6338 GB, free: 139.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002317/0.5305, allocations: 1.027 MB / 0.6348 GB, free: 139.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.5305, allocations: 6.719 kB / 0.6348 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.5305, allocations: 7.219 kB / 0.6348 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.531, allocations: 97.53 kB / 0.6349 GB, free: 139.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.5321, allocations: 253.6 kB / 0.6351 GB, free: 139.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.5334, allocations: 1.499 MB / 0.6366 GB, free: 137.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009445/0.5344, allocations: 96.7 kB / 0.6367 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.76e-05/0.5345, allocations: 57.38 kB / 0.6367 GB, free: 137.8 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.0002902/0.5348, allocations: 239.5 kB / 0.6369 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.5349, allocations: 81.19 kB / 0.637 GB, free: 137.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004257/0.5392, allocations: 1.304 MB / 0.6383 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.5392, allocations: 7.188 kB / 0.6383 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5392, allocations: 3.969 kB / 0.6383 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.5393, allocations: 3.562 kB / 0.6383 GB, free: 137.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005212/0.5445, allocations: 2.294 MB / 0.6405 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5445, allocations: 0.8125 kB / 0.6405 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/0.5451, allocations: 135.3 kB / 0.6407 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/0.5474, allocations: 0.5533 MB / 0.6412 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-05/0.5475, allocations: 21.52 kB / 0.6412 GB, free: 137.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006806/0.5482, allocations: 0.8343 MB / 0.6421 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5482, allocations: 3.938 kB / 0.6421 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00199/0.5502, allocations: 1.4 MB / 0.6434 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.5506, allocations: 262.6 kB / 0.6437 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.5508, allocations: 14.91 kB / 0.6437 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.5514, allocations: 32.53 kB / 0.6437 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.5516, allocations: 50.81 kB / 0.6438 GB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.809e-05/0.5516, allocations: 45.38 kB / 0.6438 GB, free: 136.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004003/0.552, allocations: 375.9 kB / 0.6442 GB, free: 136.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009895/0.553, allocations: 362 kB / 0.6445 GB, free: 136 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.0006768/0.5537, allocations: 396.9 kB / 0.6449 GB, free: 135.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.5551, allocations: 0.9752 MB / 0.6458 GB, free: 135.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5551, allocations: 0 / 0.6458 GB, free: 135.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.5558, allocations: 0.5465 MB / 0.6464 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.5563, allocations: 97.56 kB / 0.6465 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.5587, allocations: 1.279 MB / 0.6477 GB, free: 135.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007187/0.5594, allocations: 1.125 MB / 0.6488 GB, free: 134.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5594, allocations: 0 / 0.6488 GB, free: 134.4 MB / 410.7 MB Notification: Performance of Templates: time 0.01913/0.5785, allocations: 12.6 MB / 0.6611 GB, free: 133.8 MB / 410.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (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 & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)