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.001015/0.001016, allocations: 172.9 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 221.5 MB / 229.6 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001265, allocations: 100.3 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02699/0.027, allocations: 5.289 MB / 336.5 MB, free: 9.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00874/0.00874, allocations: 2.296 MB / 390.8 MB, free: 3.551 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.959e-05/1.973e-05, allocations: 0 / 452 MB, free: 46.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2918, allocations: 52.2 MB / 0.4924 GB, free: 6.949 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.4215, allocations: 95.65 MB / 0.5858 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.4217, allocations: 63.98 kB / 0.5859 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09621/0.5179, allocations: 35.43 MB / 0.6205 GB, free: 12.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.518, allocations: 0 / 0.6205 GB, free: 12.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.932e-05/0.5181, allocations: 16 kB / 0.6205 GB, free: 12.98 MB / 410.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.004435/0.5225, allocations: 1.342 MB / 0.6218 GB, free: 11.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.659e-05/0.5226, allocations: 8.031 kB / 0.6218 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002702/0.5253, allocations: 294.4 kB / 0.6221 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.5271, allocations: 0.592 MB / 0.6227 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.392e-05/0.5272, allocations: 36 kB / 0.6227 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002531/0.5274, allocations: 68 kB / 0.6228 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003143/0.5306, allocations: 0.9373 MB / 0.6237 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003024/0.5337, allocations: 0.9686 MB / 0.6246 GB, free: 8.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.848e-05/0.5337, allocations: 4 kB / 0.6246 GB, free: 8.566 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.5339, allocations: 4 kB / 0.6246 GB, free: 8.562 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.124e-05/0.5339, allocations: 24 kB / 0.6247 GB, free: 8.539 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.5458, allocations: 4.359 MB / 0.6289 GB, free: 3.992 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003804/0.5496, allocations: 1.75 MB / 0.6306 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008383/0.5505, allocations: 304.2 kB / 0.6309 GB, free: 1.699 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002508/0.5508, allocations: 178.8 kB / 0.6311 GB, free: 1.488 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.552, allocations: 0.5097 MB / 0.6316 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 5.009e-06/0.552, allocations: 3.938 kB / 0.6316 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.007411/0.5595, allocations: 1.104 MB / 0.6327 GB, free: 15.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002251/0.5597, allocations: 303.5 kB / 0.633 GB, free: 15.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.561, allocations: 498.1 kB / 0.6334 GB, free: 14.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.5611, allocations: 29.7 kB / 0.6335 GB, free: 14.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006048/0.5617, allocations: 494.6 kB / 0.6339 GB, free: 14.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000391/0.5621, allocations: 240.5 kB / 0.6342 GB, free: 14.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.403e-05/0.5622, allocations: 4 kB / 0.6342 GB, free: 14.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/0.5625, allocations: 382.8 kB / 0.6345 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009091/0.5634, allocations: 278.6 kB / 0.6348 GB, free: 13.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.5646, allocations: 0.512 MB / 0.6353 GB, free: 12.92 MB / 426.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.02397/0.5886, allocations: 2.52 MB / 0.6378 GB, free: 10.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.745e-05/0.5886, allocations: 4 kB / 0.6378 GB, free: 10.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004028/0.5927, allocations: 1.089 MB / 0.6388 GB, free: 9.277 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.028e-05/0.5928, allocations: 93.88 kB / 0.6389 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.5928, allocations: 8 kB / 0.6389 GB, free: 9.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006507/0.5935, allocations: 96.78 kB / 0.639 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.5946, allocations: 259.5 kB / 0.6393 GB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001648/0.5963, allocations: 1.498 MB / 0.6407 GB, free: 7.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.5973, allocations: 91.03 kB / 0.6408 GB, free: 7.102 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.5975, allocations: 51.97 kB / 0.6409 GB, free: 7.051 MB / 426.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.0003973/0.5979, allocations: 250.3 kB / 0.6411 GB, free: 6.781 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004276/0.6022, allocations: 1.166 MB / 0.6422 GB, free: 5.605 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/0.6025, allocations: 75.11 kB / 0.6423 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004598/0.6071, allocations: 1.352 MB / 0.6436 GB, free: 4.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.6071, allocations: 8 kB / 0.6436 GB, free: 4.152 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6071, allocations: 0 / 0.6436 GB, free: 4.152 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.6072, allocations: 19.88 kB / 0.6437 GB, free: 4.133 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.6109, allocations: 2.106 MB / 0.6457 GB, free: 1.969 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.611, allocations: 0 / 0.6457 GB, free: 1.969 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006413/0.6116, allocations: 135.8 kB / 0.6458 GB, free: 1.836 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002308/0.6139, allocations: 0.541 MB / 0.6464 GB, free: 1.285 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.8e-05/0.614, allocations: 23.97 kB / 0.6464 GB, free: 1.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009143/0.615, allocations: 0.8529 MB / 0.6472 GB, free: 392 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.615, allocations: 0 / 0.6472 GB, free: 392 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2501/0.8651, allocations: 1.459 MB / 0.6487 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000597/0.8658, allocations: 254 kB / 0.6489 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.866, allocations: 8.781 kB / 0.6489 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.8666, allocations: 34.69 kB / 0.6489 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.8668, allocations: 64.14 kB / 0.649 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.8669, allocations: 41.16 kB / 0.649 GB, free: 114.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006214/0.8675, allocations: 376.2 kB / 0.6494 GB, free: 114.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8675, allocations: 3.391 kB / 0.6494 GB, free: 114.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001395/0.8689, allocations: 344.7 kB / 0.6497 GB, free: 114.6 MB / 426.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.003773/0.8727, allocations: 2.447 MB / 0.6521 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001937/0.8747, allocations: 1.035 MB / 0.6531 GB, free: 113.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.8747, allocations: 1.125 kB / 0.6531 GB, free: 113.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000873/0.8756, allocations: 0.6172 MB / 0.6537 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008061/0.8764, allocations: 91.55 kB / 0.6538 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/0.88, allocations: 1.41 MB / 0.6552 GB, free: 112.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007024/0.8808, allocations: 1.033 MB / 0.6562 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006281/0.8814, allocations: 113.6 kB / 0.6563 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005739/0.882, allocations: 396.3 kB / 0.6567 GB, free: 112 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/0.882, allocations: 0 / 0.6567 GB, free: 112 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04989/0.9319, allocations: 18.65 MB / 0.6749 GB, free: 111 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/0.9321, allocations: 166.9 kB / 0.6751 GB, free: 110.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.51/3.442, allocations: 0 / 0.6751 GB, free: 110.8 MB / 426.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)