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/PhotoVoltaics 2.0.0/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/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/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 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) 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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/PhotoVoltaics 2.0.0/package.mo): time 0.04162/0.04162, allocations: 5.394 MB / 21.03 MB, free: 1.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007398/0.007398, allocations: 109 kB / 23.03 MB, free: 0.7969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.001339, allocations: 196.8 kB / 25.15 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 250 MB, free: 8.422 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009339/0.009339, allocations: 2.315 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 99.83 kB / 419.1 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08462/0.08628, allocations: 51.21 MB / 470.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.007832/0.09415, allocations: 6.774 MB / 477.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005598/0.09979, allocations: 3.129 MB / 480.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.101, allocations: 16 kB / 480.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002869/0.1039, allocations: 1.108 MB / 481.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002452/0.1063, allocations: 0.8429 MB / 482.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00205/0.1084, allocations: 0.5249 MB / 482.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.1107, allocations: 1.386 MB / 484.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.1126, allocations: 1.033 MB / 485.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00086/0.1135, allocations: 0.5605 MB / 485.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001252/0.1147, allocations: 0.712 MB / 486.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.1151, allocations: 144 kB / 486.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009756/0.1161, allocations: 431.7 kB / 487 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003415/0.1165, allocations: 291 kB / 487.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008312/0.1173, allocations: 0.6298 MB / 487.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.1195, allocations: 1.76 MB / 489.7 MB, free: 336 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1196, allocations: 0 / 489.7 MB, free: 336 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1196, allocations: 0 / 489.7 MB, free: 336 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.886e-05/0.1196, allocations: 3.938 kB / 489.7 MB, free: 332 kB / 350.1 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.004676/0.1243, allocations: 1.767 MB / 491.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.1244, allocations: 16.03 kB / 491.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002572/0.1246, allocations: 164.9 kB / 491.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00216/0.1268, allocations: 367.2 kB / 492 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001786/0.1286, allocations: 0.7638 MB / 492.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.928e-05/0.1287, allocations: 82.06 kB / 492.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001988/0.1289, allocations: 108 kB / 492.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/0.1311, allocations: 1.179 MB / 494.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.1311, allocations: 3.938 kB / 494.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.1312, allocations: 44 kB / 494.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.1313, allocations: 24 kB / 494.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002184/0.1335, allocations: 1.038 MB / 495.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006667/0.1401, allocations: 4.357 MB / 499.6 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.143, allocations: 1.779 MB / 0.4896 GB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007679/0.1438, allocations: 363.4 kB / 0.4899 GB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001603/0.1439, allocations: 174.8 kB / 0.4901 GB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009877/0.1449, allocations: 0.5513 MB / 0.4906 GB, free: 2.887 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.615e-06/0.145, allocations: 4 kB / 0.4907 GB, free: 2.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006273/0.1512, allocations: 1.705 MB / 0.4923 GB, free: 1.133 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.1514, allocations: 277.7 kB / 0.4926 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007511/0.1522, allocations: 0.5614 MB / 0.4931 GB, free: 236 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.222e-05/0.1523, allocations: 41.7 kB / 0.4932 GB, free: 188 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003572/0.1526, allocations: 498.7 kB / 0.4936 GB, free: 15.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.1529, allocations: 248.5 kB / 0.4939 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/0.1532, allocations: 214.7 kB / 0.4941 GB, free: 15.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1533, allocations: 378.8 kB / 0.4944 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007555/0.1541, allocations: 330.4 kB / 0.4948 GB, free: 14.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008786/0.155, allocations: 0.5682 MB / 0.4953 GB, free: 13.86 MB / 382.1 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.01854/0.1735, allocations: 3.619 MB / 0.4989 GB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.361e-05/0.1736, allocations: 3.938 kB / 0.4989 GB, free: 10.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003012/0.1766, allocations: 1.209 MB / 0.5 GB, free: 8.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.929e-05/0.1767, allocations: 93.09 kB / 0.5001 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.1767, allocations: 8 kB / 0.5001 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005027/0.1772, allocations: 84.78 kB / 0.5002 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.1784, allocations: 255.7 kB / 0.5005 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.1802, allocations: 1.582 MB / 0.502 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.1813, allocations: 123 kB / 0.5021 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.1815, allocations: 55.95 kB / 0.5022 GB, free: 6.477 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006982/0.1822, allocations: 373 kB / 0.5025 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002549/0.1824, allocations: 83 kB / 0.5026 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002714/0.1852, allocations: 1.249 MB / 0.5038 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.1852, allocations: 8 kB / 0.5038 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1852, allocations: 0 / 0.5038 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.1852, allocations: 11.97 kB / 0.5038 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006941/0.1922, allocations: 2.543 MB / 0.5063 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.1922, allocations: 4 kB / 0.5063 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006535/0.1929, allocations: 131.8 kB / 0.5065 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000822/0.1937, allocations: 330.3 kB / 0.5068 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.1939, allocations: 31.97 kB / 0.5068 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/0.1952, allocations: 0.8936 MB / 0.5077 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1952, allocations: 0 / 0.5077 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1936/0.3888, allocations: 1.92 MB / 0.5096 GB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005264/0.3893, allocations: 240.3 kB / 0.5098 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/0.3895, allocations: 27.16 kB / 0.5098 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006955/0.3902, allocations: 59.14 kB / 0.5099 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.3904, allocations: 54.98 kB / 0.5099 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.391e-05/0.3905, allocations: 40.38 kB / 0.51 GB, free: 46.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00053/0.391, allocations: 390.5 kB / 0.5103 GB, free: 46.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.391, allocations: 0 / 0.5103 GB, free: 46.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001066/0.3921, allocations: 336.6 kB / 0.5107 GB, free: 46.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006858/0.399, allocations: 2.727 MB / 0.5133 GB, free: 45.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.4014, allocations: 1.158 MB / 0.5144 GB, free: 44.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.4014, allocations: 1.719 kB / 0.5144 GB, free: 44.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.4025, allocations: 0.6751 MB / 0.5151 GB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.4036, allocations: 140.7 kB / 0.5152 GB, free: 44.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/0.4158, allocations: 7.098 MB / 0.5222 GB, free: 40.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/0.4164, allocations: 1.011 MB / 0.5232 GB, free: 39.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005265/0.4169, allocations: 130.2 kB / 0.5233 GB, free: 39.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004797/0.4174, allocations: 402.4 kB / 0.5237 GB, free: 39.4 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4174, allocations: 0 / 0.5237 GB, free: 39.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04538/0.4628, allocations: 21.26 MB / 0.5444 GB, free: 24.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.8, allocations: 10.55 kB / 0.5444 GB, free: 24.68 MB / 382.1 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/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)