Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 83.39 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02643/0.02643, allocations: 5.292 MB / 341.8 MB, free: 4.805 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008715/0.008715, allocations: 2.293 MB / 396.2 MB, free: 70.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.603e-05/4.633e-05, allocations: 4 kB / 459.7 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.364, allocations: 52.19 MB / 0.4999 GB, free: 42.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.5152, allocations: 96.3 MB / 0.5939 GB, free: 9.809 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.5155, allocations: 71.97 kB / 0.594 GB, free: 9.738 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4181/0.9336, allocations: 35.83 MB / 0.629 GB, free: 94.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.9337, allocations: 0 / 0.629 GB, free: 94.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.9337, allocations: 23.38 kB / 0.629 GB, free: 94.94 MB / 394.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.002748/0.9365, allocations: 1.333 MB / 0.6303 GB, free: 94.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.9365, allocations: 14.02 kB / 0.6303 GB, free: 94.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.9379, allocations: 299.7 kB / 0.6306 GB, free: 94.1 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007943/0.9387, allocations: 0.5875 MB / 0.6312 GB, free: 93.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.398e-05/0.9388, allocations: 81.06 kB / 0.6312 GB, free: 93.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.939, allocations: 103.3 kB / 0.6313 GB, free: 93.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.9406, allocations: 1.136 MB / 0.6324 GB, free: 93.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/0.9406, allocations: 0 / 0.6324 GB, free: 93.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.9407, allocations: 47.25 kB / 0.6325 GB, free: 93.67 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.9407, allocations: 23.44 kB / 0.6325 GB, free: 93.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.9423, allocations: 1.007 MB / 0.6335 GB, free: 93.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005493/0.9478, allocations: 4.538 MB / 0.6379 GB, free: 91.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.9497, allocations: 1.787 MB / 0.6397 GB, free: 90.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.9502, allocations: 329.9 kB / 0.64 GB, free: 90.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.9504, allocations: 171.9 kB / 0.6402 GB, free: 89.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006434/0.951, allocations: 0.5377 MB / 0.6407 GB, free: 89.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.286e-06/0.951, allocations: 0 / 0.6407 GB, free: 89.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003517/0.9546, allocations: 1.174 MB / 0.6418 GB, free: 89.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.538e-05/0.9547, allocations: 306.6 kB / 0.6421 GB, free: 88.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006318/0.9553, allocations: 0.5261 MB / 0.6426 GB, free: 88.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/0.9554, allocations: 43.95 kB / 0.6427 GB, free: 88.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.9556, allocations: 479.9 kB / 0.6431 GB, free: 88.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.9558, allocations: 266.3 kB / 0.6434 GB, free: 87.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.532e-05/0.9559, allocations: 26.03 kB / 0.6434 GB, free: 87.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.152e-05/0.956, allocations: 383.9 kB / 0.6438 GB, free: 87.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.9564, allocations: 306.1 kB / 0.6441 GB, free: 87.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005242/0.9569, allocations: 0.5466 MB / 0.6446 GB, free: 87.05 MB / 394.7 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.01424/0.9712, allocations: 2.735 MB / 0.6473 GB, free: 86.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.361e-05/0.9712, allocations: 4 kB / 0.6473 GB, free: 86.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001961/0.9732, allocations: 1.152 MB / 0.6484 GB, free: 85.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/0.9733, allocations: 92.7 kB / 0.6485 GB, free: 85.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.9733, allocations: 15.19 kB / 0.6485 GB, free: 85.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004828/0.9738, allocations: 97.3 kB / 0.6486 GB, free: 84.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009423/0.9747, allocations: 254 kB / 0.6488 GB, free: 84.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.976, allocations: 1.548 MB / 0.6504 GB, free: 83.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008856/0.9769, allocations: 106.9 kB / 0.6505 GB, free: 83.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-05/0.977, allocations: 59.25 kB / 0.6505 GB, free: 83.01 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.0002871/0.9773, allocations: 280.4 kB / 0.6508 GB, free: 82.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.9774, allocations: 75.16 kB / 0.6509 GB, free: 82.65 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003805/0.9812, allocations: 1.455 MB / 0.6523 GB, free: 81.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.9812, allocations: 8 kB / 0.6523 GB, free: 81.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.9813, allocations: 4 kB / 0.6523 GB, free: 81.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.9813, allocations: 3.094 kB / 0.6523 GB, free: 81.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.9843, allocations: 2.363 MB / 0.6546 GB, free: 79.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.9844, allocations: 4.031 kB / 0.6546 GB, free: 79.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005379/0.9849, allocations: 133.7 kB / 0.6547 GB, free: 79.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/0.9871, allocations: 0.5365 MB / 0.6552 GB, free: 78.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/0.9872, allocations: 39.73 kB / 0.6553 GB, free: 78.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000683/0.9879, allocations: 0.8666 MB / 0.6561 GB, free: 77.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.9879, allocations: 0 / 0.6561 GB, free: 77.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.9899, allocations: 1.571 MB / 0.6577 GB, free: 76.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.9903, allocations: 250.9 kB / 0.6579 GB, free: 76.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.9904, allocations: 28 kB / 0.6579 GB, free: 76.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005825/0.991, allocations: 43.78 kB / 0.658 GB, free: 76.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.9912, allocations: 62.67 kB / 0.658 GB, free: 76.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.297e-05/0.9912, allocations: 43.25 kB / 0.6581 GB, free: 76.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000467/0.9917, allocations: 418.7 kB / 0.6585 GB, free: 75.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.9917, allocations: 3.938 kB / 0.6585 GB, free: 75.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001094/0.9928, allocations: 386.8 kB / 0.6588 GB, free: 75.3 MB / 394.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 (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) * 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.0007867/0.9936, allocations: 432.3 kB / 0.6593 GB, free: 75.01 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.9951, allocations: 1.105 MB / 0.6603 GB, free: 73.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.9951, allocations: 0 / 0.6603 GB, free: 73.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/0.9958, allocations: 0.64 MB / 0.661 GB, free: 73.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.9964, allocations: 117 kB / 0.6611 GB, free: 73.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.9985, allocations: 1.276 MB / 0.6623 GB, free: 71.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.9989, allocations: 1.031 MB / 0.6633 GB, free: 71.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004753/0.9994, allocations: 118.9 kB / 0.6634 GB, free: 70.96 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.9996, allocations: 88.5 kB / 0.6635 GB, free: 70.88 MB / 394.7 MB Notification: Performance of SimCode: time 2.9e-07/0.9996, allocations: 3.938 kB / 0.6635 GB, free: 70.88 MB / 394.7 MB Notification: Performance of Templates: time 0.01948/1.019, allocations: 13.09 MB / 0.6763 GB, free: 58.49 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)