Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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/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 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) 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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02609/0.02609, allocations: 5.393 MB / 21.03 MB, free: 1.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008971/0.0008972, allocations: 100.4 kB / 23.02 MB, free: 0.6953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009283/0.0009284, allocations: 207.7 kB / 25.15 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 222.9 MB / 250 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008895/0.008895, allocations: 2.326 MB / 303.7 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 103.8 kB / 423.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08382, allocations: 51.2 MB / 474.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.00721/0.09107, allocations: 6.773 MB / 481.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004604/0.09569, allocations: 3.131 MB / 484.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005804/0.09629, allocations: 24 kB / 484.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002303/0.09861, allocations: 1.104 MB / 485.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001618/0.1002, allocations: 0.8429 MB / 486.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.1016, allocations: 0.5365 MB / 486.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.1028, allocations: 1.386 MB / 488.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001198/0.104, allocations: 1.025 MB / 489.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004818/0.1045, allocations: 0.5566 MB / 489.7 MB, free: 304 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007199/0.1052, allocations: 0.7238 MB / 490.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.1054, allocations: 140 kB / 490.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006147/0.106, allocations: 431.7 kB / 491 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001943/0.1062, allocations: 291 kB / 491.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004536/0.1066, allocations: 0.6337 MB / 491.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001442/0.1081, allocations: 1.752 MB / 493.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1081, allocations: 0 / 493.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1081, allocations: 4 kB / 493.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.1081, allocations: 0 / 493.7 MB, free: 12.33 MB / 366.1 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.003617/0.1117, allocations: 1.773 MB / 495.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1118, allocations: 11.97 kB / 495.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/0.1137, allocations: 363.3 kB / 495.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.1151, allocations: 0.7679 MB / 496.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.354e-05/0.1152, allocations: 78.06 kB / 496.7 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.1153, allocations: 108 kB / 496.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.1172, allocations: 1.172 MB / 497.9 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.1172, allocations: 7.844 kB / 498 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.964e-05/0.1173, allocations: 47.94 kB / 498 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.1173, allocations: 28 kB / 498 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.1193, allocations: 1.038 MB / 499.1 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005334/0.1246, allocations: 4.361 MB / 0.4916 GB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.1273, allocations: 1.775 MB / 0.4934 GB, free: 232 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006932/0.128, allocations: 363.4 kB / 0.4937 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001616/0.1281, allocations: 174.8 kB / 0.4939 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008791/0.129, allocations: 0.5552 MB / 0.4944 GB, free: 15.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.014e-06/0.129, allocations: 3.938 kB / 0.4944 GB, free: 15.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.005462/0.1345, allocations: 1.709 MB / 0.4961 GB, free: 13.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.1346, allocations: 277.7 kB / 0.4964 GB, free: 12.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1352, allocations: 0.5498 MB / 0.4969 GB, free: 12.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.1353, allocations: 41.7 kB / 0.4969 GB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/0.1356, allocations: 498.5 kB / 0.4974 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.1357, allocations: 256.4 kB / 0.4976 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.136, allocations: 206.7 kB / 0.4978 GB, free: 11.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1362, allocations: 386.8 kB / 0.4982 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006806/0.1369, allocations: 326.4 kB / 0.4985 GB, free: 10.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000831/0.1377, allocations: 0.5682 MB / 0.4991 GB, free: 10.04 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01596/0.1537, allocations: 3.619 MB / 0.5026 GB, free: 6.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1537, allocations: 0 / 0.5026 GB, free: 6.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00233/0.156, allocations: 1.217 MB / 0.5038 GB, free: 5.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.453e-05/0.1561, allocations: 85.11 kB / 0.5039 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1561, allocations: 8 kB / 0.5039 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004252/0.1565, allocations: 89.03 kB / 0.504 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.1575, allocations: 255.5 kB / 0.5042 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.159, allocations: 1.585 MB / 0.5058 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007767/0.1598, allocations: 118.9 kB / 0.5059 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.571e-05/0.1599, allocations: 51.97 kB / 0.5059 GB, free: 2.66 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004842/0.1604, allocations: 373.2 kB / 0.5063 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.1605, allocations: 87.12 kB / 0.5064 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/0.163, allocations: 1.253 MB / 0.5076 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.163, allocations: 12 kB / 0.5076 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.163, allocations: 0 / 0.5076 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.163, allocations: 3.984 kB / 0.5076 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1762/0.3393, allocations: 2.252 MB / 0.5098 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.3393, allocations: 0 / 0.5098 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005755/0.3399, allocations: 136.1 kB / 0.5099 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007838/0.3407, allocations: 335.1 kB / 0.5103 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.405e-05/0.3408, allocations: 33.83 kB / 0.5103 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.342, allocations: 0.8912 MB / 0.5112 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.342, allocations: 4.703 kB / 0.5112 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.3449, allocations: 1.644 MB / 0.5128 GB, free: 45.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003644/0.3453, allocations: 237.2 kB / 0.513 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.3454, allocations: 26.95 kB / 0.513 GB, free: 45.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006346/0.3461, allocations: 54.33 kB / 0.5131 GB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.3462, allocations: 55.73 kB / 0.5131 GB, free: 45.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.95e-05/0.3463, allocations: 40.31 kB / 0.5132 GB, free: 45.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004336/0.3467, allocations: 401.5 kB / 0.5135 GB, free: 45.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3467, allocations: 0 / 0.5135 GB, free: 45.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009387/0.3477, allocations: 339.2 kB / 0.5139 GB, free: 45.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * 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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006186/0.3483, allocations: 351.3 kB / 0.5142 GB, free: 45.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.3503, allocations: 1.16 MB / 0.5153 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3503, allocations: 0 / 0.5153 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009808/0.3513, allocations: 0.6704 MB / 0.516 GB, free: 44.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007185/0.352, allocations: 138.4 kB / 0.5161 GB, free: 44.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.355, allocations: 1.774 MB / 0.5179 GB, free: 43.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006168/0.3556, allocations: 1.015 MB / 0.5189 GB, free: 42.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004405/0.3561, allocations: 130.2 kB / 0.519 GB, free: 42.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.3563, allocations: 89.42 kB / 0.5191 GB, free: 42.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3563, allocations: 0 / 0.5191 GB, free: 42.43 MB / 382.1 MB Notification: Performance of Templates: time 0.02047/0.3768, allocations: 13.28 MB / 0.532 GB, free: 37.63 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)