Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002133/0.002133, allocations: 174.6 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.374/1.374, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.001097/0.001097, allocations: 90.28 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0252/0.0252, allocations: 5.29 MB / 341.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008515/0.008515, allocations: 2.295 MB / 396.2 MB, free: 70.48 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.192e-05, allocations: 4 kB / 457.3 MB, free: 9.398 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2838, allocations: 52.19 MB / 0.4975 GB, free: 41.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.3994, allocations: 96.3 MB / 0.5916 GB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.3996, allocations: 63.98 kB / 0.5917 GB, free: 10.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3323/0.7319, allocations: 35.84 MB / 0.6267 GB, free: 93.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.732, allocations: 0 / 0.6267 GB, free: 93.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.732, allocations: 23.25 kB / 0.6267 GB, free: 93.86 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.002536/0.7346, allocations: 1.336 MB / 0.628 GB, free: 93.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.7346, allocations: 13.66 kB / 0.628 GB, free: 93.09 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.7348, allocations: 163.9 kB / 0.6282 GB, free: 93.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.7361, allocations: 301.4 kB / 0.6284 GB, free: 92.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007097/0.7369, allocations: 0.5852 MB / 0.629 GB, free: 92.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.7369, allocations: 79.88 kB / 0.6291 GB, free: 92.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.7371, allocations: 109.8 kB / 0.6292 GB, free: 92.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.7387, allocations: 1.131 MB / 0.6303 GB, free: 92.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.7387, allocations: 1.688 kB / 0.6303 GB, free: 92.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-05/0.7388, allocations: 43.94 kB / 0.6303 GB, free: 92.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.7388, allocations: 24.91 kB / 0.6304 GB, free: 92.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.7403, allocations: 1.008 MB / 0.6313 GB, free: 92.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005258/0.7456, allocations: 4.543 MB / 0.6358 GB, free: 90.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.7475, allocations: 1.78 MB / 0.6375 GB, free: 89.15 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/0.748, allocations: 331.6 kB / 0.6378 GB, free: 89.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001185/0.7481, allocations: 175.6 kB / 0.638 GB, free: 88.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006141/0.7488, allocations: 0.5385 MB / 0.6385 GB, free: 88.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.896e-06/0.7488, allocations: 0 / 0.6385 GB, free: 88.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003565/0.7523, allocations: 1.169 MB / 0.6397 GB, free: 88.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.7524, allocations: 306.2 kB / 0.64 GB, free: 87.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005829/0.753, allocations: 0.5224 MB / 0.6405 GB, free: 87.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-05/0.7531, allocations: 42.67 kB / 0.6405 GB, free: 87.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.7533, allocations: 492.8 kB / 0.641 GB, free: 87.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.7535, allocations: 264.5 kB / 0.6412 GB, free: 86.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.429e-05/0.7536, allocations: 23.16 kB / 0.6413 GB, free: 86.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.7537, allocations: 386.7 kB / 0.6416 GB, free: 86.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004558/0.7541, allocations: 305.8 kB / 0.6419 GB, free: 86.33 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005382/0.7547, allocations: 0.5354 MB / 0.6424 GB, free: 85.92 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.01505/0.7697, allocations: 2.741 MB / 0.6451 GB, free: 85.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.7698, allocations: 0 / 0.6451 GB, free: 85.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001974/0.7717, allocations: 1.161 MB / 0.6463 GB, free: 84.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.377e-05/0.7718, allocations: 89.55 kB / 0.6463 GB, free: 84.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.7718, allocations: 10.69 kB / 0.6464 GB, free: 84.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004606/0.7723, allocations: 95.66 kB / 0.6464 GB, free: 84.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009876/0.7733, allocations: 254.9 kB / 0.6467 GB, free: 84.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.7746, allocations: 1.552 MB / 0.6482 GB, free: 83.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009716/0.7756, allocations: 114.9 kB / 0.6483 GB, free: 83.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.7757, allocations: 51.5 kB / 0.6484 GB, free: 83.1 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.0003401/0.7761, allocations: 283.5 kB / 0.6486 GB, free: 82.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.7762, allocations: 77.14 kB / 0.6487 GB, free: 82.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/0.7801, allocations: 1.452 MB / 0.6501 GB, free: 81.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.7801, allocations: 8 kB / 0.6501 GB, free: 81.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.7801, allocations: 11.94 kB / 0.6501 GB, free: 81.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.7802, allocations: 3.234 kB / 0.6501 GB, free: 81.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00301/0.7832, allocations: 2.355 MB / 0.6524 GB, free: 79.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.7832, allocations: 4.031 kB / 0.6524 GB, free: 79.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005409/0.7838, allocations: 132.9 kB / 0.6526 GB, free: 79.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/0.7859, allocations: 0.5369 MB / 0.6531 GB, free: 78.97 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.522e-05/0.786, allocations: 39.48 kB / 0.6531 GB, free: 78.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006939/0.7867, allocations: 0.8717 MB / 0.654 GB, free: 78.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.7867, allocations: 32 / 0.654 GB, free: 78.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.7886, allocations: 1.575 MB / 0.6555 GB, free: 76.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/0.789, allocations: 251.8 kB / 0.6558 GB, free: 76.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.7892, allocations: 28 kB / 0.6558 GB, free: 76.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000571/0.7897, allocations: 46.8 kB / 0.6558 GB, free: 76.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.7899, allocations: 63.75 kB / 0.6559 GB, free: 76.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.434e-05/0.7899, allocations: 34.56 kB / 0.6559 GB, free: 76.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005031/0.7905, allocations: 412.3 kB / 0.6563 GB, free: 75.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7905, allocations: 0 / 0.6563 GB, free: 75.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001093/0.7916, allocations: 388.4 kB / 0.6567 GB, free: 75.43 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 (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) * 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.002935/0.7945, allocations: 2.589 MB / 0.6592 GB, free: 73.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.7962, allocations: 1.103 MB / 0.6603 GB, free: 71.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.7962, allocations: 0 / 0.6603 GB, free: 71.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006926/0.7969, allocations: 0.6312 MB / 0.6609 GB, free: 71.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006539/0.7976, allocations: 119.5 kB / 0.661 GB, free: 71.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.8002, allocations: 1.489 MB / 0.6625 GB, free: 69.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.8006, allocations: 1.033 MB / 0.6635 GB, free: 68.88 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004923/0.8011, allocations: 117.1 kB / 0.6636 GB, free: 68.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004622/0.8016, allocations: 396.5 kB / 0.664 GB, free: 68.45 MB / 394.7 MB Notification: Performance of SimCode: time 6.02e-07/0.8016, allocations: 3.938 kB / 0.664 GB, free: 68.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.8366, allocations: 20.85 MB / 0.6843 GB, free: 48.3 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001441/0.8368, allocations: 217.2 kB / 0.6845 GB, free: 48.08 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.599/3.435, allocations: 4 kB / 0.6846 GB, free: 48.08 MB / 394.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)