Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.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_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",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.00134/0.00134, allocations: 172.5 kB / 7.647 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.323/1.323, 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.0008166/0.0008166, allocations: 95.48 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.02215/0.02215, allocations: 5.29 MB / 336.5 MB, free: 9.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008562/0.008563, allocations: 2.3 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.963e-05/1.95e-05, allocations: 3.984 kB / 450.1 MB, free: 48.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3344, allocations: 52.2 MB / 0.4905 GB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4677, allocations: 95.65 MB / 0.5839 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.468, allocations: 63.98 kB / 0.584 GB, free: 0.918 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09641/0.5644, allocations: 35.44 MB / 0.6186 GB, free: 13.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.5645, allocations: 0 / 0.6186 GB, free: 13.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.804e-05/0.5645, 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.003023/0.5676, allocations: 1.334 MB / 0.6199 GB, free: 11.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.5676, allocations: 12.03 kB / 0.6199 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001506/0.5691, allocations: 294.4 kB / 0.6202 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009266/0.5701, allocations: 0.5843 MB / 0.6208 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.519e-05/0.5701, allocations: 40 kB / 0.6208 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.5703, allocations: 71.95 kB / 0.6209 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00169/0.572, allocations: 0.9335 MB / 0.6218 GB, free: 9.766 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/0.5737, allocations: 0.9647 MB / 0.6227 GB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.5738, allocations: 4 kB / 0.6227 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.775e-05/0.5738, allocations: 0 / 0.6227 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/0.5739, allocations: 28 kB / 0.6228 GB, free: 8.715 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006748/0.5806, allocations: 4.363 MB / 0.627 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002413/0.5831, allocations: 1.754 MB / 0.6287 GB, free: 2.168 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.5836, allocations: 308.2 kB / 0.629 GB, free: 1.863 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001903/0.5838, allocations: 174.8 kB / 0.6292 GB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007042/0.5845, allocations: 0.5096 MB / 0.6297 GB, free: 1.102 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.384e-06/0.5845, allocations: 0 / 0.6297 GB, free: 1.102 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004284/0.5888, allocations: 1.1 MB / 0.6308 GB, free: 15.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002325/0.5891, allocations: 311.4 kB / 0.6311 GB, free: 15.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009444/0.59, allocations: 498.1 kB / 0.6315 GB, free: 15.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.5902, allocations: 29.7 kB / 0.6316 GB, free: 15.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005088/0.5907, allocations: 494.6 kB / 0.632 GB, free: 14.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000296/0.591, allocations: 244.5 kB / 0.6323 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.888e-05/0.5911, allocations: 0 / 0.6323 GB, free: 14.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.5913, allocations: 382.8 kB / 0.6326 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005291/0.5918, allocations: 278.6 kB / 0.6329 GB, free: 13.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007006/0.5925, allocations: 0.5159 MB / 0.6334 GB, free: 13.09 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.01367/0.6062, allocations: 2.516 MB / 0.6359 GB, free: 10.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/0.6062, allocations: 0 / 0.6359 GB, free: 10.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002714/0.609, allocations: 1.09 MB / 0.6369 GB, free: 9.449 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.672e-05/0.6091, allocations: 97.09 kB / 0.637 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.6091, allocations: 8 kB / 0.637 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005651/0.6097, allocations: 93.03 kB / 0.6371 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.6108, allocations: 255.5 kB / 0.6374 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.6124, allocations: 1.502 MB / 0.6388 GB, free: 7.363 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009584/0.6134, allocations: 91.14 kB / 0.6389 GB, free: 7.273 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.6135, allocations: 51.97 kB / 0.639 GB, free: 7.223 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.0003797/0.6139, allocations: 259.7 kB / 0.6392 GB, free: 6.945 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004079/0.618, allocations: 1.166 MB / 0.6403 GB, free: 5.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.6181, allocations: 79.11 kB / 0.6404 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004475/0.6226, allocations: 1.348 MB / 0.6417 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.6227, allocations: 12 kB / 0.6418 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.6227, allocations: 0 / 0.6418 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.6227, allocations: 7.938 kB / 0.6418 GB, free: 4.305 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.6263, allocations: 2.11 MB / 0.6438 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.6264, allocations: 0 / 0.6438 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.627, allocations: 139.8 kB / 0.644 GB, free: 2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002334/0.6293, allocations: 0.541 MB / 0.6445 GB, free: 1.449 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-05/0.6294, allocations: 23.97 kB / 0.6445 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009619/0.6304, allocations: 0.849 MB / 0.6453 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.6304, allocations: 7.984 kB / 0.6453 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.26/0.8903, allocations: 1.453 MB / 0.6468 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000593/0.891, allocations: 253.4 kB / 0.647 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.8912, allocations: 15 kB / 0.647 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006555/0.8918, allocations: 39.28 kB / 0.6471 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.892, allocations: 57.53 kB / 0.6471 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.859e-05/0.8921, allocations: 37.45 kB / 0.6471 GB, free: 113.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005867/0.8927, allocations: 377.6 kB / 0.6475 GB, free: 113 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8927, allocations: 0 / 0.6475 GB, free: 113 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00162/0.8944, allocations: 351.9 kB / 0.6478 GB, free: 113 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.003916/0.8983, allocations: 2.448 MB / 0.6502 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.9002, allocations: 1.03 MB / 0.6512 GB, free: 111.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.9002, allocations: 0 / 0.6512 GB, free: 111.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000846/0.9011, allocations: 0.6137 MB / 0.6518 GB, free: 111.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008981/0.902, allocations: 93.7 kB / 0.6519 GB, free: 111.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.9053, allocations: 1.407 MB / 0.6533 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.9059, allocations: 1.033 MB / 0.6543 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006129/0.9065, allocations: 112.1 kB / 0.6544 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005786/0.9071, allocations: 395.9 kB / 0.6548 GB, free: 110.5 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9071, allocations: 5.5 kB / 0.6548 GB, free: 110.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05675/0.9639, allocations: 18.66 MB / 0.673 GB, free: 109.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.9641, allocations: 172 kB / 0.6732 GB, free: 109.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.642/3.606, allocations: 0 / 0.6732 GB, free: 109.2 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)