Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_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_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02872/0.02872, allocations: 5.394 MB / 21.7 MB, free: 1.379 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.000949/0.000949, allocations: 112.8 kB / 23.7 MB, free: 0.9531 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.001157/0.001158, allocations: 191.6 kB / 25.82 MB, free: 4.668 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.205/1.205, allocations: 222.9 MB / 250.7 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.009266/0.009266, allocations: 2.326 MB / 304.4 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 99.84 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.08089, allocations: 51.21 MB / 471.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.007802/0.08873, allocations: 6.893 MB / 478.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005859/0.09462, allocations: 4.025 MB / 482.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005333/0.09517, allocations: 19.94 kB / 482.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002506/0.09769, allocations: 1.17 MB / 483.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001597/0.09929, allocations: 0.8853 MB / 484.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.1008, allocations: 0.6087 MB / 485.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.102, allocations: 1.413 MB / 486.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.1032, allocations: 1.013 MB / 487.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005747/0.1038, allocations: 0.5681 MB / 488.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007342/0.1045, allocations: 0.6807 MB / 488.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001649/0.1047, allocations: 144 kB / 488.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006747/0.1054, allocations: 435.7 kB / 489.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.1056, allocations: 294.9 kB / 489.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000494/0.1061, allocations: 0.6375 MB / 490.3 MB, free: 404 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00153/0.1077, allocations: 1.76 MB / 492.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1077, allocations: 0 / 492.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1077, allocations: 0 / 492.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1077, allocations: 0 / 492.1 MB, free: 14.63 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.003633/0.1114, allocations: 1.791 MB / 493.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.1114, allocations: 15.97 kB / 493.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002019/0.1134, allocations: 383.1 kB / 494.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.115, allocations: 0.8165 MB / 495 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.449e-05/0.1151, allocations: 78 kB / 495.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.1152, allocations: 100 kB / 495.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.1171, allocations: 1.126 MB / 496.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.1171, allocations: 7.844 kB / 496.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1172, allocations: 44 kB / 496.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.1173, allocations: 28 kB / 496.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.1191, allocations: 0.9485 MB / 497.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.1246, allocations: 4.303 MB / 0.4899 GB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.127, allocations: 1.666 MB / 0.4915 GB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000611/0.1276, allocations: 316 kB / 0.4918 GB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.852e-05/0.1277, allocations: 97.52 kB / 0.4919 GB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007625/0.1285, allocations: 466.5 kB / 0.4924 GB, free: 1.824 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.144e-06/0.1285, allocations: 7.938 kB / 0.4924 GB, free: 1.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005391/0.1339, allocations: 1.541 MB / 0.4939 GB, free: 240 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.1341, allocations: 269.6 kB / 0.4942 GB, free: 15.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008021/0.1349, allocations: 0.6682 MB / 0.4948 GB, free: 15.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.1349, allocations: 37.7 kB / 0.4948 GB, free: 15.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.1353, allocations: 0.5218 MB / 0.4954 GB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.1355, allocations: 221.1 kB / 0.4956 GB, free: 14.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/0.1357, allocations: 186.4 kB / 0.4957 GB, free: 14.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1359, allocations: 386.8 kB / 0.4961 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005944/0.1365, allocations: 285.8 kB / 0.4964 GB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007537/0.1373, allocations: 0.5364 MB / 0.4969 GB, free: 12.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.1386, allocations: 0.9176 MB / 0.4978 GB, free: 11.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.1386, allocations: 7.938 kB / 0.4978 GB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002016/0.1407, allocations: 1.063 MB / 0.4988 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.1407, allocations: 67.39 kB / 0.4989 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1407, allocations: 8 kB / 0.4989 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000433/0.1412, allocations: 84.72 kB / 0.499 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008074/0.142, allocations: 219.8 kB / 0.4992 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.1434, allocations: 1.574 MB / 0.5007 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.1441, allocations: 127 kB / 0.5009 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/0.1441, allocations: 39.98 kB / 0.5009 GB, free: 8.531 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.0003806/0.1445, allocations: 335.6 kB / 0.5012 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.1447, allocations: 91 kB / 0.5013 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.1465, allocations: 0.9051 MB / 0.5022 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1465, allocations: 4 kB / 0.5022 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.1465, allocations: 0 / 0.5022 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.1465, allocations: 7.984 kB / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005466/0.152, allocations: 2.211 MB / 0.5044 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.152, allocations: 0 / 0.5044 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.1523, allocations: 87.89 kB / 0.5045 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007387/0.1531, allocations: 330.2 kB / 0.5048 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.1531, allocations: 27.97 kB / 0.5048 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.1543, allocations: 0.8936 MB / 0.5057 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1543, allocations: 4.031 kB / 0.5057 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004744/0.1591, allocations: 1.631 MB / 0.5073 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.1594, allocations: 223.9 kB / 0.5075 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.1595, allocations: 20 kB / 0.5075 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.16, allocations: 47.95 kB / 0.5075 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.581e-05/0.1601, allocations: 44.39 kB / 0.5076 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.1602, allocations: 27.97 kB / 0.5076 GB, free: 1.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005141/0.1607, allocations: 467 kB / 0.5081 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1607, allocations: 0 / 0.5081 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008127/0.1615, allocations: 315 kB / 0.5084 GB, free: 0.668 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.001269/0.1628, allocations: 0.6546 MB / 0.509 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1557/0.3185, allocations: 0.9669 MB / 0.5099 GB, free: 46.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3185, allocations: 0 / 0.5099 GB, free: 46.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008408/0.3194, allocations: 486 kB / 0.5104 GB, free: 46.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009084/0.3203, allocations: 166.5 kB / 0.5106 GB, free: 46.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.3229, allocations: 1.738 MB / 0.5123 GB, free: 45.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.3233, allocations: 1.02 MB / 0.5133 GB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.3236, allocations: 81 kB / 0.5133 GB, free: 44.98 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3236, allocations: 0 / 0.5133 GB, free: 44.98 MB / 382.1 MB Notification: Performance of Templates: time 0.01872/0.3423, allocations: 17.51 MB / 0.5304 GB, free: 38.64 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)