Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03063/0.03063, allocations: 5.393 MB / 21.03 MB, free: 1.617 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.01025/0.01025, allocations: 94.62 kB / 23.02 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.001183/0.001183, allocations: 202.8 kB / 25.15 MB, free: 168 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.242/1.242, 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.008851/0.008852, allocations: 2.318 MB / 303.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 91.86 kB / 423.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09789, allocations: 51.2 MB / 474.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.008597/0.1065, allocations: 6.784 MB / 481.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006091/0.1126, allocations: 3.123 MB / 484.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009913/0.1137, allocations: 27.94 kB / 484.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00306/0.1167, allocations: 1.099 MB / 485.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002557/0.1193, allocations: 0.8468 MB / 486.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.1211, allocations: 0.5397 MB / 486.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.1231, allocations: 1.379 MB / 488.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001857/0.125, allocations: 1.024 MB / 489.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.126, allocations: 0.5566 MB / 489.7 MB, free: 164 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001271/0.1273, allocations: 0.72 MB / 490.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003973/0.1277, allocations: 140 kB / 490.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.1288, allocations: 443.5 kB / 491 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003739/0.1292, allocations: 287 kB / 491.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007979/0.13, allocations: 0.6337 MB / 491.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001852/0.1319, allocations: 1.748 MB / 493.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1319, allocations: 0 / 493.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.1319, allocations: 4 kB / 493.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.1319, allocations: 0 / 493.7 MB, free: 12.19 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003825/0.1357, allocations: 1.775 MB / 495.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1358, allocations: 8.031 kB / 495.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001951/0.1377, allocations: 363.3 kB / 495.8 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.1394, allocations: 0.7678 MB / 496.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.298e-05/0.1395, allocations: 78.06 kB / 496.7 MB, free: 9.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.1396, allocations: 104 kB / 496.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002001/0.1416, allocations: 1.183 MB / 497.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.1417, allocations: 3.906 kB / 498 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.531e-05/0.1418, allocations: 48 kB / 498 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.1418, allocations: 27.94 kB / 498 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002031/0.1438, allocations: 1.042 MB / 499.1 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006084/0.1499, allocations: 4.353 MB / 0.4916 GB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002984/0.1529, allocations: 1.789 MB / 0.4934 GB, free: 76 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007383/0.1537, allocations: 359.4 kB / 0.4937 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001805/0.1539, allocations: 170.8 kB / 0.4939 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.155, allocations: 0.5553 MB / 0.4944 GB, free: 14.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.735e-06/0.1551, allocations: 0 / 0.4944 GB, free: 14.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.006312/0.1614, allocations: 1.702 MB / 0.4961 GB, free: 13.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000204/0.1616, allocations: 281.7 kB / 0.4963 GB, free: 12.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006957/0.1623, allocations: 0.5575 MB / 0.4969 GB, free: 12.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.1624, allocations: 41.7 kB / 0.4969 GB, free: 12.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004183/0.1628, allocations: 494.6 kB / 0.4974 GB, free: 11.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.163, allocations: 248.5 kB / 0.4976 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/0.1634, allocations: 206.7 kB / 0.4978 GB, free: 11.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000257/0.1637, allocations: 386.8 kB / 0.4982 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008396/0.1645, allocations: 322.4 kB / 0.4985 GB, free: 10.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009878/0.1655, allocations: 0.5721 MB / 0.4991 GB, free: 9.902 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.01751/0.183, allocations: 3.627 MB / 0.5026 GB, free: 6.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.1831, allocations: 0 / 0.5026 GB, free: 6.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002744/0.1858, allocations: 1.209 MB / 0.5038 GB, free: 4.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.911e-05/0.1859, allocations: 89.05 kB / 0.5039 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.1859, allocations: 8 kB / 0.5039 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005373/0.1865, allocations: 93.03 kB / 0.504 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.1875, allocations: 251.6 kB / 0.5042 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.1893, allocations: 1.582 MB / 0.5058 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009294/0.1902, allocations: 126.8 kB / 0.5059 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-05/0.1903, allocations: 51.97 kB / 0.5059 GB, free: 2.52 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.0005595/0.1909, allocations: 369.3 kB / 0.5063 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.1911, allocations: 83.12 kB / 0.5064 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002557/0.1937, allocations: 1.253 MB / 0.5076 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.1937, allocations: 8 kB / 0.5076 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1937, allocations: 4 kB / 0.5076 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.1937, allocations: 3.984 kB / 0.5076 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1863/0.3801, allocations: 2.251 MB / 0.5098 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3801, allocations: 1.25 kB / 0.5098 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/0.3807, allocations: 139.7 kB / 0.5099 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008159/0.3815, allocations: 328.5 kB / 0.5102 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/0.3816, allocations: 36.78 kB / 0.5103 GB, free: 46.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.3828, allocations: 0.8934 MB / 0.5112 GB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3828, allocations: 1.125 kB / 0.5112 GB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002941/0.3857, allocations: 1.645 MB / 0.5128 GB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.386, allocations: 234.4 kB / 0.513 GB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3862, allocations: 25.33 kB / 0.513 GB, free: 45.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000601/0.3868, allocations: 57.62 kB / 0.5131 GB, free: 45.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.3869, allocations: 63.98 kB / 0.5131 GB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.235e-05/0.387, allocations: 35.39 kB / 0.5132 GB, free: 45.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004915/0.3875, allocations: 394.7 kB / 0.5135 GB, free: 45.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3875, allocations: 0 / 0.5135 GB, free: 45.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001006/0.3885, allocations: 346.5 kB / 0.5139 GB, free: 45.04 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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * 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.0006074/0.3891, allocations: 352.9 kB / 0.5142 GB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.3911, allocations: 1.159 MB / 0.5153 GB, free: 44.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3911, allocations: 0 / 0.5153 GB, free: 44.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009541/0.392, allocations: 0.6657 MB / 0.516 GB, free: 43.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.3928, allocations: 143.5 kB / 0.5161 GB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.396, allocations: 1.78 MB / 0.5179 GB, free: 43.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.3966, allocations: 1.016 MB / 0.5189 GB, free: 42.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004751/0.3971, allocations: 123.9 kB / 0.519 GB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.3974, allocations: 89.17 kB / 0.5191 GB, free: 42.27 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3974, allocations: 4.594 kB / 0.5191 GB, free: 42.27 MB / 382.1 MB Notification: Performance of Templates: time 0.01874/0.4161, allocations: 13.27 MB / 0.532 GB, free: 37.45 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)