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.02454/0.02454, allocations: 5.396 MB / 21.28 MB, free: 1.773 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.001012/0.001012, allocations: 114.4 kB / 23.27 MB, free: 64 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 193 kB / 25.37 MB, free: 0.5586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 250.2 MB, free: 8.695 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009019/0.009019, allocations: 2.318 MB / 303.9 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 95.84 kB / 370.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1978, allocations: 51.21 MB / 421.9 MB, free: 26.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.005848/0.2036, allocations: 6.736 MB / 428.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00418/0.2079, allocations: 3.08 MB / 431.7 MB, free: 16.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007493/0.2086, allocations: 23.94 kB / 431.8 MB, free: 16.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002253/0.2109, allocations: 1.027 MB / 432.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001781/0.2127, allocations: 0.753 MB / 433.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.2142, allocations: 497.5 kB / 434 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.2155, allocations: 1.367 MB / 435.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.2167, allocations: 1.099 MB / 436.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005095/0.2172, allocations: 0.5643 MB / 437.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005457/0.2178, allocations: 0.7199 MB / 437.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.2179, allocations: 140 kB / 437.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006075/0.2185, allocations: 431.7 kB / 438.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.2187, allocations: 295 kB / 438.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003493/0.219, allocations: 0.6337 MB / 439.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.2201, allocations: 1.337 MB / 440.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2201, allocations: 0 / 440.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2201, allocations: 0 / 440.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2201, allocations: 0 / 440.6 MB, free: 7.387 MB / 302.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.003645/0.2238, allocations: 1.779 MB / 442.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2238, allocations: 12.03 kB / 442.4 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001924/0.2257, allocations: 367.2 kB / 442.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.2272, allocations: 0.76 MB / 443.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.098e-05/0.2272, allocations: 78.06 kB / 443.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.2274, allocations: 107.9 kB / 443.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/0.2292, allocations: 1.176 MB / 444.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.2292, allocations: 3.938 kB / 444.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.546e-05/0.2293, allocations: 44 kB / 444.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.2293, allocations: 24 kB / 444.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.2312, allocations: 1.042 MB / 446 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005708/0.2369, allocations: 4.407 MB / 450.4 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/0.2399, allocations: 1.768 MB / 452.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007582/0.2407, allocations: 363.4 kB / 452.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/0.2409, allocations: 174.7 kB / 452.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009894/0.2419, allocations: 0.563 MB / 453.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.384e-06/0.2419, allocations: 0 / 453.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006279/0.2482, allocations: 1.702 MB / 454.9 MB, free: 8.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.2484, allocations: 285.7 kB / 455.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007252/0.2491, allocations: 0.5575 MB / 455.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.089e-05/0.2492, allocations: 37.7 kB / 455.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/0.2495, allocations: 486.7 kB / 456.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.2498, allocations: 264.4 kB / 456.5 MB, free: 6.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/0.2501, allocations: 206.7 kB / 456.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2502, allocations: 382.8 kB / 457.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007336/0.251, allocations: 326.4 kB / 457.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009212/0.2519, allocations: 0.5677 MB / 458 MB, free: 5.051 MB / 318.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.01917/0.2711, allocations: 3.638 MB / 461.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.2712, allocations: 0 / 461.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002563/0.2737, allocations: 1.209 MB / 462.9 MB, free: 4 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.209e-05/0.2738, allocations: 89.09 kB / 462.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.2738, allocations: 8 kB / 462.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004909/0.2743, allocations: 84.78 kB / 463 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.2755, allocations: 259.6 kB / 463.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.277, allocations: 1.582 MB / 464.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.2781, allocations: 111 kB / 465 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-05/0.2782, allocations: 51.95 kB / 465 MB, free: 13.66 MB / 334.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.0005722/0.2788, allocations: 377.2 kB / 465.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.2789, allocations: 83.06 kB / 465.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002592/0.2815, allocations: 1.257 MB / 466.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2816, allocations: 8 kB / 466.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2816, allocations: 4 kB / 466.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2816, allocations: 7.984 kB / 466.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003889/0.2855, allocations: 2.267 MB / 469 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.2855, allocations: 0 / 469 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005859/0.2861, allocations: 135.8 kB / 469.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008271/0.287, allocations: 338.2 kB / 469.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.76e-05/0.2871, allocations: 31.97 kB / 469.5 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.2884, allocations: 0.9012 MB / 470.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.2884, allocations: 3.984 kB / 470.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.2915, allocations: 1.634 MB / 472 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000375/0.2919, allocations: 235.9 kB / 472.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.292, allocations: 27.98 kB / 472.3 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/0.2927, allocations: 51.88 kB / 472.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.2929, allocations: 64.52 kB / 472.4 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.2929, allocations: 39.97 kB / 472.5 MB, free: 5.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004611/0.2934, allocations: 390.8 kB / 472.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2934, allocations: 0 / 472.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009981/0.2944, allocations: 343 kB / 473.2 MB, free: 5.262 MB / 334.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.0007902/0.2952, allocations: 357.4 kB / 473.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.2979, allocations: 1.192 MB / 474.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.298, allocations: 0 / 474.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.2991, allocations: 0.6675 MB / 475.4 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008983/0.3, allocations: 146.2 kB / 475.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.3037, allocations: 2.287 MB / 477.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006215/0.3044, allocations: 1.011 MB / 478.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.3047, allocations: 103.3 kB / 478.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3047, allocations: 0 / 478.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Templates: time 0.02319/0.3279, allocations: 17.18 MB / 496.1 MB, free: 14.27 MB / 366.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)