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: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.00147/0.00147, allocations: 174.1 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.4/1.4, 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.0008698/0.0008695, allocations: 95.61 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02505/0.02505, allocations: 5.279 MB / 341.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007913/0.007913, allocations: 2.301 MB / 396.2 MB, free: 70.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.371e-05, allocations: 3.984 kB / 459.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.363, allocations: 52.2 MB / 0.5 GB, free: 42.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1112/0.4742, allocations: 96.3 MB / 0.594 GB, free: 9.793 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.4744, allocations: 67.97 kB / 0.5941 GB, free: 9.727 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3604/0.8348, allocations: 35.83 MB / 0.6291 GB, free: 94.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.8348, allocations: 0 / 0.6291 GB, free: 94.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.712e-05/0.8349, allocations: 19.53 kB / 0.6291 GB, free: 94.99 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.002766/0.8377, allocations: 1.34 MB / 0.6304 GB, free: 94.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.8377, allocations: 11.5 kB / 0.6304 GB, free: 94.22 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001897/0.8379, allocations: 165.5 kB / 0.6306 GB, free: 94.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/0.8394, allocations: 305.7 kB / 0.6309 GB, free: 94.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007857/0.8402, allocations: 0.5843 MB / 0.6314 GB, free: 93.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.209e-05/0.8402, allocations: 81.09 kB / 0.6315 GB, free: 93.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.8404, allocations: 104.4 kB / 0.6316 GB, free: 93.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.8421, allocations: 1.13 MB / 0.6327 GB, free: 93.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.8421, allocations: 3.969 kB / 0.6327 GB, free: 93.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.8422, allocations: 48.95 kB / 0.6328 GB, free: 93.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.8422, allocations: 25 kB / 0.6328 GB, free: 93.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.8439, allocations: 1.004 MB / 0.6338 GB, free: 93.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005633/0.8495, allocations: 4.541 MB / 0.6382 GB, free: 91.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002044/0.8516, allocations: 1.788 MB / 0.6399 GB, free: 90.17 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004941/0.8521, allocations: 332.9 kB / 0.6403 GB, free: 90.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.8522, allocations: 171.1 kB / 0.6404 GB, free: 89.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006565/0.8529, allocations: 0.5381 MB / 0.6409 GB, free: 89.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.915e-06/0.8529, allocations: 0 / 0.6409 GB, free: 89.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003762/0.8567, allocations: 1.167 MB / 0.6421 GB, free: 89.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.8568, allocations: 312.6 kB / 0.6424 GB, free: 88.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005895/0.8574, allocations: 0.5267 MB / 0.6429 GB, free: 88.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.8574, allocations: 41.17 kB / 0.6429 GB, free: 88.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/0.8577, allocations: 486.5 kB / 0.6434 GB, free: 88.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.8578, allocations: 262.7 kB / 0.6436 GB, free: 87.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.428e-05/0.8579, allocations: 23.66 kB / 0.6437 GB, free: 87.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.858, allocations: 390.3 kB / 0.644 GB, free: 87.47 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004805/0.8585, allocations: 301.5 kB / 0.6443 GB, free: 87.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005629/0.8591, allocations: 0.5439 MB / 0.6449 GB, free: 86.94 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.01465/0.8737, allocations: 2.732 MB / 0.6475 GB, free: 86.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.8738, allocations: 3.469 kB / 0.6475 GB, free: 86.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001917/0.8757, allocations: 1.163 MB / 0.6487 GB, free: 85.01 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.8757, allocations: 93.11 kB / 0.6488 GB, free: 84.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.8758, allocations: 4 kB / 0.6488 GB, free: 84.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004646/0.8762, allocations: 95.41 kB / 0.6489 GB, free: 84.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.8773, allocations: 256.3 kB / 0.6491 GB, free: 84.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.8786, allocations: 1.547 MB / 0.6506 GB, free: 83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009319/0.8796, allocations: 117.8 kB / 0.6507 GB, free: 82.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.161e-05/0.8797, allocations: 58.31 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.000329/0.88, allocations: 274.9 kB / 0.651 GB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.8802, allocations: 79.16 kB / 0.6511 GB, free: 82.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004044/0.8842, allocations: 1.467 MB / 0.6525 GB, free: 81.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.8843, allocations: 8 kB / 0.6526 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.8843, allocations: 4 kB / 0.6526 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.8843, allocations: 3.281 kB / 0.6526 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.8876, allocations: 2.343 MB / 0.6548 GB, free: 79.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.8876, allocations: 0 / 0.6548 GB, free: 79.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/0.8881, allocations: 136.8 kB / 0.655 GB, free: 79.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002134/0.8903, allocations: 0.5431 MB / 0.6555 GB, free: 78.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.189e-05/0.8904, allocations: 34.45 kB / 0.6555 GB, free: 78.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007081/0.8911, allocations: 0.8741 MB / 0.6564 GB, free: 77.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.8911, allocations: 0 / 0.6564 GB, free: 77.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.893, allocations: 1.565 MB / 0.6579 GB, free: 76.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.8934, allocations: 252.3 kB / 0.6582 GB, free: 76.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.8936, allocations: 30.86 kB / 0.6582 GB, free: 75.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.8942, allocations: 41.91 kB / 0.6582 GB, free: 75.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.8943, allocations: 69.25 kB / 0.6583 GB, free: 75.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/0.8944, allocations: 39.83 kB / 0.6583 GB, free: 75.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000428/0.8948, allocations: 408.2 kB / 0.6587 GB, free: 75.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8948, allocations: 0 / 0.6587 GB, free: 75.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001045/0.8959, allocations: 392.1 kB / 0.6591 GB, free: 75.13 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.002934/0.8988, allocations: 2.575 MB / 0.6616 GB, free: 72.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.9005, allocations: 1.099 MB / 0.6627 GB, free: 71.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9005, allocations: 0 / 0.6627 GB, free: 71.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007261/0.9012, allocations: 0.6396 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.0006806/0.9019, allocations: 118.1 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.002956/0.9049, allocations: 1.482 MB / 0.6649 GB, free: 69.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.9053, allocations: 1.034 MB / 0.6659 GB, free: 68.58 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004992/0.9058, allocations: 118.5 kB / 0.666 GB, free: 68.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.9063, allocations: 399.1 kB / 0.6664 GB, free: 68.15 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.9063, allocations: 0 / 0.6664 GB, free: 68.15 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.9415, allocations: 20.83 MB / 0.6867 GB, free: 47.97 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.9417, allocations: 224.7 kB / 0.6869 GB, free: 47.74 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.668/3.609, allocations: 0 / 0.6869 GB, free: 47.74 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)