Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808",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.001656/0.001656, allocations: 180.9 kB / 7.65 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.52/1.52, allocations: 221.5 MB / 229.6 MB, free: 7.594 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.0008736/0.0008737, allocations: 101.3 kB / 280.5 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02298/0.02298, allocations: 5.3 MB / 336.5 MB, free: 9.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008991/0.008991, allocations: 2.286 MB / 390.8 MB, free: 3.559 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.913e-05, allocations: 0 / 450.1 MB, free: 48.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2922, allocations: 52.2 MB / 0.4905 GB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4278, allocations: 95.64 MB / 0.5839 GB, free: 1.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.428, allocations: 67.97 kB / 0.584 GB, free: 1.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09353/0.5216, allocations: 35.44 MB / 0.6186 GB, free: 13.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5216, allocations: 0 / 0.6186 GB, free: 13.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.85e-05/0.5217, allocations: 20 kB / 0.6186 GB, free: 13.23 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.003291/0.525, allocations: 1.342 MB / 0.6199 GB, free: 11.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.525, allocations: 8.031 kB / 0.6199 GB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/0.5267, allocations: 294.4 kB / 0.6202 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.5279, allocations: 0.5805 MB / 0.6208 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.406e-05/0.528, allocations: 40 kB / 0.6208 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.5281, allocations: 60 kB / 0.6209 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001797/0.5299, allocations: 0.9412 MB / 0.6218 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.5317, allocations: 0.9725 MB / 0.6227 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.5317, allocations: 4 kB / 0.6227 GB, free: 8.824 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.681e-05/0.5318, allocations: 7.938 kB / 0.6227 GB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/0.5319, allocations: 24 kB / 0.6228 GB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007222/0.5391, allocations: 4.359 MB / 0.627 GB, free: 4.246 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002824/0.542, allocations: 1.742 MB / 0.6287 GB, free: 2.262 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005868/0.5426, allocations: 312.1 kB / 0.629 GB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002603/0.5429, allocations: 182.7 kB / 0.6292 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000945/0.5438, allocations: 0.5058 MB / 0.6297 GB, free: 1.188 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.416e-06/0.5439, allocations: 3.938 kB / 0.6297 GB, free: 1.184 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004454/0.5483, allocations: 1.1 MB / 0.6308 GB, free: 72 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002569/0.5486, allocations: 311.5 kB / 0.6311 GB, free: 15.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009143/0.5495, allocations: 498.1 kB / 0.6315 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.405e-05/0.5496, allocations: 29.73 kB / 0.6316 GB, free: 15.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/0.5501, allocations: 494.6 kB / 0.632 GB, free: 14.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.5504, allocations: 244.5 kB / 0.6323 GB, free: 14.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.865e-05/0.5505, allocations: 0 / 0.6323 GB, free: 14.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002171/0.5507, allocations: 382.8 kB / 0.6326 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005026/0.5512, allocations: 278.6 kB / 0.6329 GB, free: 13.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007126/0.5519, allocations: 0.5159 MB / 0.6334 GB, free: 13.17 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.01349/0.5654, allocations: 2.516 MB / 0.6359 GB, free: 10.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.5655, allocations: 7.938 kB / 0.6359 GB, free: 10.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002761/0.5682, allocations: 1.086 MB / 0.6369 GB, free: 9.527 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.228e-05/0.5683, allocations: 89.09 kB / 0.637 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.5684, allocations: 8 kB / 0.637 GB, free: 9.414 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000503/0.5689, allocations: 100.9 kB / 0.6371 GB, free: 9.312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.57, allocations: 247.6 kB / 0.6374 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.5716, allocations: 1.506 MB / 0.6388 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009183/0.5725, allocations: 95.11 kB / 0.6389 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9e-05/0.5726, allocations: 47.97 kB / 0.639 GB, free: 7.305 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.0003309/0.5729, allocations: 262.5 kB / 0.6392 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004164/0.5771, allocations: 1.162 MB / 0.6403 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.5773, allocations: 83.11 kB / 0.6404 GB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/0.5818, allocations: 1.344 MB / 0.6417 GB, free: 4.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.5818, allocations: 8 kB / 0.6417 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5819, allocations: 0 / 0.6417 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.5819, allocations: 7.938 kB / 0.6418 GB, free: 4.395 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003941/0.5858, allocations: 2.118 MB / 0.6438 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.5859, allocations: 4 kB / 0.6438 GB, free: 2.215 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005986/0.5865, allocations: 131.8 kB / 0.644 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002351/0.5888, allocations: 0.5371 MB / 0.6445 GB, free: 1.539 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.762e-05/0.5889, allocations: 23.97 kB / 0.6445 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009618/0.5899, allocations: 0.8491 MB / 0.6453 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.5899, allocations: 0 / 0.6453 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2614/0.8513, allocations: 1.466 MB / 0.6468 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006892/0.8521, allocations: 251.5 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.8523, allocations: 12.61 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.8529, allocations: 36.8 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.8532, allocations: 58.62 kB / 0.6471 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.841e-05/0.8533, allocations: 43.61 kB / 0.6471 GB, free: 113.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006167/0.8539, allocations: 379.4 kB / 0.6475 GB, free: 113.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8539, allocations: 1.688 kB / 0.6475 GB, free: 113.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001532/0.8554, allocations: 355.2 kB / 0.6478 GB, free: 113.4 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 (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.003982/0.8594, allocations: 2.441 MB / 0.6502 GB, free: 112.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.8614, allocations: 1.035 MB / 0.6512 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.8614, allocations: 2.094 kB / 0.6512 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009156/0.8624, allocations: 0.6161 MB / 0.6518 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009121/0.8633, allocations: 92.12 kB / 0.6519 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.867, allocations: 1.399 MB / 0.6533 GB, free: 111.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007263/0.8678, allocations: 1.034 MB / 0.6543 GB, free: 110.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005828/0.8684, allocations: 116 kB / 0.6544 GB, free: 110.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005628/0.8689, allocations: 398.3 kB / 0.6548 GB, free: 110.8 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/0.8689, allocations: 0 / 0.6548 GB, free: 110.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04848/0.9174, allocations: 18.65 MB / 0.673 GB, free: 109.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001456/0.9176, allocations: 164.4 kB / 0.6732 GB, free: 109.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.718/3.636, allocations: 4 kB / 0.6732 GB, free: 109.6 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)