Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",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.001084/0.001084, allocations: 174.7 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.33/1.33, allocations: 221.4 MB / 234.6 MB, free: 14.39 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.0009102/0.0009103, allocations: 92.69 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02493/0.02493, allocations: 5.285 MB / 341.8 MB, free: 4.809 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007893/0.007893, allocations: 2.295 MB / 396.2 MB, free: 70.45 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 2.695e-05/2.697e-05, allocations: 4 kB / 457.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2413, allocations: 52.19 MB / 0.4975 GB, free: 41.3 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.3484, allocations: 96.3 MB / 0.5916 GB, free: 9.977 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.3487, allocations: 71.92 kB / 0.5917 GB, free: 9.906 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3392/0.688, allocations: 35.84 MB / 0.6267 GB, free: 93.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.688, allocations: 0 / 0.6267 GB, free: 93.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.907e-05/0.6881, allocations: 24.5 kB / 0.6267 GB, free: 93.77 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.002741/0.6908, allocations: 1.332 MB / 0.628 GB, free: 93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.6909, allocations: 12.44 kB / 0.628 GB, free: 93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001959/0.6911, allocations: 163.2 kB / 0.6282 GB, free: 92.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/0.6926, allocations: 298.1 kB / 0.6284 GB, free: 92.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009236/0.6935, allocations: 0.5924 MB / 0.629 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.672e-05/0.6936, allocations: 81.72 kB / 0.6291 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.6937, allocations: 104.2 kB / 0.6292 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.6956, allocations: 1.132 MB / 0.6303 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/0.6956, allocations: 0 / 0.6303 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.6957, allocations: 44.91 kB / 0.6303 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.6958, allocations: 28.27 kB / 0.6304 GB, free: 92.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.6976, allocations: 1.005 MB / 0.6313 GB, free: 92.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006232/0.7038, allocations: 4.539 MB / 0.6358 GB, free: 90.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002016/0.7059, allocations: 1.784 MB / 0.6375 GB, free: 89.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005136/0.7064, allocations: 329.2 kB / 0.6378 GB, free: 88.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001658/0.7066, allocations: 174.2 kB / 0.638 GB, free: 88.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.7073, allocations: 0.5382 MB / 0.6385 GB, free: 88.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.988e-06/0.7073, allocations: 0 / 0.6385 GB, free: 88.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003783/0.7111, allocations: 1.169 MB / 0.6397 GB, free: 87.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.7112, allocations: 308.9 kB / 0.64 GB, free: 87.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.7119, allocations: 0.5274 MB / 0.6405 GB, free: 87.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.789e-05/0.712, allocations: 40.17 kB / 0.6405 GB, free: 87.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.7123, allocations: 485.4 kB / 0.641 GB, free: 86.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.7125, allocations: 261.1 kB / 0.6412 GB, free: 86.74 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-05/0.7125, allocations: 23.47 kB / 0.6412 GB, free: 86.72 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.235e-05/0.7126, allocations: 388.9 kB / 0.6416 GB, free: 86.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/0.7131, allocations: 304.8 kB / 0.6419 GB, free: 86.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005706/0.7137, allocations: 0.5408 MB / 0.6424 GB, free: 85.84 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.01538/0.729, allocations: 2.731 MB / 0.6451 GB, free: 85.19 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.7291, allocations: 3.969 kB / 0.6451 GB, free: 85.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002118/0.7312, allocations: 1.164 MB / 0.6462 GB, free: 84.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.7313, allocations: 91.8 kB / 0.6463 GB, free: 84.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.7313, allocations: 7.75 kB / 0.6463 GB, free: 84.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005072/0.7318, allocations: 93.05 kB / 0.6464 GB, free: 84.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.7328, allocations: 255.9 kB / 0.6467 GB, free: 84.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.7342, allocations: 1.558 MB / 0.6482 GB, free: 83.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009169/0.7351, allocations: 113.6 kB / 0.6483 GB, free: 83.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.7352, allocations: 54.88 kB / 0.6484 GB, free: 82.97 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.0002798/0.7355, allocations: 282.9 kB / 0.6486 GB, free: 82.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.7356, allocations: 75.16 kB / 0.6487 GB, free: 82.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004105/0.7397, allocations: 1.457 MB / 0.6501 GB, free: 81.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.7397, allocations: 8 kB / 0.6501 GB, free: 81.37 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.7398, allocations: 3.938 kB / 0.6501 GB, free: 81.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.7398, allocations: 6.438 kB / 0.6501 GB, free: 81.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.7429, allocations: 2.352 MB / 0.6524 GB, free: 79.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.7429, allocations: 0 / 0.6524 GB, free: 79.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.7435, allocations: 138.8 kB / 0.6526 GB, free: 79.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002322/0.7458, allocations: 0.5415 MB / 0.6531 GB, free: 78.79 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.163e-05/0.7459, allocations: 31.88 kB / 0.6531 GB, free: 78.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007147/0.7466, allocations: 0.8747 MB / 0.654 GB, free: 77.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.7467, allocations: 0 / 0.654 GB, free: 77.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.7487, allocations: 1.576 MB / 0.6555 GB, free: 76.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003572/0.7491, allocations: 248.9 kB / 0.6558 GB, free: 76.14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.7492, allocations: 24 kB / 0.6558 GB, free: 76.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006485/0.7499, allocations: 47.83 kB / 0.6558 GB, free: 76.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.75, allocations: 63.66 kB / 0.6559 GB, free: 76.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/0.7501, allocations: 38.7 kB / 0.6559 GB, free: 76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004642/0.7506, allocations: 417.5 kB / 0.6563 GB, free: 75.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7506, allocations: 0 / 0.6563 GB, free: 75.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001154/0.7517, allocations: 390.8 kB / 0.6567 GB, free: 75.25 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.003028/0.7548, allocations: 2.575 MB / 0.6592 GB, free: 72.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.7564, allocations: 1.104 MB / 0.6603 GB, free: 71.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.7565, allocations: 4 kB / 0.6603 GB, free: 71.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000704/0.7572, allocations: 0.6334 MB / 0.6609 GB, free: 71.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007603/0.758, allocations: 113.6 kB / 0.661 GB, free: 71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.7607, allocations: 1.492 MB / 0.6625 GB, free: 69.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.7611, allocations: 1.035 MB / 0.6635 GB, free: 68.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005509/0.7616, allocations: 115.5 kB / 0.6636 GB, free: 68.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004723/0.7621, allocations: 400.5 kB / 0.664 GB, free: 68.27 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7621, allocations: 0 / 0.664 GB, free: 68.27 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/0.7975, allocations: 20.83 MB / 0.6843 GB, free: 48.14 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.7977, allocations: 217 kB / 0.6845 GB, free: 47.92 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.683/3.481, allocations: 3.938 kB / 0.6845 GB, free: 47.91 MB / 394.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)