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.001214/0.001213, 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.573/1.573, allocations: 221.4 MB / 234.6 MB, free: 14.41 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.001002/0.001002, allocations: 89.14 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.02445/0.02445, allocations: 5.281 MB / 341.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008096/0.008096, allocations: 2.293 MB / 396.2 MB, free: 70.46 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 3.588e-05/3.59e-05, allocations: 4 kB / 457.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.291, allocations: 52.19 MB / 0.4975 GB, free: 41.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.4138, allocations: 96.31 MB / 0.5916 GB, free: 10.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4141, allocations: 59.98 kB / 0.5917 GB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3611/0.7752, allocations: 35.84 MB / 0.6267 GB, free: 94.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.7753, allocations: 0 / 0.6267 GB, free: 94.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.097e-05/0.7753, allocations: 23.94 kB / 0.6267 GB, free: 94.04 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.002774/0.7781, allocations: 1.345 MB / 0.628 GB, free: 93.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.7781, allocations: 9.688 kB / 0.628 GB, free: 93.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000184/0.7783, allocations: 162.7 kB / 0.6282 GB, free: 93.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001458/0.7798, allocations: 298.9 kB / 0.6284 GB, free: 93.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008463/0.7807, allocations: 0.5815 MB / 0.629 GB, free: 92.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.317e-05/0.7807, allocations: 80.34 kB / 0.6291 GB, free: 92.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.7809, allocations: 113.5 kB / 0.6292 GB, free: 92.89 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.7826, allocations: 1.134 MB / 0.6303 GB, free: 92.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.7827, allocations: 0 / 0.6303 GB, free: 92.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.7828, allocations: 47.03 kB / 0.6303 GB, free: 92.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.421e-05/0.7828, allocations: 22.25 kB / 0.6304 GB, free: 92.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.7844, allocations: 1.007 MB / 0.6313 GB, free: 92.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005822/0.7902, allocations: 4.541 MB / 0.6358 GB, free: 90.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.7922, allocations: 1.785 MB / 0.6375 GB, free: 89.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.7927, allocations: 326.7 kB / 0.6378 GB, free: 89.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.7929, allocations: 180.2 kB / 0.638 GB, free: 89.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006637/0.7936, allocations: 0.5337 MB / 0.6385 GB, free: 88.69 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.444e-06/0.7936, allocations: 0 / 0.6385 GB, free: 88.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003809/0.7974, allocations: 1.17 MB / 0.6397 GB, free: 88.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.7975, allocations: 306.2 kB / 0.64 GB, free: 87.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007785/0.7983, allocations: 0.5246 MB / 0.6405 GB, free: 87.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.876e-05/0.7984, allocations: 44.64 kB / 0.6405 GB, free: 87.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.7987, allocations: 489.5 kB / 0.641 GB, free: 87.22 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000226/0.7989, allocations: 259.9 kB / 0.6412 GB, free: 87.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.696e-05/0.799, allocations: 26.88 kB / 0.6413 GB, free: 87.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.7991, allocations: 385 kB / 0.6416 GB, free: 86.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000492/0.7996, allocations: 307.9 kB / 0.6419 GB, free: 86.54 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005596/0.8002, allocations: 0.5344 MB / 0.6424 GB, free: 86.13 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.01511/0.8153, allocations: 2.743 MB / 0.6451 GB, free: 85.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.601e-05/0.8153, allocations: 2.844 kB / 0.6451 GB, free: 85.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002076/0.8174, allocations: 1.156 MB / 0.6463 GB, free: 84.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/0.8175, allocations: 92.17 kB / 0.6463 GB, free: 84.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.8175, allocations: 7.5 kB / 0.6463 GB, free: 84.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.818, allocations: 95.44 kB / 0.6464 GB, free: 84.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.8193, allocations: 258.9 kB / 0.6467 GB, free: 84.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.8207, allocations: 1.56 MB / 0.6482 GB, free: 83.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009425/0.8217, allocations: 113.2 kB / 0.6483 GB, free: 83.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.522e-05/0.8218, allocations: 50.78 kB / 0.6484 GB, free: 83.19 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.0003122/0.8221, allocations: 279.1 kB / 0.6486 GB, free: 82.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.8222, allocations: 75.16 kB / 0.6487 GB, free: 82.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.8262, allocations: 1.451 MB / 0.6501 GB, free: 81.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.445e-06/0.8262, allocations: 8 kB / 0.6501 GB, free: 81.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.8262, allocations: 7.938 kB / 0.6501 GB, free: 81.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.8262, allocations: 11.36 kB / 0.6501 GB, free: 81.58 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.8294, allocations: 2.357 MB / 0.6524 GB, free: 79.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.8294, allocations: 0 / 0.6524 GB, free: 79.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/0.8299, allocations: 133.5 kB / 0.6526 GB, free: 79.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.8322, allocations: 0.5349 MB / 0.6531 GB, free: 79.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.449e-05/0.8323, allocations: 38.41 kB / 0.6531 GB, free: 78.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007548/0.833, allocations: 0.8715 MB / 0.654 GB, free: 78.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.833, allocations: 0 / 0.654 GB, free: 78.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.8351, allocations: 1.578 MB / 0.6555 GB, free: 76.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000388/0.8355, allocations: 246.6 kB / 0.6558 GB, free: 76.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.8357, allocations: 31.52 kB / 0.6558 GB, free: 76.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005963/0.8363, allocations: 45.53 kB / 0.6558 GB, free: 76.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.8364, allocations: 60.69 kB / 0.6559 GB, free: 76.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.879e-05/0.8365, allocations: 43.08 kB / 0.6559 GB, free: 76.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004897/0.837, allocations: 411.2 kB / 0.6563 GB, free: 75.85 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.837, allocations: 0 / 0.6563 GB, free: 75.85 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00115/0.8382, allocations: 384.9 kB / 0.6567 GB, free: 75.48 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.003134/0.8413, allocations: 2.59 MB / 0.6592 GB, free: 73.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.8432, allocations: 1.105 MB / 0.6603 GB, free: 71.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.8432, allocations: 0 / 0.6603 GB, free: 71.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007399/0.844, allocations: 0.6337 MB / 0.6609 GB, free: 71.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.8447, allocations: 114.9 kB / 0.661 GB, free: 71.22 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.8475, allocations: 1.481 MB / 0.6625 GB, free: 69.85 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.8478, allocations: 1.034 MB / 0.6635 GB, free: 68.92 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004948/0.8483, allocations: 121.9 kB / 0.6636 GB, free: 68.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004748/0.8488, allocations: 397.2 kB / 0.664 GB, free: 68.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/0.8488, allocations: 0 / 0.664 GB, free: 68.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03503/0.8839, allocations: 20.84 MB / 0.6843 GB, free: 48.34 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/0.8841, allocations: 217.1 kB / 0.6845 GB, free: 48.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/3.478, allocations: 0 / 0.6845 GB, free: 48.12 MB / 394.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)