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/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_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/PhotoVoltaics 2.0.0/package.mo): time 0.04589/0.04589, allocations: 5.397 MB / 21.03 MB, free: 1.629 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.007273/0.007273, allocations: 104.4 kB / 23.03 MB, free: 0.8086 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.0011/0.0011, allocations: 196.5 kB / 25.15 MB, free: 212 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.28/1.28, allocations: 222.9 MB / 250 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01669/0.01669, allocations: 2.318 MB / 303.7 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 99.83 kB / 419.1 MB, free: 23.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08292/0.08458, allocations: 51.2 MB / 470.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.007712/0.09234, allocations: 6.781 MB / 477.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005958/0.09834, allocations: 3.126 MB / 480.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.09951, allocations: 19.94 kB / 480.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003092/0.1027, allocations: 1.103 MB / 481.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002556/0.1052, allocations: 0.839 MB / 482.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.1072, allocations: 0.5294 MB / 482.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002015/0.1092, allocations: 1.394 MB / 484.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.1112, allocations: 1.029 MB / 485.2 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.1122, allocations: 0.5527 MB / 485.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.1135, allocations: 0.7159 MB / 486.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004206/0.114, allocations: 144 kB / 486.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.1151, allocations: 435.6 kB / 487 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003522/0.1154, allocations: 291 kB / 487.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009951/0.1164, allocations: 0.6376 MB / 487.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002726/0.1192, allocations: 1.752 MB / 489.7 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.1192, allocations: 4 kB / 489.7 MB, free: 480 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1192, allocations: 0 / 489.7 MB, free: 480 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.473e-05/0.1193, allocations: 0 / 489.7 MB, free: 480 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.005068/0.1243, allocations: 1.767 MB / 491.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1244, allocations: 12.02 kB / 491.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003176/0.1247, allocations: 156.9 kB / 491.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/0.127, allocations: 371.3 kB / 492 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.1292, allocations: 0.7637 MB / 492.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.1293, allocations: 86.06 kB / 492.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003096/0.1296, allocations: 107.9 kB / 492.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/0.1324, allocations: 1.176 MB / 494.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.686e-05/0.1324, allocations: 7.906 kB / 494.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.1325, allocations: 44 kB / 494.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.1326, allocations: 24 kB / 494.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002372/0.135, allocations: 1.042 MB / 495.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006958/0.1419, allocations: 4.357 MB / 499.6 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002805/0.1448, allocations: 1.778 MB / 0.4896 GB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007733/0.1456, allocations: 363.4 kB / 0.4899 GB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.1458, allocations: 174.8 kB / 0.4901 GB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009525/0.1467, allocations: 0.5475 MB / 0.4906 GB, free: 3.031 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 4.949e-06/0.1467, allocations: 0 / 0.4906 GB, free: 3.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006218/0.153, allocations: 1.705 MB / 0.4923 GB, free: 1.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.1531, allocations: 285.6 kB / 0.4926 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008899/0.154, allocations: 0.5614 MB / 0.4931 GB, free: 380 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.552e-05/0.1541, allocations: 41.7 kB / 0.4932 GB, free: 332 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003735/0.1545, allocations: 490.6 kB / 0.4936 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.1547, allocations: 260.4 kB / 0.4939 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.1551, allocations: 206.7 kB / 0.4941 GB, free: 15.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1552, allocations: 382.8 kB / 0.4944 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007469/0.156, allocations: 326.4 kB / 0.4948 GB, free: 14.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008814/0.1569, allocations: 0.5682 MB / 0.4953 GB, free: 14 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.01809/0.175, allocations: 3.623 MB / 0.4989 GB, free: 10.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/0.175, allocations: 7.938 kB / 0.4989 GB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002819/0.1779, allocations: 1.213 MB / 0.5 GB, free: 8.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.934e-05/0.1779, allocations: 91.44 kB / 0.5001 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.178, allocations: 8 kB / 0.5001 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004708/0.1785, allocations: 76.8 kB / 0.5002 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.1796, allocations: 267.8 kB / 0.5005 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001647/0.1813, allocations: 1.578 MB / 0.502 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009525/0.1822, allocations: 127 kB / 0.5021 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.906e-05/0.1823, allocations: 51.95 kB / 0.5022 GB, free: 6.617 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.0005855/0.1829, allocations: 365.2 kB / 0.5025 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.1832, allocations: 83 kB / 0.5026 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.1858, allocations: 1.245 MB / 0.5038 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.1859, allocations: 19.98 kB / 0.5038 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1859, allocations: 0 / 0.5038 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.1859, allocations: 3.984 kB / 0.5038 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006724/0.1926, allocations: 2.547 MB / 0.5063 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.1927, allocations: 0 / 0.5063 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.1933, allocations: 135.8 kB / 0.5065 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008047/0.1941, allocations: 330.3 kB / 0.5068 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.277e-05/0.1942, allocations: 31.97 kB / 0.5068 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.1955, allocations: 0.8857 MB / 0.5077 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1955, allocations: 4.031 kB / 0.5077 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1961/0.3916, allocations: 1.917 MB / 0.5095 GB, free: 46.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004363/0.3921, allocations: 241.9 kB / 0.5098 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.3923, allocations: 27.84 kB / 0.5098 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/0.393, allocations: 56.27 kB / 0.5099 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.3931, allocations: 58.86 kB / 0.5099 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.816e-05/0.3932, allocations: 36.86 kB / 0.51 GB, free: 46.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005926/0.3938, allocations: 395 kB / 0.5103 GB, free: 46.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.3938, allocations: 0 / 0.5103 GB, free: 46.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3949, allocations: 342.9 kB / 0.5107 GB, free: 46.39 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.006601/0.4015, allocations: 2.724 MB / 0.5133 GB, free: 45.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002302/0.4038, allocations: 1.151 MB / 0.5144 GB, free: 44.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4038, allocations: 0 / 0.5144 GB, free: 44.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.4049, allocations: 0.6664 MB / 0.5151 GB, free: 44.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009/0.4058, allocations: 140.3 kB / 0.5152 GB, free: 44.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.4188, allocations: 7.103 MB / 0.5222 GB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006055/0.4195, allocations: 1.02 MB / 0.5232 GB, free: 39.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005438/0.42, allocations: 130.2 kB / 0.5233 GB, free: 39.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.4206, allocations: 405.1 kB / 0.5237 GB, free: 39.49 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4206, allocations: 0 / 0.5237 GB, free: 39.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04542/0.466, allocations: 21.27 MB / 0.5444 GB, free: 24.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.75, allocations: 12 kB / 0.5444 GB, free: 24.86 MB / 382.1 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/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)