Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",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.001378/0.001378, 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.552/1.552, 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.000862/0.0008619, allocations: 99.84 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.02446/0.02446, allocations: 5.287 MB / 341.8 MB, free: 4.801 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007887/0.007888, allocations: 2.29 MB / 396.2 MB, free: 70.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.917e-05/3.934e-05, allocations: 4 kB / 459.8 MB, free: 6.891 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2856, allocations: 52.19 MB / 0.5 GB, free: 42.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1163/0.402, allocations: 96.31 MB / 0.594 GB, free: 9.789 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.4023, allocations: 71.91 kB / 0.5941 GB, free: 9.719 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3296/0.7319, allocations: 35.83 MB / 0.6291 GB, free: 94.97 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.7319, allocations: 0 / 0.6291 GB, free: 94.97 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.223e-05/0.732, allocations: 19.66 kB / 0.6291 GB, free: 94.97 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.002488/0.7345, allocations: 1.339 MB / 0.6304 GB, free: 94.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.7345, allocations: 7.562 kB / 0.6304 GB, free: 94.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.7347, allocations: 163.3 kB / 0.6306 GB, free: 94.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/0.7361, allocations: 299 kB / 0.6308 GB, free: 94.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007594/0.7369, allocations: 0.5811 MB / 0.6314 GB, free: 93.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.7369, allocations: 84.42 kB / 0.6315 GB, free: 93.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.7371, allocations: 110.6 kB / 0.6316 GB, free: 93.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.7387, allocations: 1.128 MB / 0.6327 GB, free: 93.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.7387, allocations: 6.594 kB / 0.6327 GB, free: 93.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.966e-05/0.7388, allocations: 49.88 kB / 0.6328 GB, free: 93.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.7389, allocations: 23.19 kB / 0.6328 GB, free: 93.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.7404, allocations: 1.005 MB / 0.6338 GB, free: 93.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005425/0.7458, allocations: 4.539 MB / 0.6382 GB, free: 91.69 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.7477, allocations: 1.785 MB / 0.6399 GB, free: 90.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/0.7482, allocations: 333.8 kB / 0.6403 GB, free: 90.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.7483, allocations: 173.6 kB / 0.6404 GB, free: 89.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006048/0.7489, allocations: 0.5369 MB / 0.6409 GB, free: 89.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.104e-06/0.7489, allocations: 1.031 kB / 0.6409 GB, free: 89.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003539/0.7525, allocations: 1.168 MB / 0.6421 GB, free: 89.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.822e-05/0.7526, allocations: 311.4 kB / 0.6424 GB, free: 88.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005381/0.7531, allocations: 0.5308 MB / 0.6429 GB, free: 88.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.143e-05/0.7532, allocations: 41.33 kB / 0.6429 GB, free: 88.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.7534, allocations: 483.8 kB / 0.6434 GB, free: 88.05 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.7535, allocations: 268.8 kB / 0.6437 GB, free: 87.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.7536, allocations: 23.88 kB / 0.6437 GB, free: 87.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.495e-05/0.7537, allocations: 382.3 kB / 0.644 GB, free: 87.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000441/0.7541, allocations: 307.1 kB / 0.6443 GB, free: 87.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005537/0.7547, allocations: 0.54 MB / 0.6449 GB, free: 86.95 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.01427/0.769, allocations: 2.732 MB / 0.6475 GB, free: 86.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.769, allocations: 4 kB / 0.6475 GB, free: 86.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001815/0.7708, allocations: 1.161 MB / 0.6487 GB, free: 85 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.637e-05/0.7709, allocations: 93.98 kB / 0.6488 GB, free: 84.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.7709, allocations: 8 kB / 0.6488 GB, free: 84.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/0.7714, allocations: 93.34 kB / 0.6489 GB, free: 84.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009784/0.7724, allocations: 252.1 kB / 0.6491 GB, free: 84.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.7736, allocations: 1.566 MB / 0.6506 GB, free: 82.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007654/0.7744, allocations: 102.7 kB / 0.6507 GB, free: 82.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.792e-05/0.7745, allocations: 53.8 kB / 0.6508 GB, free: 82.84 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.0002546/0.7747, allocations: 279.5 kB / 0.651 GB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.7749, allocations: 75.16 kB / 0.6511 GB, free: 82.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003887/0.7788, allocations: 1.465 MB / 0.6525 GB, free: 81.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.7788, allocations: 8 kB / 0.6526 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.7788, allocations: 3.938 kB / 0.6526 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.7788, allocations: 3.516 kB / 0.6526 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002772/0.7816, allocations: 2.352 MB / 0.6549 GB, free: 79.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.7816, allocations: 0 / 0.6549 GB, free: 79.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005395/0.7821, allocations: 130.7 kB / 0.655 GB, free: 79.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/0.7844, allocations: 0.5468 MB / 0.6555 GB, free: 78.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.741e-05/0.7844, allocations: 41.08 kB / 0.6556 GB, free: 78.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000636/0.7851, allocations: 0.8646 MB / 0.6564 GB, free: 77.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.7851, allocations: 0 / 0.6564 GB, free: 77.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.7869, allocations: 1.566 MB / 0.6579 GB, free: 76.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002766/0.7872, allocations: 252.3 kB / 0.6582 GB, free: 76.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.7874, allocations: 27.23 kB / 0.6582 GB, free: 75.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000582/0.788, allocations: 54.47 kB / 0.6582 GB, free: 75.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.7881, allocations: 53.83 kB / 0.6583 GB, free: 75.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/0.7882, allocations: 42.73 kB / 0.6583 GB, free: 75.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000404/0.7886, allocations: 416.8 kB / 0.6587 GB, free: 75.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7886, allocations: 0 / 0.6587 GB, free: 75.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008773/0.7895, allocations: 387.8 kB / 0.6591 GB, free: 75.12 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.003846/0.7933, allocations: 2.571 MB / 0.6616 GB, free: 72.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.7956, allocations: 1.099 MB / 0.6627 GB, free: 71.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.7956, allocations: 4 kB / 0.6627 GB, free: 71.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.7967, allocations: 0.643 MB / 0.6633 GB, free: 70.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009214/0.7976, allocations: 112.5 kB / 0.6634 GB, free: 70.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.8008, allocations: 1.493 MB / 0.6649 GB, free: 69.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.8013, allocations: 1.034 MB / 0.6659 GB, free: 68.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006864/0.802, allocations: 112.8 kB / 0.666 GB, free: 68.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006449/0.8026, allocations: 397.5 kB / 0.6664 GB, free: 68.15 MB / 394.7 MB Notification: Performance of SimCode: time 1.173e-06/0.8026, allocations: 0 / 0.6664 GB, free: 68.15 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04566/0.8483, allocations: 20.83 MB / 0.6867 GB, free: 47.95 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.8486, allocations: 216.7 kB / 0.6869 GB, free: 47.73 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.673/3.522, allocations: 0 / 0.6869 GB, free: 47.73 MB / 394.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)