Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02801/0.02801, allocations: 5.398 MB / 21.7 MB, free: 1.34 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.0009448/0.000945, allocations: 114.1 kB / 23.7 MB, free: 0.9961 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.001085/0.001085, allocations: 198.2 kB / 25.82 MB, free: 4.637 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 222.9 MB / 250.7 MB, free: 8.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009225/0.009225, allocations: 2.317 MB / 304.4 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 99.84 kB / 420.3 MB, free: 22.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07457/0.07621, allocations: 51.21 MB / 471.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.007231/0.08347, allocations: 6.78 MB / 478.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004995/0.0885, allocations: 3.131 MB / 481.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006601/0.08919, allocations: 16 kB / 481.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.09156, allocations: 1.103 MB / 482.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.09343, allocations: 0.8389 MB / 483.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.09484, allocations: 0.5327 MB / 483.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.09617, allocations: 1.394 MB / 485.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.09748, allocations: 1.021 MB / 486.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005465/0.09804, allocations: 0.5566 MB / 486.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007276/0.09878, allocations: 0.7237 MB / 487.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.09896, allocations: 144 kB / 487.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007157/0.09968, allocations: 431.7 kB / 488.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.09989, allocations: 291 kB / 488.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005451/0.1004, allocations: 0.6337 MB / 489.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.1021, allocations: 1.748 MB / 490.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1021, allocations: 0 / 490.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1021, allocations: 0 / 490.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.1021, allocations: 0 / 490.8 MB, free: 15.95 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.003756/0.1059, allocations: 1.771 MB / 492.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.1059, allocations: 8.031 kB / 492.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001988/0.1079, allocations: 375.2 kB / 493 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.1094, allocations: 0.76 MB / 493.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.538e-05/0.1094, allocations: 90.05 kB / 493.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.1096, allocations: 104 kB / 493.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.1115, allocations: 1.172 MB / 495.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.1116, allocations: 11.91 kB / 495.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.81e-05/0.1117, allocations: 44 kB / 495.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.1117, allocations: 27.98 kB / 495.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/0.1137, allocations: 1.034 MB / 496.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005526/0.1192, allocations: 4.368 MB / 0.4889 GB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002652/0.1219, allocations: 1.77 MB / 0.4906 GB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006948/0.1226, allocations: 367.4 kB / 0.4909 GB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.1228, allocations: 174.8 kB / 0.4911 GB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008804/0.1236, allocations: 0.5474 MB / 0.4916 GB, free: 2.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.507e-06/0.1237, allocations: 0 / 0.4916 GB, free: 2.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005499/0.1292, allocations: 1.709 MB / 0.4933 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.1293, allocations: 281.6 kB / 0.4936 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005938/0.1299, allocations: 0.5613 MB / 0.4941 GB, free: 20 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.971e-05/0.13, allocations: 37.7 kB / 0.4942 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.1303, allocations: 494.5 kB / 0.4946 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.1305, allocations: 264.4 kB / 0.4949 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002985/0.1308, allocations: 210.7 kB / 0.4951 GB, free: 15.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1309, allocations: 382.8 kB / 0.4954 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007507/0.1317, allocations: 322.4 kB / 0.4958 GB, free: 14.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008378/0.1325, allocations: 0.5682 MB / 0.4963 GB, free: 13.65 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.01614/0.1487, allocations: 3.623 MB / 0.4998 GB, free: 9.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.1487, allocations: 8 kB / 0.4999 GB, free: 9.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002425/0.1511, allocations: 1.205 MB / 0.501 GB, free: 8.617 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.464e-05/0.1512, allocations: 91.28 kB / 0.5011 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.1512, allocations: 8 kB / 0.5011 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.1516, allocations: 93.02 kB / 0.5012 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.1527, allocations: 255.5 kB / 0.5015 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.1541, allocations: 1.578 MB / 0.503 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000789/0.1549, allocations: 118.9 kB / 0.5031 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.128e-05/0.155, allocations: 51.95 kB / 0.5032 GB, free: 6.273 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.0005133/0.1556, allocations: 373.3 kB / 0.5035 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.1557, allocations: 75.16 kB / 0.5036 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.1581, allocations: 1.257 MB / 0.5048 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1582, allocations: 8 kB / 0.5048 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1582, allocations: 8 kB / 0.5048 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.1582, allocations: 3.984 kB / 0.5048 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005901/0.1641, allocations: 2.539 MB / 0.5073 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1641, allocations: 4.031 kB / 0.5073 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005492/0.1647, allocations: 135.8 kB / 0.5075 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007267/0.1654, allocations: 334.2 kB / 0.5078 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.1655, allocations: 35.95 kB / 0.5078 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.1667, allocations: 0.8857 MB / 0.5087 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1667, allocations: 4.031 kB / 0.5087 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1681/0.3348, allocations: 1.918 MB / 0.5105 GB, free: 46.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003618/0.3352, allocations: 238.9 kB / 0.5108 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.3354, allocations: 27.47 kB / 0.5108 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.336, allocations: 58.09 kB / 0.5109 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.3361, allocations: 58.34 kB / 0.5109 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.187e-05/0.3362, allocations: 36.64 kB / 0.5109 GB, free: 46.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004535/0.3367, allocations: 394.5 kB / 0.5113 GB, free: 46.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3367, allocations: 1.062 kB / 0.5113 GB, free: 46.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001004/0.3377, allocations: 342.9 kB / 0.5117 GB, free: 46.4 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 (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) * 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.0006544/0.3383, allocations: 351.2 kB / 0.512 GB, free: 46.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.3404, allocations: 1.156 MB / 0.5131 GB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3404, allocations: 0 / 0.5131 GB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009414/0.3414, allocations: 0.6683 MB / 0.5138 GB, free: 45.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/0.3422, allocations: 146.4 kB / 0.5139 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.345, allocations: 1.809 MB / 0.5157 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/0.3454, allocations: 1.014 MB / 0.5167 GB, free: 43.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.3457, allocations: 92.64 kB / 0.5168 GB, free: 43.93 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.3458, allocations: 1.375 kB / 0.5168 GB, free: 43.93 MB / 382.1 MB Notification: Performance of Templates: time 0.01915/0.3649, allocations: 17.46 MB / 0.5338 GB, free: 36.47 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)