Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.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_Measurement_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02779/0.02779, allocations: 5.394 MB / 21.7 MB, free: 1.391 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.001022/0.001021, allocations: 114.6 kB / 23.7 MB, free: 0.9609 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.001115/0.001115, allocations: 195 kB / 25.82 MB, free: 4.68 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.283/1.283, allocations: 222.9 MB / 250.7 MB, free: 8.449 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009061/0.009061, allocations: 2.327 MB / 304.4 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 91.86 kB / 420.3 MB, free: 22.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09228/0.09395, allocations: 51.21 MB / 471.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.008367/0.1024, allocations: 6.9 MB / 478.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006673/0.1091, allocations: 4.021 MB / 482.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009631/0.1101, allocations: 19.94 kB / 482.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.113, allocations: 1.178 MB / 483.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002144/0.1151, allocations: 0.8778 MB / 484.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001791/0.1169, allocations: 0.5998 MB / 485.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001725/0.1186, allocations: 1.413 MB / 486.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.12, allocations: 1.013 MB / 487.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006912/0.1207, allocations: 0.5759 MB / 488.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008436/0.1216, allocations: 0.6769 MB / 488.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.1218, allocations: 140 kB / 488.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008348/0.1226, allocations: 435.7 kB / 489.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002473/0.1229, allocations: 306.8 kB / 489.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000516/0.1234, allocations: 0.6258 MB / 490.3 MB, free: 432 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001801/0.1252, allocations: 1.764 MB / 492 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1252, allocations: 0 / 492 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1252, allocations: 0 / 492 MB, free: 14.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1252, allocations: 0 / 492 MB, free: 14.65 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003893/0.1291, allocations: 1.797 MB / 493.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1292, allocations: 12.03 kB / 493.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002081/0.1313, allocations: 379.1 kB / 494.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.133, allocations: 0.8126 MB / 495 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.133, allocations: 78 kB / 495.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.1332, allocations: 104 kB / 495.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.1352, allocations: 1.142 MB / 496.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.1352, allocations: 3.906 kB / 496.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.1353, allocations: 44 kB / 496.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.1353, allocations: 24 kB / 496.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.1372, allocations: 0.9485 MB / 497.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006055/0.1433, allocations: 4.302 MB / 0.4899 GB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002505/0.1458, allocations: 1.666 MB / 0.4915 GB, free: 2.762 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00065/0.1465, allocations: 314.1 kB / 0.4918 GB, free: 2.445 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.1466, allocations: 97.53 kB / 0.4919 GB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000842/0.1474, allocations: 466.5 kB / 0.4924 GB, free: 1.848 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 4.058e-06/0.1475, allocations: 0 / 0.4924 GB, free: 1.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005623/0.1531, allocations: 1.541 MB / 0.4939 GB, free: 272 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/0.1533, allocations: 281.5 kB / 0.4942 GB, free: 15.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.1543, allocations: 0.6642 MB / 0.4948 GB, free: 15.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.124e-05/0.1544, allocations: 45.72 kB / 0.4948 GB, free: 15.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004104/0.1548, allocations: 0.5179 MB / 0.4954 GB, free: 14.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.155, allocations: 217.1 kB / 0.4956 GB, free: 14.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.1553, allocations: 186.4 kB / 0.4957 GB, free: 14.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1555, allocations: 390.8 kB / 0.4961 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006258/0.1561, allocations: 285.8 kB / 0.4964 GB, free: 13.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007979/0.157, allocations: 0.5363 MB / 0.4969 GB, free: 12.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.1584, allocations: 0.9138 MB / 0.4978 GB, free: 11.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.8e-05/0.1584, allocations: 7.938 kB / 0.4978 GB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002199/0.1606, allocations: 1.063 MB / 0.4988 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.138e-05/0.1607, allocations: 65.73 kB / 0.4989 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.1607, allocations: 8 kB / 0.4989 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004683/0.1612, allocations: 89.06 kB / 0.499 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008321/0.162, allocations: 219.6 kB / 0.4992 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.1637, allocations: 1.581 MB / 0.5008 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008102/0.1645, allocations: 119.1 kB / 0.5009 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.659e-05/0.1646, allocations: 43.98 kB / 0.5009 GB, free: 8.551 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.0005336/0.1651, allocations: 331.9 kB / 0.5012 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.1654, allocations: 87 kB / 0.5013 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001913/0.1673, allocations: 0.9129 MB / 0.5022 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1673, allocations: 8 kB / 0.5022 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1673, allocations: 4 kB / 0.5022 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.1673, allocations: 3.984 kB / 0.5022 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005847/0.1732, allocations: 2.207 MB / 0.5044 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.1732, allocations: 0 / 0.5044 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.1736, allocations: 87.89 kB / 0.5045 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000815/0.1744, allocations: 326.3 kB / 0.5048 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.883e-05/0.1745, allocations: 27.97 kB / 0.5048 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.1758, allocations: 0.8897 MB / 0.5057 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1758, allocations: 0 / 0.5057 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0052/0.181, allocations: 1.631 MB / 0.5073 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.1815, allocations: 223.9 kB / 0.5075 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002186/0.1818, allocations: 20 kB / 0.5075 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.1824, allocations: 51.95 kB / 0.5075 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.1825, allocations: 44.33 kB / 0.5076 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.477e-05/0.1826, allocations: 31.91 kB / 0.5076 GB, free: 1.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006579/0.1833, allocations: 463 kB / 0.508 GB, free: 1.004 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1833, allocations: 0 / 0.508 GB, free: 1.004 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001129/0.1844, allocations: 319 kB / 0.5084 GB, free: 0.6914 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.001611/0.186, allocations: 0.6546 MB / 0.509 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2089/0.3949, allocations: 0.9642 MB / 0.5099 GB, free: 46.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.395, allocations: 0.9688 kB / 0.5099 GB, free: 46.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009828/0.396, allocations: 487 kB / 0.5104 GB, free: 46.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.3971, allocations: 167.6 kB / 0.5106 GB, free: 46.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/0.4001, allocations: 1.735 MB / 0.5123 GB, free: 45.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005232/0.4006, allocations: 1.015 MB / 0.5132 GB, free: 45.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.4009, allocations: 81.48 kB / 0.5133 GB, free: 45.07 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4009, allocations: 0 / 0.5133 GB, free: 45.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02288/0.4238, allocations: 17.37 MB / 0.5303 GB, free: 38.82 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe 2>&1)