Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.001385/0.001385, allocations: 178.4 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.446/1.446, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0009073/0.0009074, allocations: 95.2 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02437/0.02437, allocations: 5.283 MB / 336.5 MB, free: 9.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008526/0.008526, allocations: 2.303 MB / 390.8 MB, free: 3.539 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.426e-05/1.429e-05, allocations: 0 / 450.1 MB, free: 48.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2659, allocations: 52.2 MB / 0.4905 GB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.4648, allocations: 95.65 MB / 0.5839 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.4651, allocations: 71.97 kB / 0.584 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1078/0.5729, allocations: 35.42 MB / 0.6186 GB, free: 13.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.5729, allocations: 0 / 0.6186 GB, free: 13.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.067e-05/0.573, allocations: 20 kB / 0.6186 GB, free: 13.14 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.002938/0.5759, allocations: 1.342 MB / 0.6199 GB, free: 11.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.576, allocations: 8.031 kB / 0.6199 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001569/0.5775, allocations: 290.4 kB / 0.6202 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009277/0.5785, allocations: 0.5883 MB / 0.6208 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.607e-05/0.5785, allocations: 36 kB / 0.6208 GB, free: 10.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.5787, allocations: 67.95 kB / 0.6209 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001753/0.5805, allocations: 0.9413 MB / 0.6218 GB, free: 9.766 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.5822, allocations: 0.9686 MB / 0.6227 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.5823, allocations: 4 kB / 0.6227 GB, free: 8.738 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.221e-05/0.5824, allocations: 7.984 kB / 0.6227 GB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/0.5824, allocations: 24 kB / 0.6228 GB, free: 8.707 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006879/0.5893, allocations: 4.355 MB / 0.627 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/0.5916, allocations: 1.75 MB / 0.6287 GB, free: 2.172 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005359/0.5922, allocations: 316.1 kB / 0.629 GB, free: 1.859 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001819/0.5924, allocations: 174.8 kB / 0.6292 GB, free: 1.652 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007091/0.5931, allocations: 0.5058 MB / 0.6297 GB, free: 1.102 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.415e-06/0.5931, allocations: 0 / 0.6297 GB, free: 1.102 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004277/0.5974, allocations: 1.104 MB / 0.6308 GB, free: 15.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/0.5976, allocations: 307.5 kB / 0.6311 GB, free: 15.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007254/0.5983, allocations: 0.4904 MB / 0.6315 GB, free: 15.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.254e-05/0.5984, allocations: 33.64 kB / 0.6316 GB, free: 15.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003678/0.5988, allocations: 486.6 kB / 0.632 GB, free: 14.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.599, allocations: 248.5 kB / 0.6323 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.5991, allocations: 0 / 0.6323 GB, free: 14.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5992, allocations: 378.8 kB / 0.6326 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004551/0.5997, allocations: 286.6 kB / 0.6329 GB, free: 13.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006246/0.6003, allocations: 0.512 MB / 0.6334 GB, free: 13.08 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.0136/0.6139, allocations: 2.512 MB / 0.6359 GB, free: 10.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.67e-05/0.614, allocations: 4 kB / 0.6359 GB, free: 10.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002681/0.6167, allocations: 1.09 MB / 0.6369 GB, free: 9.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.6167, allocations: 89.11 kB / 0.637 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.6168, allocations: 11.98 kB / 0.637 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004858/0.6173, allocations: 101 kB / 0.6371 GB, free: 9.227 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.6183, allocations: 243.6 kB / 0.6374 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.6198, allocations: 1.506 MB / 0.6388 GB, free: 7.363 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009068/0.6208, allocations: 95.14 kB / 0.6389 GB, free: 7.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-05/0.6209, allocations: 55.95 kB / 0.639 GB, free: 7.215 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.0003897/0.6213, allocations: 251.4 kB / 0.6392 GB, free: 6.945 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00404/0.6253, allocations: 1.162 MB / 0.6403 GB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.6255, allocations: 83.09 kB / 0.6404 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004408/0.6299, allocations: 1.344 MB / 0.6417 GB, free: 4.328 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.63, allocations: 12 kB / 0.6417 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.63, allocations: 0 / 0.6417 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-05/0.63, allocations: 7.938 kB / 0.6418 GB, free: 4.309 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003689/0.6337, allocations: 2.118 MB / 0.6438 GB, free: 2.133 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.6337, allocations: 4 kB / 0.6438 GB, free: 2.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005844/0.6343, allocations: 127.8 kB / 0.644 GB, free: 2.004 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002311/0.6366, allocations: 0.541 MB / 0.6445 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.029e-05/0.6367, allocations: 27.95 kB / 0.6445 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008911/0.6376, allocations: 0.8491 MB / 0.6453 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.6376, allocations: 3.953 kB / 0.6453 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2182/0.8558, allocations: 1.455 MB / 0.6468 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005437/0.8564, allocations: 249.3 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.8566, allocations: 15.23 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006433/0.8572, allocations: 37.58 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.8574, allocations: 56.95 kB / 0.6471 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.087e-05/0.8575, allocations: 38.33 kB / 0.6471 GB, free: 113.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000556/0.8581, allocations: 381.5 kB / 0.6475 GB, free: 113.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8581, allocations: 0 / 0.6475 GB, free: 113.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001371/0.8595, allocations: 353.7 kB / 0.6478 GB, free: 113.3 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.003415/0.8629, allocations: 2.443 MB / 0.6502 GB, free: 112.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.8645, allocations: 1.038 MB / 0.6512 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.8646, allocations: 1.5 kB / 0.6512 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.8653, allocations: 0.6173 MB / 0.6518 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/0.866, allocations: 95.75 kB / 0.6519 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.8689, allocations: 1.394 MB / 0.6533 GB, free: 111.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.8694, allocations: 1.035 MB / 0.6543 GB, free: 110.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005205/0.8699, allocations: 116.8 kB / 0.6544 GB, free: 110.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005196/0.8705, allocations: 398.2 kB / 0.6548 GB, free: 110.7 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.8705, allocations: 0 / 0.6548 GB, free: 110.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.9101, allocations: 18.66 MB / 0.673 GB, free: 109.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.9103, allocations: 175.8 kB / 0.6732 GB, free: 109.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.736/3.646, allocations: 2.531 kB / 0.6732 GB, free: 109.5 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)