Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_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_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_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.03246/0.03246, allocations: 5.396 MB / 21.03 MB, free: 1.559 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.001288/0.001288, allocations: 106 kB / 23.03 MB, free: 0.8008 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.001312/0.001312, allocations: 198.5 kB / 25.15 MB, free: 164 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.435/1.435, allocations: 222.9 MB / 250 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009955/0.009955, allocations: 2.319 MB / 303.7 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002668/0.002668, allocations: 99.84 kB / 419.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09962, allocations: 51.21 MB / 470.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629): time 0.00974/0.1094, allocations: 6.897 MB / 477.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007251/0.1167, allocations: 4.025 MB / 481.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.1183, allocations: 19.94 kB / 481.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003848/0.1221, allocations: 1.169 MB / 482.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002864/0.125, allocations: 0.8739 MB / 483.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002222/0.1272, allocations: 0.6143 MB / 484 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002217/0.1295, allocations: 1.409 MB / 485.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.1311, allocations: 1.021 MB / 486.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008689/0.132, allocations: 0.5681 MB / 487 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009675/0.133, allocations: 0.673 MB / 487.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002164/0.1332, allocations: 144 kB / 487.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000927/0.1341, allocations: 439.6 kB / 488.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002837/0.1344, allocations: 294.9 kB / 488.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006815/0.1351, allocations: 0.6258 MB / 489.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002544/0.1377, allocations: 1.775 MB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1377, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1377, allocations: 4 kB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.1377, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004473/0.1422, allocations: 1.832 MB / 492.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.1423, allocations: 8.031 kB / 492.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002029/0.1425, allocations: 156.6 kB / 492.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/0.1447, allocations: 387.8 kB / 493.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/0.1467, allocations: 0.8207 MB / 494.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.046e-05/0.1468, allocations: 78 kB / 494.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.147, allocations: 100 kB / 494.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.1491, allocations: 1.138 MB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.1492, allocations: 3.984 kB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.1493, allocations: 44 kB / 495.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.1493, allocations: 24 kB / 495.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.1514, allocations: 0.9485 MB / 496.4 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006652/0.158, allocations: 4.315 MB / 0.489 GB, free: 4.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002987/0.1611, allocations: 1.662 MB / 0.4906 GB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000772/0.1619, allocations: 329.4 kB / 0.4909 GB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.162, allocations: 97.47 kB / 0.491 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.163, allocations: 454.7 kB / 0.4915 GB, free: 2.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.745e-06/0.163, allocations: 0 / 0.4915 GB, free: 2.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006034/0.1691, allocations: 1.553 MB / 0.493 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002158/0.1693, allocations: 277.6 kB / 0.4932 GB, free: 180 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.1704, allocations: 0.6682 MB / 0.4939 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.872e-05/0.1705, allocations: 37.7 kB / 0.4939 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004994/0.171, allocations: 0.5233 MB / 0.4944 GB, free: 14.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.1713, allocations: 226.2 kB / 0.4947 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/0.1716, allocations: 190.5 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.1718, allocations: 386.8 kB / 0.4952 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006785/0.1725, allocations: 281.8 kB / 0.4955 GB, free: 13.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009282/0.1734, allocations: 0.5402 MB / 0.496 GB, free: 13.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.1751, allocations: 0.9176 MB / 0.4969 GB, free: 12.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.1751, allocations: 8 kB / 0.4969 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002392/0.1775, allocations: 1.071 MB / 0.4979 GB, free: 11.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.241e-05/0.1776, allocations: 61.75 kB / 0.498 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.1776, allocations: 8.312 kB / 0.498 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004709/0.1781, allocations: 93.06 kB / 0.4981 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008914/0.179, allocations: 219.6 kB / 0.4983 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.1807, allocations: 1.585 MB / 0.4999 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008068/0.1815, allocations: 103.4 kB / 0.5 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.244e-05/0.1816, allocations: 43.98 kB / 0.5 GB, free: 8.789 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.0005367/0.1821, allocations: 347.5 kB / 0.5003 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.1823, allocations: 95.44 kB / 0.5004 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002039/0.1844, allocations: 0.9052 MB / 0.5013 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.1844, allocations: 8 kB / 0.5013 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1844, allocations: 3.984 kB / 0.5013 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.1844, allocations: 0 / 0.5013 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006073/0.1905, allocations: 2.219 MB / 0.5035 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.1905, allocations: 4 kB / 0.5035 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003828/0.1909, allocations: 83.94 kB / 0.5036 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008784/0.1918, allocations: 334.1 kB / 0.5039 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-05/0.1919, allocations: 23.98 kB / 0.5039 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.1933, allocations: 0.8859 MB / 0.5048 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.237e-05/0.1933, allocations: 7.875 kB / 0.5048 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005284/0.1986, allocations: 1.635 MB / 0.5064 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003855/0.199, allocations: 216.5 kB / 0.5066 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.1991, allocations: 27.98 kB / 0.5066 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005565/0.1997, allocations: 47.97 kB / 0.5067 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.671e-05/0.1998, allocations: 40.38 kB / 0.5067 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.624e-05/0.1999, allocations: 31.98 kB / 0.5067 GB, free: 1.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006422/0.2005, allocations: 459 kB / 0.5072 GB, free: 1.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2005, allocations: 4 kB / 0.5072 GB, free: 1.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009893/0.2015, allocations: 319.2 kB / 0.5075 GB, free: 0.9023 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.2041/0.4056, allocations: 2.74 MB / 0.5102 GB, free: 45.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.4077, allocations: 0.961 MB / 0.5111 GB, free: 45.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4077, allocations: 0 / 0.5111 GB, free: 45.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.4086, allocations: 490 kB / 0.5116 GB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009873/0.4096, allocations: 184 kB / 0.5117 GB, free: 44.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.4209, allocations: 6.998 MB / 0.5186 GB, free: 41.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006981/0.4216, allocations: 1.016 MB / 0.5196 GB, free: 40.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005581/0.4222, allocations: 120.9 kB / 0.5197 GB, free: 40.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000428/0.4226, allocations: 392.8 kB / 0.52 GB, free: 40.28 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4226, allocations: 0 / 0.52 GB, free: 40.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05522/0.4779, allocations: 20.62 MB / 0.5402 GB, free: 28.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/16.23, allocations: 8 kB / 0.5402 GB, free: 28.54 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe 2>&1)